Bart van Helvert
53e7c03568
[jvm] IDEA-207232 Migrate "Serializable class without 'serialVersionUID'" to UAST
...
Quickfix does not work in Kotlin yet.
GitOrigin-RevId: 400f0cd6e410a8e323aef72ddb1e70cf98d8e796
2021-08-16 13:56:51 +00:00
Bart van Helvert
bceb99a5f1
[jvm] Ignore calls to super in ThreadRunInspection
...
GitOrigin-RevId: e79d56472118c453c0a2aca4e44a24111750ada4
2021-08-12 10:24:55 +00:00
Bart van Helvert
c2bb202092
[jvm] IDEA-274018 Migrate "ThreadRunInspection" to UAST
...
GitOrigin-RevId: 7fa2409aefa3718c76f6104ae950a3484b79c322
2021-08-11 09:15:32 +00:00
Bart van Helvert
db7e4cb2ec
[jvm] IDEA-269740 TestOnlyInspection add test for use-site targets
...
GitOrigin-RevId: fabc6ddc59d0c14d2c91722cd3dc9f26c21757a6
2021-08-05 16:51:18 +00:00
Bart van Helvert
72379c315e
[jvm] IDEA-271571 Don't highlight @TestOnly usages in doc
...
GitOrigin-RevId: e9011bbb9d881333316563cde008af0e4ab0d954
2021-08-03 14:34:40 +00:00
Bart van Helvert
402eec8632
[jvm] IDEA-262698 Convert JUnit conversion inspections to UAST
...
Converts JUnit5AssertionsConverter and JUnit5Converter to UAST.
GitOrigin-RevId: 3c3cd6d7b23585e8ae9acc331aebc2ba8f8c5039
2021-08-03 12:28:25 +00:00
Artemiy Sartakov
4c26f710ff
SourceToSinkFlowInspection: cr fixes (IJ-CR-10092):
...
1. RestrictionInfoBuilder -> RestrictionInfoFactory
2. removed redundant extends from wildcards for RestrictionInfoFactory
3. specified package for Untainted annotation in description
4. replaced 'sink' with 'safe method' in inspection descriptions
5. TaintValue#getName -> TaintValue#getAnnotationName
6. formatting
GitOrigin-RevId: d87b8aa8b39653fa18bb96efe8cd90db81764b56
2021-06-23 09:27:39 +00:00
Artemiy Sartakov
403e0956f1
SourceToSinkFlowInspection: added inspection to detect unsafe flows from source to sink (IDEA-271540)
...
GitOrigin-RevId: af964bc79c2625794c4ad53159368bb0849d727e
2021-06-15 06:33:15 +00:00
Olga.Klisho
d226a6ac9e
(IDEA-271142) JUnit5MalformedParameterized inspection moved to junit module (NoClassDefFoundError fixed)
...
GitOrigin-RevId: 4ff66cb6481e9fab4cceeca535616a984350aebf
2021-06-11 18:33:56 +00:00
Olga.Klisho
14d3fc8e6e
(IDEA-265061) JUnit5MalformedParameterizedInspection rewritten to UAST cleanup
...
GitOrigin-RevId: b0a2ad8e5f03cf497e68c1954d9b8fe71a62d15b
2021-06-09 13:54:34 +00:00
Olga.Klisho
dd46184868
(IDEA-265061) JUnit5MalformedParameterizedInspection rewritten to UAST cleanup
...
GitOrigin-RevId: 58a866e5f83a2a5a88dcbf532b189aad390a3542
2021-06-08 20:28:51 +00:00
Olga.Klisho
5cbf5c9923
(IDEA-265061) JUnit5MalformedParameterizedInspection rewritten to UAST
...
GitOrigin-RevId: a8b56d7307be0227ce01a681c37882a8928a7096
2021-06-08 08:52:08 +00:00
Bart van Helvert
32a57be862
[jvm] IDEA-207545 Convert TestFailedLine inspection to UAST
...
GitOrigin-RevId: 921c7fe92dd5b27b9fe0105fffd9f93ffb0a3e98
2021-05-24 20:20:30 +00:00
Bart van Helvert
e393297c0a
[jvm] Fix test only inspection highlighting
...
Changes the highlighting on the double annotation warning from full annotation to the identifier.
GitOrigin-RevId: 6caca39e512722bae9d8441bd37378f1366e8081
2021-04-11 18:29:31 +00:00
Bart van Helvert
9a078fac63
[jvm] IJ-CR-7495 Improve double annotation warning
...
GitOrigin-RevId: 2355929a6fde8a87adb2ed82cd5ed621dcf29aba
2021-04-06 15:40:50 +00:00
Bart van Helvert
89000cc20d
[jvm] IJ-CR-7495 TestOnly inspection improvements
...
Now uses TestOnlyApiUsageProcessor and correctly finds top level parents.
GitOrigin-RevId: 41789e2279fc4d4c885050f7ee475a6e8ab81e48
2021-03-30 09:58:28 +00:00
Bart
b3a6e7ebd2
[jvm] IDEA-231329 Convert @TestOnly inspection to UAST
...
GitOrigin-RevId: 15230423d944e7b3a236f401bdc251dabb7d5586
2021-03-23 10:35:38 +00:00
Bart van Helvert
f90009e540
[UAST] IDEA-254702 Add JUnit Rule inspection quickfix tests
...
GitOrigin-RevId: 78ab1bb5b47925531bdd98a1e81b718e5ebe0463
2021-01-18 21:23:54 +00:00
Bart van Helvert
d42cea8389
[UAST] IDEA-254702 Convert JUnit Rule inspection to UAST
...
GitOrigin-RevId: 6add679f94ffba8b972f0ae924b5547d6859ed1a
2021-01-11 21:52:58 +00:00
Olga.Klisho
339e65fcd2
junit 5: support references between kotlin and java (IDEA-248355)
...
GitOrigin-RevId: 7db4cb465500beed1e79f0262a785c0653424d12
2020-10-27 13:27:25 +00:00
Nicolay Mitropolsky
1aca0949c8
NonNlsUastUtil: take NonNls annotation from fields in case resolve to kotlin property setter or getter
...
testdata is also updated, it relied on the wrong behaviour which is not actual as long KT-40578 is fixed
GitOrigin-RevId: 7c4195b85ca45025838a1fec2a107939afc24ffa
2020-09-29 10:30:56 +00:00
Nicolay Mitropolsky
938b3c1d37
UastCallMatcher: fix kotlin testdata
...
because it is incorrect to expect the same behavior for `java.lang.String` and `kotlin.String`
GitOrigin-RevId: c9a02e970c3fcb71da40dab75e161c67344d9acd
2020-08-06 17:29:52 +00:00
Sergey Patrikeev
7915d08945
KT-35296 (followup): False positive "Suspicious package-private inspection" on empty package-private super-constructor.
...
GitOrigin-RevId: 5746d2a69c3f3e8395e4479c8d2707dc5d85d211
2019-12-16 12:05:21 +00:00
Sergey Patrikeev
1468e2ac20
KT-35296: False positive "Suspicious package-private access" with unrelated package-private no-arg superconstructor.
...
GitOrigin-RevId: bb186ee4cfaf890392be318c01613f301dd9b595
2019-12-05 16:03:48 +00:00
Sergey Patrikeev
8448cf149c
ScheduledForRemoval API usages: update test data.
...
GitOrigin-RevId: 8abe28c91cd05d3c906149e88450bc9163b626e9
2019-10-24 11:05:18 +00:00
Sergey Patrikeev
722c7216f3
UnstableApiUsageInspection: specify annotation name causing the warning.
...
GitOrigin-RevId: 21ad929338bfa74a0cab35ca998e6dc87167e950
2019-10-24 11:05:18 +00:00
maksim.pelevin
9c33f8acc2
IDEA-223097 Provide an inspection which reports overriding package-private methods located in different module
...
GitOrigin-RevId: 2708657ea214765cf92f259a6de83beb6275ad5e
2019-09-19 08:31:30 +00:00
Sergey Patrikeev
5c3f54c486
IDEA-219976: False-positive "class must not be extended" for a nested class, whose enclosing class is @NonExtendable.
...
GitOrigin-RevId: 3686fadd23c193966411419f354e94f58ecb5faa
2019-08-08 15:05:59 +03:00
nik
75d7a92ffd
java: remove extra spaces in test data for KtSuspiciousPackagePrivateAccessInspectionTest
...
GitOrigin-RevId: 35693ab197b92fa2e646b9632b777fc6c0f843c6
2019-07-03 01:13:10 +03:00
nik
598c9e62c7
java: properly process inner and local classes in 'Suspicious package-private access' inspection (IDEA-217306)
...
Java doesn't treat inner and local classes in a special way at runtime so SuspiciousPackagePrivateAccessInspection.canAccessProtectedMember shouldn't process enclosing classes like JavaResolveUtil.canAccessProtectedMember does.
GitOrigin-RevId: 86404e3a3cb29b3300d5dfaad0e3ef9f9dda3355
2019-07-03 01:13:10 +03:00
Sergey Patrikeev
444fede6e0
Revert "UnstableTypeUsedInSignatureInspection: do not produce a warning in a annotated Kotlin file.
...
This reverts commit ad36f41a.
@file:ApiStatus.Experimental does not mean that all classes\methods declared in this file are experimental, as it may seem naively. Instead, it only means that a class generated for top level declarations in the file (for file with name 'file.kt' class name will be 'FileKt') will be annotated but not other top-level classes in the file.
GitOrigin-RevId: 5dadbf90aff8a0f421379f0e55786eac7848f201
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
90e915819b
UnstableTypeUsedInSignatureInspection: ensure warnings are not produced for anonymous classes declarations.
...
GitOrigin-RevId: b6c241f54ea29482172f8b01fdd6c6a88d3139a7
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
846e687b26
UnstableTypeUsedInSignatureInspection: do not produce a warning in a Kotlin file annotated with unstable annotation.
...
GitOrigin-RevId: ad36f41acde6f97f1b3f24d23bbab59d0def7d22
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
3074b2a345
UnstableApiUsageInspection: add more tests on overriding unstable methods.
...
GitOrigin-RevId: 77c551c6afee5c9ecf42a3d4bc9f02a381aafe41
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
f2cf382034
ScheduledForRemoval inspection: update test data.
...
GitOrigin-RevId: d597239bd5f1f8b4c70a5385540534a69519fa62
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
c080fa6df2
UnstableApiUsageInspection: do not report API usages of members declared in the same file.
...
GitOrigin-RevId: c103f514fcc7dcdddc94c761d275a135e6bf580c
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
9329e65e5b
UnstableTypeUsedInSignature: do not emit warning if declaration is containing inside private or package local class.
...
GitOrigin-RevId: 3c55d941a582af00a01faf65f14a4d8fc07dc709
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
4e0b7c950e
UnstableApiUsageInspection: extract overridden method case to a separate method. Update testdata for ScheduledForRemoval
...
GitOrigin-RevId: a855fca7fbc9c3865108aa6937d962709a1471dc
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
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
f04eaad9a2
IDEA-215432: UnstableApiUsage\ScheduledForRemoval inspections: check if containing declaration is marked with annotation
...
If a class is marked with @ApiStatus.Internal annotation, all its methods must be considered internal, even if invocation is performed via a subclass and no explicit reference onto a class exists.
If a package is marked with @ApiStatus.Internal, all its classes and their members must be considered internal.
GitOrigin-RevId: f8bcb2a91cf958b878cd45a58d4fed69297fd372
2019-07-02 06:52:16 +03:00
Sergey Patrikeev
c9eae61072
UnstableTypeUsedInSignatureInspection: do not report if declaration is not accessible (private), or in the same package
...
GitOrigin-RevId: ac1182eefc5894b9893481015d3b3355785b37a0
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
856a375563
Unstable and ScheduledForRemoval inspections tests refactoring: move to single module, move code to files.
...
GitOrigin-RevId: e4fb80e92b276952d608d0b721301471ac4e7cd7
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
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