Commit Graph

3095 Commits

Author SHA1 Message Date
6a9a834c67 Same for NPath 2020-07-23 14:51:26 +02:00
9a47d658e6 Handle switch exprs properly 2020-07-23 14:42:29 +02:00
fbeaa5bc74 Merge branch 'master' into issue-2625 2020-07-23 14:26:33 +02:00
d239987d26 Merge branch 'master' into issue-2615 2020-07-23 14:15:47 +02:00
62666213ba Deprecate pmd-core::lang.rule.ImportWrapper 2020-07-23 11:15:03 +02:00
5c1a11c0b4 Merge branch 'pr-2652'
[java] UseCollectionIsEmpty can not detect the case this.foo.size() #2652
2020-07-23 10:47:02 +02:00
6b44e326ce [java] UseCollectionIsEmpty: improve test cases 2020-07-23 10:44:22 +02:00
ed77b3dc46 Merge branch 'pr-2651'
[java] False negative: LiteralsFirstInComparisons for methods... (2569) #2651
2020-07-23 10:15:09 +02:00
66d243efa1 [java] LiteralsFirstInComparison: additional test case 2020-07-23 10:10:26 +02:00
7941d8d610 Merge branch 'master' into issue-2625 2020-07-23 09:57:57 +02:00
677bfd4ae4 [java] Added additional test case for CycloMetric
And fixed comments in test cases

Refs #2631
2020-07-23 09:46:50 +02:00
c351314f30 LiteralsFirstInComparisonsRule: ignore two string literals comparison 2020-07-22 13:46:08 +03:00
d03640b25e Merge branch 'pr-2641'
[java] AvoidThrowingNullPointerException marks all NullPointerException… #2641
2020-07-21 19:57:29 +02:00
892b16c805 AvoidThrowingNullPointerException: isNullPointerException usage fix 2020-07-21 15:56:44 +03:00
68f90687af AvoidThrowingNullPointerException: NPE instances tracking fix 2020-07-21 14:54:23 +03:00
2e9f5ad897 Merge branch 'master' into issue-2615 2020-07-20 16:36:16 +02:00
6d73eaf3c7 Fix custom parser spec
Add kotest-runner-junit5-jvm as a dependency,
in pmd-java. This makes kotest discoverable
as Junit tests, which IDEs can pick up on (at
least IntelliJ does).

Update kotlin version to latest stable (1.3.72)
2020-07-20 16:33:29 +02:00
68ae318f02 Update to kotest 2020-07-20 00:12:40 +02:00
25405eb870 Merge branch 'pr-2643'
[java] AvoidCallingFinalize detects some false positives (2578) #2643
2020-07-17 20:30:01 +02:00
db21d589d4 [java] AvoidCallingFinalizeRule - use rulechain
And improve tests
2020-07-17 20:28:55 +02:00
585b9099ca Merge branch 'pr-2640'
[java] NullPointerException in rule ProperCloneImplementation #2640
2020-07-17 19:47:30 +02:00
74fb7ba1fb [java] UseCollectionIsEmpty can not detect the case this.foo.size() (2543) 2020-07-17 16:30:37 +03:00
7b3d31246e Merge branch 'master' into pr-2624 2020-07-17 15:16:24 +02:00
7ae424a35b Add deprecation javadocs 2020-07-17 14:43:43 +02:00
e24a26e211 Merge branch 'pr-2629'
[all] Dependencies cleanup #2629
2020-07-17 12:07:03 +02:00
94afdb117d Add test engines as surefire plugin dependencies
This removes junit-vintage-engine as a test dependency
as well as kotlintest-runner-junit5.
The engines are only needed during test execution, but should
not be available for test compilation.

For this to work, the latest surefire plugin is required.
2020-07-17 12:03:45 +02:00
01e48c882b AvoidCallingFinalize: expected lines added to test 2020-07-17 11:05:55 +03:00
9887d5a387 Merge branch 'pr-2618'
[java] New rule: UnusedAssignment #2618
2020-07-16 19:56:22 +02:00
88ac918e4f [java] UnusedAssignmentRule - add rule chain visit 2020-07-16 19:53:41 +02:00
a8a3fccdf5 [doc] Update release notes, new rule UnusedAssignment 2020-07-16 19:22:38 +02:00
9bbb6aab4d AvoidCallingFinalize: constructor false negative fix 2020-07-16 19:21:22 +03:00
a3670e4135 [java] False negative: LiteralsFirstInComparisons for methods returning Strings (2569) 2020-07-16 18:10:36 +03:00
80103ab52a [java] LawOfDemeter: False positive with indexed array access
Fixes #2181
2020-07-16 13:56:53 +02:00
24af109454 Merge branch 'master' into pr-2560 2020-07-16 13:17:45 +02:00
693c870f28 [java] LawOfDemeter - add test cases 2020-07-16 13:12:17 +02:00
65e37cadca AvoidThrowingNullPointerException: addViolation usage fix 2020-07-16 12:37:01 +03:00
6d4d3b20fc [java] DuplicateImports - fix false positive with static import
Fixes #2546
2020-07-16 11:24:57 +02:00
2eedff056c AvoidCallingFinalize: addViolation, getArgsCount fix 2020-07-16 11:55:09 +03:00
a60615f542 [java] AvoidInstantiatingObjectsInLoopsRule - add test case for fixed FN
By changing this rule to use rule chain, this FN for anonymous classes
has been fixed as well.
2020-07-16 10:39:30 +02:00
5a6e3d609e [java]AvoidCallingFinalize detects some false positives (2578) 2020-07-15 15:44:54 +03:00
061c9656cc [java]AvoidThrowingNullPointerException marks all NullPointerException objects as wrong, whether or not thrown (2580) 2020-07-14 15:53:26 +03:00
782cb9d262 [java] NullPointerException in rule ProperCloneImplementation 2020-07-14 14:00:42 +03:00
cc408d2876 [java] AvoidInstantiatingObjectsInLoopsRule - fix false negative 2020-07-13 20:00:46 +02:00
c5364a81f8 [java] Fix and simplify AvoidInstantiatingObjectsInLoopsRule 2020-07-09 18:55:10 +02:00
e48489450f [java] Add test for #2207: AvoidInstantiatingObjectsInLoops false positives 2020-07-09 18:54:53 +02:00
8766d54a07 [java] Fix and simplify UseStringBufferForStringAppendsRule 2020-07-09 16:08:30 +02:00
6f6f87c7dc [java] Add test for #1736: UseStringBufferForStringAppends false positive 2020-07-09 15:21:36 +02:00
e6c32ecbaa Update UseStringBufferForStringAppendsRule.java 2020-07-09 15:12:32 +02:00
b782575951 Update AvoidInstantiatingObjectsInLoopsRule.java 2020-07-09 15:12:32 +02:00
6cff647681 fix issue #2207 2020-07-09 15:11:03 +02:00