2365 Commits

Author SHA1 Message Date
Andreas Dangel
220467ca18 [java] Update quickstart ruleset - UnsynchronizedStaticDateFormatter is deprecated
Add unit tests
Add missing rules
2019-03-16 12:55:03 +01:00
Andreas Dangel
d7aa1b1742 Support Expression in break statements 2019-03-16 11:55:38 +01:00
Andreas Dangel
6658dc3383 Support type resolution for SwitchExpressions 2019-03-16 11:55:38 +01:00
Andreas Dangel
607b4d1e6c [java] ASTLiteral should only try to parse the value, if it makes sense
This avoids number format exceptions when trying to parse a String as
a double.
2019-03-16 11:55:38 +01:00
Andreas Dangel
ca0975b68f Add additional tests
* Parse problem with switch fallthrough
* Verify type of switch expression
2019-03-16 11:55:38 +01:00
Clément Fournier
2793c3e029 Remove arbitrary lookahead 2019-03-16 11:55:38 +01:00
Clément Fournier
f5bc7031f5 Add structure tests 2019-03-16 11:55:38 +01:00
Andreas Dangel
65cac51445 [java] Add Java12 support 2019-03-16 11:55:38 +01:00
Andreas Dangel
8949019da6 [java] Add Java12 support 2019-03-16 11:55:38 +01:00
Andreas Dangel
7a69eb1e25 Merge branch 'pr-1717' 2019-03-12 22:05:29 +01:00
Rishabh Jain
e590f29da8 issue-1701 fix bug to suppress false positive in useTryWithResources when close method have multiple arguments 2019-03-11 22:11:24 -04:00
Andreas Dangel
fe0b7fd450 Merge branch 'pr-1541' 2019-03-11 16:22:28 +01:00
David Burström
b77225bcc1 Merge branch 'master' of https://github.com/pmd/pmd into master-while-loop-with-literal-boolean 2019-03-10 10:39:56 +01:00
David Burström
7075dd249b Add closing brackets to example 2019-03-10 10:38:05 +01:00
David Burström
146119af5c Migrate XPath rule to 2.0 2019-03-10 10:37:32 +01:00
David Burström
ff11ff6d0c Use Markdown syntax for better description formatting 2019-03-10 10:37:07 +01:00
David Burström
18296125a3 Rename test class so that it can be picked up by Surefire 2019-03-10 10:36:31 +01:00
Andreas Dangel
15381f2373 [java] Use XPath 2.0 for DetachedTestCase rule
Refs #1706
2019-03-09 17:58:49 +01:00
Andreas Dangel
1723acde4a java-design: reorder rules in category xml 2019-03-06 20:20:02 +01:00
Andreas Dangel
fccc9e8ed4 Merge branch 'pr-1706' 2019-03-06 20:19:44 +01:00
David Burström
3c32cbb629 [java] Detect while loops wih literal booleans conditions 2019-03-03 21:55:36 +01:00
Bhanu
50158b48c8 renamed rule 2019-03-03 12:45:48 -06:00
Bhanu
6f93e5aec6 updated rule description and message to be more descriptive of the rule. 2019-03-03 12:02:34 -06:00
Bhanu
95dca6be80 updated test cases file 2019-03-03 10:42:09 -06:00
Bhanu
67d509fa75 removed java lang imports 2019-03-03 10:42:09 -06:00
Bhanu
fac3c6b0a4 added new test case constructor declaring checked exceptions 2019-03-03 10:42:09 -06:00
Bhanu
e8a328e733 turned the rule into xpath rule 2019-03-03 10:05:04 -06:00
Bhanu
651a0e29df updated release version for SignatureDeclareThrowsRuntimeException 2019-03-02 22:59:29 -06:00
Bhanu
114795118f added test cases file for SignatureDeclareThrowsRuntimeException 2019-03-02 21:37:40 -06:00
Bhanu
0a3718aceb renamed isRuntimeException method 2019-03-02 21:36:43 -06:00
David Burström
6fe423cbf3 Add imports, add more annotations, fix misc review comments 2019-03-02 20:15:51 +01:00
David Burström
d675526658 [java] Add DetachedTestCase rule 2019-03-01 14:35:12 +01:00
Bhanu
31a8156b4f Added signature declare throws runtime exception 2019-02-28 19:52:30 -06:00
Clément Fournier
754309a926 Layer tests into containers 2019-02-19 19:23:57 +01:00
Clément Fournier
9d1cb2105f Merge branch 'master' into externalize-ast-matching-dsl 2019-02-19 18:57:40 +01:00
Juan Martín Sotuyo Dodero
b74527cb8e Merge branch 'pr-1598' 2019-02-17 16:33:33 -03:00
Juan Martín Sotuyo Dodero
4835b29f88 Merge branch 'pr-1538' 2019-02-17 14:37:52 -03:00
Juan Martín Sotuyo Dodero
4938fa8272 The rule will be part of 6.12.0 2019-02-17 14:33:41 -03:00
Clément Fournier
ff37222caf Use Assertions in testGroup 2019-02-17 14:35:21 +01:00
Andreas Dangel
544238244b [java] Rename UseDiamondOperator -> UseDiamondOperatorTest 2019-02-10 09:42:41 +01:00
Juan Martín Sotuyo Dodero
189c5990f4 Split test cases for granularity 2019-02-09 13:11:16 -03:00
Shubham
74d45a90f0 New test case added 2019-02-09 16:31:09 +05:30
IDoCodingStuffs
cba6ea376f Revert autoformatting whitespaces 2019-02-08 21:21:52 -05:00
IDoCodingStuffs
834283b34f Removed .isArray check, replaced with placeholder 2019-02-08 21:09:48 -05:00
IDoCodingStuffs
97d8faa2ef Modified regex logic to account for multiple initializers 2019-02-08 20:57:31 -05:00
IDoCodingStuffs
adabe19ec4 Rename test class 2019-02-08 20:55:40 -05:00
IDoCodingStuffs
67f755ad3a Additional test case for multiple initializers 2019-02-08 20:37:17 -05:00
Shubham
5bb24d96cf XPATH for UseDiamondOperator Rule Updated 2019-02-08 17:26:35 +05:30
IDoCodingStuffs
0e2bbfc860 Added check for null node image to avoid regex checking null str 2019-02-07 18:56:16 -05:00
IDoCodingStuffs
83f6b49cc0 Further style fixes 2019-02-07 17:57:22 -05:00