22165 Commits

Author SHA1 Message Date
Clément Fournier
c2eb1e6bab checkstyle issues 2021-09-15 18:25:04 +02:00
Clément Fournier
e945897278 Fix pmd warning 2021-09-15 17:36:47 +02:00
Clément Fournier
5d278c049b Fix compilation issues 2021-09-15 16:58:38 +02:00
jborgers
de6ddbd624 Separate Kotlin.g4 for parser grammar and KotlinLexer.g4 for lexer grammar; and move PmdKotlinParser.java to the right place 2021-09-15 15:41:36 +02:00
jborgers
a82e7eff24 Handled all steps of "Adding PMD support for a new ANTLR grammar based language" except $. Generate your Parser did not succeed because combining lexer and parser grammars has issues. 2021-09-13 14:15:25 +02:00
jborgers
cde4efb27e Combine KotlinParser, KotlinLexer and UnicodeClasses and use Swift.g4 as example 2021-09-10 17:10:24 +02:00
jborgers
2780560b36 Add official Kotlin ANTLR grammar files, copy and rename some more from Swift 2021-09-08 18:37:00 +02:00
jborgers
1fda7a0782 Adding PMD support for a new ANTLR grammar based language - step 1-4 2021-09-07 16:17:58 +02:00
Andreas Dangel
5f13215445 Merge branch 'master' into pmd/7.0.x 2021-08-28 17:47:46 +02:00
Andreas Dangel
c38e9d40e6 Prepare next development version 2021-08-28 17:31:18 +02:00
Andreas Dangel
65af1c0675 [maven-release-plugin] prepare for next development iteration 2021-08-28 17:27:18 +02:00
Andreas Dangel
7d11a02052 [maven-release-plugin] prepare release pmd_releases/6.38.0 pmd_releases/6.38.0 2021-08-28 17:27:12 +02:00
Andreas Dangel
5aa23354d4 Prepare pmd release 6.38.0 2021-08-28 17:15:29 +02:00
Andreas Dangel
17d0473eb2 Merge pull request #3482 from adangel:guidelines-standard-rules
[doc] Add rule guidelines #3482
2021-08-27 16:27:29 +02:00
Andreas Dangel
d5240fffb4 Merge pull request #3458 from oowekyala:update-SwitchDensity
[java] Update rule SwitchDensity #3458
2021-08-23 19:28:00 +02:00
Andreas Dangel
af51d2d331 Bump build-tools from 16-SNAPSHOT to 16 2021-08-23 19:19:50 +02:00
Clément Fournier
def74df7a9 Add test with empty switch stmt 2021-08-23 15:26:51 +02:00
Clément Fournier
07a7360959 Fix comment about double division
Co-authored-by: Andreas Dangel <andreas.dangel@pmd-code.org>
2021-08-23 15:25:50 +02:00
Andreas Dangel
ea79544a59 [java] SwitchDensity: Fix FP with default label 2021-08-22 21:40:52 +02:00
Andreas Dangel
2df54339e7 Add missing @Override 2021-08-22 20:15:36 +02:00
Andreas Dangel
b0b2087316 [doc] Fix more old rule references 2021-08-22 17:19:44 +02:00
Andreas Dangel
63998b2a28 Merge pull request #3457 from oowekyala:update-UseUtilityClass
[java] Update rule UseUtilityClass #3457
2021-08-22 17:03:28 +02:00
Andreas Dangel
b49093daf4 [doc] UseUtilityClass: The property ignoredAnnotations has been
removed.
2021-08-22 17:03:19 +02:00
Andreas Dangel
79df6231ec Merge pull request #3450 from oowekyala:update-SimplifiedTernary
[java] Update rule SimplifiedTernary #3450
2021-08-22 17:01:26 +02:00
Andreas Dangel
95e8c7daa1 Merge pull request #3449 from oowekyala:update-SimplifyConditional
[java] Update rule SimplifyConditional #3449
2021-08-22 16:59:26 +02:00
Andreas Dangel
954723d927 Merge pull request #3448 from oowekyala:pmd7-remove-deprecated-rules
[java] Remove deprecated rules in pmd 7 #3448
2021-08-22 16:58:48 +02:00
Andreas Dangel
489f28edd3 Merge branch 'master' into pmd/7.0.x 2021-08-22 16:53:55 +02:00
Andreas Dangel
2636fde5d9 Merge pull request #3470 from jfeingold35:addSuperCall
[apex] Fix ApexCRUDViolationRule - add super call #3470
2021-08-22 14:52:57 +02:00
Andreas Dangel
e22a434527 [doc] Update release notes (#3462, #3484, #3470) 2021-08-22 14:51:49 +02:00
Andreas Dangel
b2adc915bb Merge pull request #3447 from oowekyala:issue3446-apex-file-name
[core] Add access to file name in XPath rules #3447
2021-08-22 14:37:29 +02:00
Andreas Dangel
e9e51ddfdb [doc] Update release notes (#3447, #3446) 2021-08-22 14:35:33 +02:00
Andreas Dangel
5a22ef104b [doc] Document new xpath fun "pmd:fileName()" 2021-08-22 14:31:18 +02:00
Andreas Dangel
742871afcc [doc] Add rule guidelines
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2021-08-20 19:29:29 +02:00
Andreas Dangel
5770785847 [ci] Remove profile "pmd-dogfood" as this doesn't work well with release
Use alternative solution by modifying the version directly
in pom.xml for dogfood build.
2021-08-19 19:24:37 +02:00
Andreas Dangel
7e15f1781c [java] Suppress ReturnEmptyCollectionRatherThanNull violations
in InferenceRuleType - as null is used as a additional value...
and null/empty is different.
2021-08-19 18:38:58 +02:00
Andreas Dangel
4516f39686 Bump build-tools from 15 to 16-SNAPSHOT 2021-08-19 18:11:53 +02:00
Andreas Dangel
f23d68e432 Bump maven from 3.8.1 to 3.8.2 2021-08-19 17:59:03 +02:00
Andreas Dangel
7103b7f96d Merge pull request #3404 from oowekyala:update-ClassWithOnlyPrivateConstructorsShouldBeFinal
[java] Update ClassWithOnlyPrivateConstructorsShouldBeFinal #3404
2021-08-19 16:26:49 +02:00
Andreas Dangel
3a7f264945 Merge pull request #3384 from Monits:update-rules
[java] Update many Java rules #3384
2021-08-19 16:14:16 +02:00
Andreas Dangel
dcbdbc027f Merge pull request #3381 from Monits:update-return-from-finally
[java] Update ReturnFromFinallyBlock #3381
2021-08-19 16:13:27 +02:00
Andreas Dangel
9f72026913 Merge branch 'pmd/7.0.x' into pr-3384 2021-08-19 11:46:01 +02:00
Andreas Dangel
50cb179b5b Merge branch 'pmd/7.0.x' into pr-3381 2021-08-19 10:42:09 +02:00
Joshua Feingold
0a92718a4e Added comment explaining reason for decisions. 2021-08-18 16:49:04 -05:00
Joshua Feingold
389d2e855e Switched logical OR to assignment operator, and moved initialization of member variables to .start() method. 2021-08-18 16:29:27 -05:00
Joshua Feingold
f97347eb86 ApexCRUDViolationRule now properly recurses into for-each loops. 2021-08-18 14:47:56 -05:00
Andreas Dangel
c961c74458 Bump commons-compress from 1.19 to 1.21
CVE-2021-36090: https://github.com/advisories/GHSA-mc84-pj99-q6hh
CVE-2021-35516: https://github.com/advisories/GHSA-crv7-7245-f45f
CVE-2021-35515: https://github.com/advisories/GHSA-7hfm-57qf-j43q
CVE-2021-35517: https://github.com/advisories/GHSA-xqfj-vm6h-2x34
2021-08-16 19:29:40 +02:00
Andreas Dangel
7796535a24 Bump ant from 1.10.9 to 1.10.11
CVE-2021-36374: https://github.com/advisories/GHSA-5v34-g2px-j4fw
CVE-2021-36373: https://github.com/advisories/GHSA-q5r4-cfpx-h6fh
2021-08-16 19:28:09 +02:00
Clément Fournier
f9c140ed7a Tests for fixed bugs 2021-08-09 19:22:47 +02:00
Clément Fournier
8dac4d74d5 Remove unresolved reference warnings 2021-08-09 19:20:04 +02:00
Clément Fournier
8b98c861a2 Update rule UseUtilityClass 2021-08-09 19:13:51 +02:00