16145 Commits

Author SHA1 Message Date
Andreas Dangel
256a7cd565 [java] Fix annotation check for unit test rules 2020-04-03 19:48:46 +02:00
Andreas Dangel
6e38eaec31 [java] Optimize XPath rules that use count(x)=0 2020-04-03 18:29:00 +02:00
Andreas Dangel
4c712d467d [java] Refactor JUnit specific rules that use ancestor axis 2020-04-03 17:03:00 +02:00
Andreas Dangel
3e932de647 Merge branch 'master' into pr-2377 2020-04-03 16:25:22 +02:00
Andreas Dangel
04f0bb78b9 Merge branch 'pr-2380'
[java] Make TypeHelper use the class loading cache of ClassTypeResolver #2380
2020-04-03 15:41:09 +02:00
Andreas Dangel
e30e229cf5 [doc] Update release notes, fixes #2378 2020-04-03 15:40:10 +02:00
Andreas Dangel
b84e4dba88 Merge branch 'pr-2372'
[core] Deprecations for token managers #2372
2020-04-03 15:19:52 +02:00
Andreas Dangel
9385feb0e7 [doc] Update release notes, refs #2372 2020-04-03 15:19:43 +02:00
Andreas Dangel
a3cd0cf47d Merge branch 'pr-2384' #2384
[java] Performance improve xpath based rules
2020-03-29 17:26:26 +02:00
Andreas Dangel
961e2b2244 [doc] Update release notes, fixes #2390 2020-03-29 17:25:11 +02:00
Clément Fournier
b7af5fb4db Fix ClassWithOnlyPrivateConstructorsShouldBeFinal
Refs #1938
2020-03-28 17:41:10 +01:00
Clément Fournier
01c2389f58 Merge branch 'master' into xpath-update-rules 2020-03-28 17:32:22 +01:00
Clément Fournier
ac23b2cb3d Merge branch 'grammar-compact-records' 2020-03-28 15:10:56 +01:00
Clément Fournier
b308cc12c6 Merge branch 'saxon-rulechain-excludes' 2020-03-28 15:08:40 +01:00
Clément Fournier
e1a4b8ae97 Forbid type params for record ctors 2020-03-28 11:43:20 +01:00
Clément Fournier
485fa4ad50 Fix test case name 2020-03-28 11:06:10 +01:00
Clément Fournier
552931d965 Fix AbstractClassWithoutAnyMethods FN with inner classes 2020-03-28 11:03:40 +01:00
Andreas Dangel
409b35d4aa [doc] Update release notes, refs #2383, fixes #2358 2020-03-27 22:35:06 +01:00
Robert Sösemann
6042b69385 Merge pull request #2383 from gwilymatgearset/fix-invalid-apex-in-documentation
[apex] Fix invalid apex in documentation
2020-03-27 19:14:09 +01:00
Andreas Dangel
25ef59d5a7 [java] Performance improve xpath based rules
If an unbounded path expression like

    //PrimaryExpression[//ClassOrInterfaceDeclaration]

is used, then this will search the whole document again.
It will also avoid using rule chain later on, see #2382
2020-03-27 18:41:05 +01:00
Gwilym Kuiper
954f6b09d5 int -> Integer in apex/errorprone.xml 2020-03-27 16:50:53 +00:00
Gwilym Kuiper
315afeae90 Fixup whitespace 2020-03-27 16:50:15 +00:00
Gwilym Kuiper
25139da564 int -> Integer and float -> Double 2020-03-27 16:48:59 +00:00
Gwilym Kuiper
0bd1523172 Fix typo in method 2020-03-27 16:47:51 +00:00
Gwilym Kuiper
4139fd4dd2 Integer rather than int 2020-03-27 16:47:18 +00:00
Gwilym Kuiper
1e286ed281 Fixup indentation in apex/bestpractices.xml 2020-03-27 16:46:10 +00:00
Andreas Dangel
263c6e0d09 [core] Apply PR review suggestions, refs #2382 2020-03-27 17:46:07 +01:00
Gwilym Kuiper
22c66fde27 Add returns to setPhoneNumberIfNotExisting in documentation 2020-03-27 16:44:36 +00:00
Andreas Dangel
8ffe160f12 [core] saxon rulechain: consider boolean expr 2020-03-27 13:35:51 +01:00
Andreas Dangel
a0e1e40bcb [core] saxon rulechain: don't use rule chain for other path expressions 2020-03-27 12:58:38 +01:00
Clément Fournier
105e48b8e1 Fix TypeHelper array loading 2020-03-23 23:00:39 +01:00
Clément Fournier
acbecf3e65 Add tests 2020-03-23 22:05:29 +01:00
Clément Fournier
549a49790c Doc 2020-03-23 21:44:10 +01:00
Clément Fournier
633319015b Fix when the type is nullable 2020-03-23 21:04:34 +01:00
Clément Fournier
a2994a97d9 Fast path annotation types 2020-03-23 20:57:51 +01:00
Clément Fournier
96532f26cc Make typeIs XPath functions use the typeres cache 2020-03-23 20:49:43 +01:00
Clément Fournier
17ddfd2a22 Merge branch 'master' of github.com:pmd/pmd 2020-03-21 20:04:49 +01:00
Clément Fournier
0280668a51 [apex] Replace usages of AbstractApexNode in rules by ApexNode 2020-03-21 20:04:38 +01:00
Andreas Dangel
4ec1901680 Merge branch 'pr-2314' #2314
[doc] maven integration - Add version to plugin
2020-03-21 12:14:24 +01:00
Andreas Dangel
ce07c9b757 [doc] Update release notes, refs #2314 2020-03-21 12:13:23 +01:00
Andreas Dangel
4f392c9d25 [doc] maven - add "Choosing the plugin version" 2020-03-21 12:12:24 +01:00
Andreas Dangel
fe3b8f0f1c Merge branch 'issue-templates' #2286
[doc] Add github issue templates
2020-03-21 11:45:07 +01:00
Andreas Dangel
40d7d27665 [doc] Update issue template for bug reports and rule violations 2020-03-21 11:44:22 +01:00
Andreas Dangel
843f473252 Fix formatting 2020-03-21 11:27:40 +01:00
Clément Fournier
3d429019ee Fix rules 2020-03-20 18:47:40 +01:00
Clément Fournier
0d65c2e6e6 Add relevant property tag 2020-03-20 18:47:40 +01:00
Clément Fournier
eaceefc39e Update XPath rules to 2.0 2020-03-20 18:47:40 +01:00
Clément Fournier
30886544c5 Deprecations to clean up CPD 2020-03-20 18:00:16 +01:00
Clément Fournier
3269b48add Merge branch 'saxon-rulechain' 2020-03-20 14:47:31 +01:00
Clément Fournier
f927a561b5 Update release notes, refs #2354 2020-03-20 14:46:21 +01:00