Commit Graph

34 Commits

Author SHA1 Message Date
Sergey Patrikeev
ed274916d8 UnstableApiUsageInspection: update description.
GitOrigin-RevId: 7af1c361f331adad5efcc85b0a62bc23560b8c26
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
409320be50 UnstableTypeUsedInSignatureInspection: update inspection description.
GitOrigin-RevId: f5ff043796554fa0f0d64632c59f549d7e00532c
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
9287b50dcd UnstableTypeUsedInSignatureInspection: disable by default.
GitOrigin-RevId: fcbab879fe5c45ad4316b6680554d896f2b2127e
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
84b036832c MustAlreadyBeRemovedApiInspection description: encode less-than signs "<" with HTML codes.
GitOrigin-RevId: aeba913e798bb3dda6e60fa3cc6caae15b5f62e4
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
ddc5ccd24c UnstableApiUsageInspection: check if signature of the referenced API contains an unstable type.
For example, if a method's parameter is marked with @ApiStatus.Experimental annotation, the method is effectively experimental. Invoking such a method from plugin code must be highlighted even if the method itself is not marked with the same annotation.

GitOrigin-RevId: 5ebd52b3a525a0d51aa2cbed5cb2603157e7f292
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
c9ea0a57e6 Unstable\ScheduledForRemoval API usage inspections: improve messages for methods\fields declared in annotated classes.
GitOrigin-RevId: 95db4460a5f65bfcc0846b0840dccf16af720645
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
06e57b5034 JvmAnalysisBundle: remove unused property.
GitOrigin-RevId: 58a79be19190ba4df61f6f8e17cd3c8242d39128
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
37fd165f7e Merge ScheduledForRemovalInspection into UnstableApiUsageInspection.
ScheduledForRemovalInspection is effectively the same as more general UnstableApiUsageInspection. The only thing that differs is the provided message "Foo is scheduled for removal in 2.3.4" instead of "Foo is marked unstable". To customize the message a dedicated "message provider" interface is extracted. It may later be utilized for other annotations.

Also tests for "scheduled for removal API usages" are moved next to the tests of the UnstableApiUsageInspection.

GitOrigin-RevId: 0693f41954bd5a4d79699b83a76cd4d293a56f9a
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
6c8d9ccd9b IDEA-215436: Inspection that checks if declaration with "unstable" API type in signature is "unstable" on its own.
GitOrigin-RevId: 6ba9bf7a8ebfd8b34488cb98536c5fa3e781deb7
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
ed1acb9b0d ScheduledForRemovalInspection and UnstableApiUsageInspection: convert to Kotlin and support method overriding case.
GitOrigin-RevId: dd24dbf613673ae788e1f2ae0229c0ef27e66fe3
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
9b498304a6 IDEA-216155: inspection that warns if API marked with @ScheduledForRemoval annotation must already be removed.
GitOrigin-RevId: bb9cc3c842e6110d801f718717665498a077e3a3
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
73eefb0d8b AnnotatedElementInspectionBase: rename property to correspond with class name.
GitOrigin-RevId: 6aa2a4345e39c48211760fae5ecbefb7cc47d6f9
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
cbe1384451 IDEA-211503: Add inspection checking that @ApiStatus.ScheduledForRemoval annotation is accompanied by the @Deprecated.
GitOrigin-RevId: 071f0a6c823037bade61bc42a1e9714515439111
2019-07-02 06:52:16 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Yann Cébron
0c639a2c22 DumpUastLog: fix text casing
GitOrigin-RevId: c42fe6139e7205f411d7f1acc6639044524183d8
2019-05-28 19:11:36 +03:00
Aleksey Rostovskiy
185284cee6 get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
2019-05-27 15:08:08 +03:00
Alexandr Suhinin
9215f4240b [duplicates] enable duplicates analysis in PyCharm/WebStorm/PhpStorm/RubyMine
GitOrigin-RevId: 1545b79fdca4888f4b94f47f22703fd37694fa7a
2019-05-27 15:07:30 +03:00
Anton Makeev
c105e26db3 Merge remote-tracking branch 'origin/master' into amakeev/gradle
GitOrigin-RevId: f9a633252daf311ecab19002c0f4757052eee9dc
2019-05-17 19:13:15 +03:00
Anton Makeev
b54aaf7e4e IDEA-210281 Cleanup Gradle settings: separate Runner configurable removed
GitOrigin-RevId: adbc39121fe91beb633e125b4cf39bfe0a422e4b
2019-05-17 19:02:16 +03:00
Sergey Patrikeev
44ad67b999 Platform API (IDEA-211307): add annotations prohibiting certain types of API usages.
Added annotations @ApiStatus.NonExtendable and @ApiStatus.OverrideOnly.
Added corresponding inspections checking violation of usages of annotated API.
Fix a couple of bugs in ApiUsageUastVisitor. Enforce both "processReference" (for class) and "processConstructorInvocation" (for constructor) events. Suppose code "new SomeClass(42)". We want ApiUsageVisitorBase to invoke both "processReference" for "SomeClass" and "processConstructorInvocation" for "SomeClass()", though they point to the same PSI element.

GitOrigin-RevId: 811b4d5a875dcb246582df1cd2e6be48cc96c990
2019-05-15 17:08:41 +03:00
Sergey Patrikeev
4e1d9527ca ScheduledForRemoval: display version when API is going to be removed, if it's specified. 2019-02-01 19:12:40 +03:00
Nicolay Mitropolsky
f05ee260a3 Uast: Internal action for dumping the uast tree introduced 2019-01-28 14:52:33 +03:00
Yaroslav Pankratyev
3ffb6bb50a IDEA-194133 Enable ScheduledForRemovalInspection by default 2018-09-26 20:20:08 +07:00
Anna.Kozlova
d346fdd9c1 Update inspections descriptions according to the style
"This inspection reports" -> "Reports"
2018-09-24 11:22:00 +02:00
Yaroslav Pankratyev
2114abd535 IDEA-194133 Introduce ScheduledForRemovalInspection 2018-09-05 12:09:04 +03:00
Nikita Katkov
3b1e31fafe blocking calls detection inspection: cleanup + docs added 2018-08-25 10:52:32 +03:00
Nikita Katkov
76e2d4b06b blocking calls detection inspection : minor changes 2018-08-23 16:54:08 +03:00
Nikita Katkov
fea31cf421 Blocking calls detection inspection created (IDEA-173248) 2018-08-22 13:59:40 +03:00
Yaroslav Pankratyev
83160f84a1 IDEA-193961 Unstable API usage inspection: option to ignore elements inside imports 2018-07-04 16:53:02 +07:00
Yaroslav Pankratyev
2404a9c990 Partially implemented StringToUpperWithoutLocale2Inspection (w/o registration) 2018-06-27 16:58:18 +07:00
Yaroslav Pankratyev
4a8f357bb9 Add jvm-analysis modules and related changes, move JvmLocalInspection to jvm-analysis-api, move UnstableApiUsageInspection to jvm-analysis-impl 2018-05-15 17:44:33 +07:00