861 Commits

Author SHA1 Message Date
Andreas Dangel
eb683569af Merge branch 'pr-2617'
[core] Deprecate missing language attribute on rule definition #2617
2020-07-30 10:19:03 +02:00
Andreas Dangel
fe82f6a448 Dogfood - update PMD to 6.26.0, update build-tools 2020-07-25 15:27:24 +02:00
Andreas Dangel
49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00
Andreas Dangel
a9632e2a06 [maven-release-plugin] prepare release pmd_releases/6.26.0 2020-07-25 13:45:27 +02:00
Andreas Dangel
8a6975f8ec [apex] Improve AST for try-catch-finally statements 2020-07-24 16:55:48 +02:00
Clément Fournier
6f9aedfaeb Merge branch 'master' into issue-2598 2020-07-23 15:51:13 +02:00
Andreas Dangel
7b3d31246e Merge branch 'master' into pr-2624 2020-07-17 15:16:24 +02:00
Andreas Dangel
7ae424a35b Add deprecation javadocs 2020-07-17 14:43:43 +02:00
Andreas Dangel
e24a26e211 Merge branch 'pr-2629'
[all] Dependencies cleanup #2629
2020-07-17 12:07:03 +02:00
Andreas Dangel
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
Andreas Dangel
05933c646e [apex] AvoidSoqlInLoops false positive for SOQL with in For-Loop
Fixes #2598
2020-07-16 20:13:53 +02:00
Andreas Dangel
17e57633b5 Merge branch 'master' into pr-2597 2020-07-16 18:25:59 +02:00
Andreas Dangel
9180b479cb [apex] Remove profile designer, which started the deprecated designer
Users are encouraged to use https://github.com/pmd/pmd-designer instead.
2020-07-16 18:20:43 +02:00
Andreas Dangel
9168a76e84 Merge branch 'pr-2610'
[apex] Support top-level enums in rules #2610
2020-07-16 17:47:48 +02:00
Clément Fournier
7ccec3bcef Merge branch 'master' into deprecate-set-lang-in-java 2020-07-06 14:02:46 +02:00
Clément Fournier
8add323403 Fix other offenders 2020-07-06 14:02:21 +02:00
Andreas Dangel
1fb085f7ab Use StringUtils.equalsIgnoreCase 2020-07-03 11:58:38 +02:00
Andreas Dangel
147f1ac053 [apex] UnusedLocalVariable - false positive on case insensitivity allowed in Apex
Fixes #2626
2020-07-02 22:39:17 +02:00
Andreas Dangel
370c0b0b6d Remove unused dependency, explicitly declare used dependencies 2020-07-02 15:12:31 +02:00
Clément Fournier
49635c2a66 Deprecate Rulechain visitors 2020-07-01 11:27:38 +02:00
Clément Fournier
659066ee02 Deprecate BaseLanguageModule constructor 2020-07-01 11:27:38 +02:00
Clément Fournier
d7f96e08d9 Uniformize apply across languages 2020-07-01 11:27:38 +02:00
Clément Fournier
3dd49db9cc Reorder attributes
(name first)
2020-06-27 18:08:30 +02:00
Clément Fournier
50cd4668a8 Fix apex rules 2020-06-27 17:59:20 +02:00
Andreas Dangel
95d8e80c1b [maven-release-plugin] prepare for next development iteration 2020-06-27 11:31:27 +02:00
Andreas Dangel
a219b2e1be [maven-release-plugin] prepare release pmd_releases/6.25.0 2020-06-27 11:31:16 +02:00
Andreas Dangel
acbbbee685 Merge branch 'pr-2608'
[apex][plsql][java] Deprecate base rule classes #2608
2020-06-26 18:01:30 +02:00
Andreas Dangel
9810cdd654 Fix StdCyclomaticComplexity: enums should not be considered
In Apex enums, there can't be any custom methods.
2020-06-20 19:54:54 +02:00
Andreas Dangel
5b0c20a93f [apex] Support top-level enums in rules 2020-06-20 19:49:46 +02:00
Andreas Dangel
23c08b52b2 [apex] Internalize ApexParser and ApexHandler 2020-06-20 19:28:48 +02:00
Andreas Dangel
a19e50a804 [apex] Deprecate overly specific base rule classes
Refs #971
2020-06-20 12:01:38 +02:00
Andreas Dangel
534bfe3c55 Merge branch 'pr-2572'
[cpd] Allow CPD tests based on a text dump #2572
2020-06-18 20:09:58 +02:00
Andreas Dangel
45d3c07201 Merge branch 'pr-2556'
[apex] Exception applying rule UnusedLocalVariable on trigger #2556
2020-06-18 15:01:25 +02:00
Artem Krosheninnikov
2b882e8655 fix issue #2594, update exec-maven-plugin everywhere 2020-06-18 00:48:57 +03:00
Clément Fournier
2592c56229 Make apex end column inclusive 2020-06-17 20:03:16 +02:00
Clément Fournier
8e47ed3188 Merge branch 'master' into cpd-text-comp 2020-06-17 20:00:50 +02:00
Clément Fournier
d631b79307 Deprecate stuff for #2491 2020-06-14 21:36:33 +02:00
Clément Fournier
fb0819f319 Convert Apex tests 2020-06-14 00:29:58 +02:00
Andreas Dangel
8defb2fde2 Add missing relativePath configuration in all pom modules 2020-06-07 12:36:58 +02:00
Andreas Dangel
c680b260b9 [apex] Exception applying rule UnusedLocalVariable on trigger
Fixes #2554
2020-05-30 11:08:44 +02:00
Andreas Dangel
ab04bdacdd [maven-release-plugin] prepare for next development iteration 2020-05-24 17:34:34 +02:00
Andreas Dangel
229cb2bdca [maven-release-plugin] prepare release pmd_releases/6.24.0 2020-05-24 17:34:25 +02:00
Andreas Dangel
e1cd3b4c8d Merge branch 'pr-2487'
[all] Cleanup rule test xml #2487
2020-05-22 19:41:01 +02:00
Andreas Dangel
6049126228 Merge branch 'pr-2465'
[dependencies] Upgrade hamcrest, mockito and JUnit #2465
2020-05-22 11:46:04 +02:00
Andreas Dangel
f930491538 [apex] Cleanup rule test xml files
Avoid unnecessary CDATA for description
Use 4 space indentation instead of tabs
Remove trailing whitespace
End file with a newline
2020-05-16 18:55:58 +02:00
Gwilym Kuiper
3571608234 Handle chained method calls.
This wasn't working because they had a null image. Turns out that nodes
have a method called `hasImageEqualTo` which handles the null case for
us.
2020-05-06 11:26:14 +01:00
Gwilym Kuiper
acbf53e8ab Variable is used if method is called on it 2020-05-06 11:11:13 +01:00
Artem Krosheninnikov
3fba3f6217 Update hamcrest to 2.2, Junit to 4.13, mockito to 2.28.2 2020-05-04 23:00:28 +03:00
Andreas Dangel
522e98b65f Merge branch 'pr-2446'
[core] Update maven-compiler-plugin to 3.8.1 #2446
2020-04-30 19:29:38 +02:00
Andreas Dangel
4192f04c1d [apex] clarify AvoidGlobalModifier, refs #2298 2020-04-27 19:41:33 +02:00