Commit Graph

2979 Commits

Author SHA1 Message Date
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
556685de1b Remove changes to VariableNameDeclaration
Probably this is what causes DFAAR to change
behavior. The current behavior is wrong (two
variables are not equal just from their name,
that doesn't account for whether they're declared
independently or shadow a declaration). But
whatever, this will be scrapped in 7.0
2020-06-28 18:41:42 +02:00
e04223356b Merge branch 'master' into new-rule-UnusedAssignment 2020-06-28 18:19:40 +02:00
8c30440843 Move to bestpractices.xml 2020-06-28 18:15:04 +02:00
734da43fbf Ignore vars that start with "ignore" 2020-06-28 18:11:14 +02:00
82995fbe07 Fix unused formal value FN 2020-06-28 17:57:45 +02:00
a6d9d595dd Add test case for unused var 2020-06-28 17:26:23 +02:00
546c525ad0 Shorten messages a bit 2020-06-28 17:08:35 +02:00
3d7aaf7cda Fix FPs with reportUnusedVariables & foreach vars 2020-06-28 17:03:57 +02:00
388e29a9de Fix unused exception in loop 2020-06-28 16:35:53 +02:00
105f1a13a1 Implement loop condition flow 2020-06-28 02:22:06 +02:00
49f775be83 Disable reporting of unused vars by default 2020-06-28 00:26:22 +02:00
4207c36740 Fix some bugs 2020-06-27 23:34:29 +02:00
b049541126 Fix pmd warnings 2020-06-27 22:19:13 +02:00
36b0f83158 Make sure DFA issues are fixed
Refs #1304, #399, #400, #1107, #1251, #1606, #1675, #1682, #2131
2020-06-27 19:08:50 +02:00
b0891dfca3 Refactor 2020-06-27 18:21:39 +02:00
2dc8675b85 Doc 2020-06-27 18:21:39 +02:00
b7c09a9555 Suppress some overlap with UnusedVariable 2020-06-27 18:21:39 +02:00
58adfca79f Fix parenthesized expressions 2020-06-27 18:21:39 +02:00
1d022d3d91 Fix FP with side-effect in toplevel condition 2020-06-27 18:21:39 +02:00
c837e244e9 Handle shortcut boolean expressions in if/ternary 2020-06-27 18:21:39 +02:00
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