Commit Graph
519 Commits
Author SHA1 Message Date
Anna Kozlova 2021b5fa00 accept javax.annotation.concurrent as JSR 305 annotations for concurrency group inspections (IDEA-75733) 2016-01-04 13:07:14 +01:00
Alexander Zolotov 7cb3d001e8 Allow to use @TestOnly symbols inside @TestOnly fields (IDEA-148905) 2015-12-09 14:36:12 +10:00
peter 0ddd1243b9 honor vararg calls when inferring contracts (IDEA-148862) 2015-12-03 17:32:53 +01:00
peter 9d2abd7276 IDEA-148657 "if (false)" quickfix text is meaningless 2015-11-30 16:26:38 +01:00
peter ab6ec15175 IDEA-148477 Handle AssertJ assertions in the same way as JUnit assertions 2015-11-26 08:28:04 +01:00
Dmitry Batkovich 3b87d92145 Collections.addAll inspection checks for sequential 'addAll' methods (IDEA-147772) 2015-11-20 19:07:07 +03:00
Dmitry Batkovich ba979971d9 Collections.addAll inspection checks context for possibility of addAll() movement deeply IDEA-147770 2015-11-20 18:10:59 +03:00
Dmitry Batkovich 9ef7a5df22 Added settings for 'Collection without initial capacity' and 'Collection.addAll can be replaced with parametrized constructor' inspections (IDEA-148262) 2015-11-20 15:59:49 +03:00
peter 2aa8b8c099 Revert: perform arithmetic operations during dfa (part of IDEA-143315) (ea61e3e9e6) 2015-11-18 16:14:35 +01:00
peter ea61e3e9e6 perform arithmetic operations during dfa (part of IDEA-143315) 2015-11-17 17:19:44 +01:00
peter 66b5456707 IDEA-146131 @NotNull on parameters should only apply until reassignment 2015-11-17 17:19:43 +01:00
peter 2b9e895827 IDEA-147534 Inspection "@NotNull/@Nullable problems" - "Require @NotNull fileds to be initialized explicitly", does not trigger when using @NonnullByDefault 2015-11-06 16:48:33 +01:00
Dmitry Batkovich 9fa1a082f3 old guava inspection removed 2015-10-28 20:00:33 +03:00
Anna Kozlova f894921d1c don't warn about unimplemented Iterator.remove for type parameters 2015-10-28 16:05:02 +01:00
peter 27271e9979 dfa: IDEA-146950 "<" expr is always false but "<=" is not 2015-10-28 14:02:36 +01:00
Anna Kozlova dfb190bfe0 empty methods hierarchy: warn about deepest methods, top empty could be of use (IDEA-146409) 2015-10-27 10:04:09 +01:00
peter 488ef11fd4 dfa: support (i)++ (IDEA-146805) 2015-10-26 16:20:47 +01:00
Alexey Kudravtsev fd339313dc make temporary names more nice-looking, remove project files cached in VFS from the previous tests 2015-10-22 14:05:46 +03:00
peter af07f88aef IDEA-146122 Wrong 'can produce NPE' after comparing with enum constant 2015-10-12 13:33:38 +02:00
peter 67bfef7b1d dfa: add a test for assignment with side effects inside method calls (IDEA-145401, IDEA-CR-5542) 2015-10-12 13:33:37 +02:00
Anna Kozlova 866498cc6f control flow: take qualifier of left part of assignment expression into account (IDEA-146221) 2015-10-09 17:17:12 +02:00
peter f3c4a52ece dfa: don't suggest to assert/surround-with-if possible NPEs on volatile fields, suggest to extract a local variable instead (IDEA-145668) 2015-10-06 16:59:10 +02:00
peter f98d01be5e dfa: don't suggest to simplify boolean expressions with side effects (IDEA-145401) 2015-10-06 15:29:27 +02:00
peter 06c0f35c8f IDEA-146009 Good code is yellow: "Unboxing may produce NPE" inside forEach lambda 2015-10-06 15:24:36 +02:00
Anna Kozlova 9e5da70d34 redundant suppressions: run tool on injections (IDEA-104069) 2015-10-05 22:18:32 +02:00
Alexander Zolotov 3ab37bc487 Do not complain about referencing test-only class on anonymous classes
This functionality is covered by checking PsiCallExpression elements
2015-09-25 15:29:52 +03:00
Anna Kozlova b29779ed87 local can be final: don't ignore problems found in lambda body (IDEA-145500) 2015-09-25 13:53:40 +03:00
Anna Kozlova 9ebe7c76c9 unused library: bind parameter modifier lists with annotation classes (IDEA-145186) 2015-09-24 19:58:49 +03:00
Anna Kozlova dc5e1732f7 report redundant suppressions on line with suppression or on corresponding member if member annotated (IDEA-145472) 2015-09-24 13:09:22 +03:00
Alexey Kudravtsev 04fb864cc4 Reverted 2015-09-22 14:24:41 +03:00
Alexey Kudravtsev 54ffb7157d make temporary names more nice-looking, remove project files cached in VFS from the previous tests 2015-09-21 16:32:36 +03:00
Anna Kozlova c26cc82486 notify about refs to foreign types (IDEA-145186) 2015-09-16 18:53:29 +03:00
Alexander Zolotov 74d1b638f6 TestOnly inspection should validate classes 2015-09-14 14:47:48 +03:00
Anna Kozlova 741804bb7e field can be local: don't suggest if used in this/super calls (IDEA-142287) 2015-09-09 21:04:56 +03:00
peter bf4a3805e0 dfa: store CCE state in visitor, not runner: the latter is reused which can result in multiple warning 2015-09-01 21:48:59 +02:00
peter 0bae70149a IDEA-143937 Bogus warning by 'Constant conditions & exceptions' inspection within lambda expressions, due to JSR 305 @TypeQualifierDefault annotation 2015-08-18 20:00:23 +02:00
Anna Kozlova 5ab790eaac suppress single unused parameter 2015-08-18 19:15:28 +02:00
peter 0c28099a15 IDEA-143014 Wrong 'can be null' warning when assignment is done inside if condition 2015-07-31 13:28:36 +02:00
Dmitry Batkovich ea47e2fe30 GuavaFluentIterableInspection: visitor moved to checkFile() + fixed findContainingMethodReturnType() method when expression is placed inside lambda expression 2015-07-29 15:12:59 +03:00
peter 1b70adbfd4 IDEA-137195 Not annotated constant fields should be treated as Nullable or NotNull when static code analysis is able to prove Nullable/NotNull 2015-07-20 17:20:58 +02:00
Dmitry Batkovich 6bf915571b added tests to GuavaFluentIterableInspection 2015-07-15 18:13:30 +03:00
peter b091be1813 dfa: test that assert throws AssertionError (IDEA-69727) 2015-07-10 22:33:29 +02:00
peter eeabb7e9d8 IDEA-82971 False inspection int == double 2015-07-10 22:33:29 +02:00
peter 1f354e0e3d dfa: don't report parenthesized condition (IDEA-27427) 2015-07-10 20:38:55 +02:00
peter da6bf872ab IDEA-66134 Inspection "Constant conditions & exceptions": ignore boolean named constants 2015-07-10 20:38:55 +02:00
peter 99f343707f dfa: inspect enum constant methods (IDEA-142299) 2015-07-10 20:38:54 +02:00
peter bcc1f55c12 IDEA-142391 Don't report overriding externally-annotated @NotNull methods/parameters when there's no @NotNull annotation in the project 2015-07-10 20:38:53 +02:00
peter 1155a92a9e dfa: suppress constant condition checking for expression-internal assignments (IDEA-31697) 2015-07-10 20:38:53 +02:00
Dmitry Batkovich e98517a060 StaticPseudoFunctionalStyleMethodInspection: doesn't throw exception when lambda is variable 2015-07-02 19:52:42 +03:00
Dmitry Batkovich 4a3341e7bd PseudoFunctionStyleMethodInspection: detection of functional type improved 2015-07-02 18:45:40 +03:00