cb09b6b9be
Test local/anon class
2020-06-27 18:21:39 +02:00
496f7653c6
Special case pre-increment if value is used
2020-06-27 18:21:39 +02:00
96e96406ff
Better messages
2020-06-27 18:21:39 +02:00
5fe97ee9ca
Add tests
2020-06-27 18:21:39 +02:00
776bf0990c
React to @SuppressWarnings("unused")
2020-06-27 18:21:39 +02:00
e0e2d8de6c
Fix foreach bug
2020-06-27 18:21:39 +02:00
3a036c4933
FN with ctor var shadowing
2020-06-27 18:21:39 +02:00
46ae538b18
Fix some FPs
2020-06-27 18:21:39 +02:00
d9a9a83caf
Handle field initializers and ctors
2020-06-27 18:21:39 +02:00
b7e5cb0182
Refactor
2020-06-27 18:21:39 +02:00
32392ed27e
Lambda bug
2020-06-27 18:21:39 +02:00
e228e5590f
Improve finally
2020-06-27 18:21:39 +02:00
972610fe89
Try/catch
2020-06-27 18:21:39 +02:00
9f54f2715e
Change terminology
2020-06-27 18:21:39 +02:00
069287e9e1
Better messages
2020-06-27 18:21:39 +02:00
aee18faae3
Named labels
2020-06-27 18:21:39 +02:00
b6dd5ad425
Simplify
2020-06-27 18:21:39 +02:00
fec7a3b14b
REVERT code to check for unused variables
2020-06-27 18:21:39 +02:00
990b39c472
Handle labeled loops
2020-06-27 18:21:39 +02:00
5cebe5d5ec
Consider inc/decrement expressions
2020-06-27 18:21:38 +02:00
75b5fbf62b
Continue statement
2020-06-27 18:21:38 +02:00
e771242597
Switch
2020-06-27 18:21:38 +02:00
d0a96e7808
Finish loops
2020-06-27 18:21:38 +02:00
2448cc73ce
Handle break
2020-06-27 18:21:38 +02:00
138698be0a
Handle while loop
2020-06-27 18:21:38 +02:00
e8bd8c1d71
Fix conditional flow
2020-06-27 18:21:38 +02:00
dd0532f095
Add UnusedAssignment to replace data flow rule
2020-06-27 18:21:38 +02:00
95d8e80c1b
[maven-release-plugin] prepare for next development iteration
2020-06-27 11:31:27 +02:00
a219b2e1be
[maven-release-plugin] prepare release pmd_releases/6.25.0
2020-06-27 11:31:16 +02:00
acbbbee685
Merge branch 'pr-2608'
...
[apex][plsql][java] Deprecate base rule classes #2608
2020-06-26 18:01:30 +02:00
9508a92c2b
[java] Change rule priority of new rules to 3
2020-06-22 19:34:58 +02:00
6fded20178
Merge branch 'master' into perf-UseIOStreamsWithApacheCommonsFileItem
2020-06-22 19:32:29 +02:00
ee8d77bf09
Merge branch 'master' into perf-UseStringBufferForStringAppends
2020-06-21 17:58:06 +02:00
75146a06bf
Merge branch 'master' into perf-InefficientStringBuffering
2020-06-21 17:50:29 +02:00
ae2b481aa2
Merge branch 'master' into perf-AvoidCalendarDateCreation
2020-06-21 17:42:25 +02:00
f6644c0eb0
[java] Deprecate overly specific base rule classes
...
Fixes #971
2020-06-20 11:54:55 +02:00
26cfd347fd
Merge branch 'master' into perf-UseStringBufferForStringAppends
2020-06-20 11:29:11 +02:00
4b494899bf
[java] UseStringBufferForStringAppends: fix false positives
...
Fix false positives with field assignment and shadowing parameters
2020-06-20 10:50:31 +02:00
534bfe3c55
Merge branch 'pr-2572'
...
[cpd] Allow CPD tests based on a text dump #2572
2020-06-18 20:09:58 +02:00
0f06f5132a
Merge branch 'pr-2593'
...
[java] NPathComplexity should mention the expected NPath complexity #2593
2020-06-18 15:09:35 +02:00
fd63c97d33
[java] NPathComplexityRule: Use String.valueOf consistently
2020-06-18 15:07:00 +02:00
ca44ca3964
Merge branch 'pr-2557'
...
[java] UseProperClassLoader can not detect the case with method call … #2557
2020-06-18 15:03:43 +02:00
5579ddc21a
[java] UseStringBufferForStringAppends: add good example
2020-06-18 14:48:34 +02:00
dda76be8ae
[java] UseStringBufferForStringAppends: fix false negative with fields
...
And also fix false positive when concatenation is local to each
for-loop iteration.
Test cases originally from #1932
Author: jborgers <jborgers@jpinpoint.com >
2020-06-18 14:37:47 +02:00
f1d46714a5
[java] InefficientStringBuffering: fix another ternary false positive
2020-06-18 12:10:36 +02:00
4feb44b373
[java] AvoidCalendarDateCreation: fix more false positives
2020-06-18 11:58:37 +02:00
93930c40fb
Merge branch 'master' into perf-AvoidCalendarDateCreation
2020-06-18 11:13:55 +02:00
f1400e37f7
[java] AvoidCalendarDateCreation - fix false positives
2020-06-18 11:11:15 +02:00
1e986ed793
[java] Fix false positive for AppendCharacterWithChar and InefficientStringBuffering
...
Also make both rules use the rule chain.
2020-06-18 10:28:12 +02:00
8e47ed3188
Merge branch 'master' into cpd-text-comp
2020-06-17 20:00:50 +02:00