Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
719 commits
Select commit Hold shift + click to select a range
4538a88
add params in sonar rules xml based on Java Rule properties
stokpop Jul 9, 2025
dd365b7
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 9, 2025
ee5c003
remove unused apache ivy dependency
stokpop Jul 9, 2025
f3c1d1f
Merge pull request #535 from jborgers/dependabot/maven/org.codehaus.g…
stokpop Jul 9, 2025
6d3293d
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 9, 2025
a588a74
added zip bomb prevention
stokpop Jul 9, 2025
2f103ea
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 9, 2025
9da7269
Revert "remove unused apache ivy dependency"
stokpop Jul 9, 2025
5ab5b86
pull md to html conversion into sonar-pmd-lib util Java class
stokpop Jul 9, 2025
b739758
also upload sonar-pmd-lib jar
stokpop Jul 9, 2025
8318ad9
build(deps): bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0
dependabot[bot] Jul 10, 2025
52a2cdf
Merge pull request #539 from jborgers/dependabot/maven/org.apache.com…
jborgers Jul 11, 2025
20c64f0
Revert "remove unused apache ivy dependency"
stokpop Jul 9, 2025
ad17e39
removed all md rule files in docs because we fetch this dynamically i…
stokpop Jul 11, 2025
f730a9d
Updated readme.md: 4.1.0 release doc
jborgers Jul 11, 2025
7b36578
improve the detailed rule release notes
stokpop Jul 11, 2025
9e3bad9
improve release notes generation, renaming "skipped" rules to "rename…
stokpop Jul 11, 2025
a229485
update and simplify RELEASE.md
stokpop Jul 11, 2025
705b900
fix regex security warnings
stokpop Jul 11, 2025
bd0d80d
fix regex security warnings - part 2
stokpop Jul 11, 2025
31cb5b8
fix regex security warnings - part 2
stokpop Jul 11, 2025
6208ba2
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 11, 2025
3dacb44
fix jar security warnings
stokpop Jul 13, 2025
d2a195a
fix jar security warnings: SuppressWarning with hint that countermeas…
stokpop Jul 13, 2025
d272766
sonar-pmd-lib: fix pmd issues
stokpop Jul 13, 2025
928e114
Merge branch 'master-issue-529-rule-properties' into issue-529-rule-p…
stokpop Jul 13, 2025
1114560
sonar-pmd-lib: fix regex security issues
stokpop Jul 13, 2025
fdc8aa4
build(deps-dev): bump org.sonarsource.sonarqube:sonar-plugin-api-impl
dependabot[bot] Jul 14, 2025
efa239b
sonar-pmd-lib: explain the regex patterns
stokpop Jul 14, 2025
413cb20
sonar-pmd-lib: fix regex security risks, improve regex comments and c…
stokpop Jul 14, 2025
47a40c3
build(deps): bump org.sonarsource.java:java-frontend
dependabot[bot] Jul 14, 2025
c772dd3
update readme for 4.1.0 release
stokpop Jul 15, 2025
0df3a01
improve rule release notes, use prio as displayed in SonarQube, added…
stokpop Jul 15, 2025
6717dc8
added rules summary to README.md
stokpop Jul 15, 2025
7c94163
Merge pull request #540 from jborgers/master-prerelease-4.1.0
jborgers Jul 15, 2025
75b79b0
build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin
dependabot[bot] Jul 16, 2025
4958462
README.md: added rule properties limitation
stokpop Jul 16, 2025
59687cc
CHANGELOG.md.md: update voor 4.1.0 release
stokpop Jul 16, 2025
29708da
CHANGELOG.md and README.md applied review feedback
stokpop Jul 16, 2025
3c3c11b
issue 543: revivify XPathRule via groovy xml rules generator, example…
stokpop Jul 17, 2025
10300da
issue 543: review comment non-conformant class name
stokpop Jul 17, 2025
c8527dc
Merge pull request #544 from jborgers/master-issue543-xpathrule
jborgers Jul 17, 2025
6e0ffa3
activate kotlin sensor and executor
stokpop Jul 17, 2025
8224660
added kotlin executor unit tests
stokpop Jul 17, 2025
41dacd1
removed the dependency on JavaResourceLocator and thus the runtime de…
stokpop Jul 17, 2025
999b739
classpath the findbugs way
stokpop Jul 17, 2025
990d20d
use java-frontend jar without provided scope to make the pmd sonar ja…
stokpop Jul 17, 2025
a07b215
refactor into PmdJavaExecutor and PmdKotlinExecutor
stokpop Jul 17, 2025
cad1a6d
refactor PmdExecutorTest into PmdJavaExecutorTest and PmdKotlinExecut…
stokpop Jul 18, 2025
492df0f
Merge pull request #541 from jborgers/dependabot/maven/org.apache.mav…
stokpop Jul 18, 2025
cd52a84
Merge pull request #536 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Jul 18, 2025
6b2d5d7
Merge branch 'master' into master-prerelease-4.1.0
stokpop Jul 18, 2025
9bb2154
update CHANGELOG.md for release 4.1.0
stokpop Jul 18, 2025
97bb376
update CHANGELOG.md for release 4.1.0 - add 4.2.0-SNAPSHOT
stokpop Jul 18, 2025
4d0f497
update CHANGELOG.md for release 4.1.0 - added/updated Java rules numbers
stokpop Jul 18, 2025
91ab5fb
Merge pull request #542 from jborgers/master-prerelease-4.1.0
jborgers Jul 18, 2025
df0f4d7
build: trigger release build on 'published' instead of 'created', do …
stokpop Jul 18, 2025
6cfa4b0
Merge pull request #530 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Jul 18, 2025
9b6162b
build(deps): bump org.sonarsource.api.plugin:sonar-plugin-api
dependabot[bot] Jul 18, 2025
4f11d24
Merge pull request #519 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Jul 18, 2025
4b829de
build: set next version to 4.2.0-SNAPSHOT
stokpop Jul 18, 2025
10e60aa
updated RELEASE.md for future releases
stokpop Jul 18, 2025
6729152
comment-out typo
stokpop Jul 18, 2025
2403352
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 18, 2025
dd17cdd
Merge branch 'master-issue-529-rule-properties' into issue-529-rule-p…
stokpop Jul 18, 2025
47910e9
Merge branch 'master' into master-activate-kotlin-sensor
stokpop Jul 20, 2025
89bc167
remove kotlin parsing from java executor
stokpop Jul 20, 2025
30f922e
build(deps): bump commons-io:commons-io from 2.19.0 to 2.20.0
dependabot[bot] Jul 21, 2025
ab803d3
Merge pull request #547 from jborgers/dependabot/maven/commons-io-com…
stokpop Jul 21, 2025
b686ddf
build(deps-dev): bump org.junit.jupiter:junit-jupiter
dependabot[bot] Jul 22, 2025
eefb54c
build(deps): bump org.sonarsource.java:java-frontend
dependabot[bot] Jul 22, 2025
3031864
Merge pull request #549 from jborgers/dependabot/maven/org.junit.jupi…
stokpop Jul 22, 2025
1fda69b
Merge pull request #550 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Jul 22, 2025
5132be5
Merge pull request #538 from jborgers/issue-529-rule-properties-plus-…
jborgers Jul 23, 2025
ba16c3b
Merge branch 'master' into master-issue-529-rule-properties
stokpop Jul 23, 2025
31b0e47
build(deps): bump pmd.version from 7.15.0 to 7.16.0
dependabot[bot] Jul 28, 2025
9cdfc2f
build(deps): bump org.codehaus.mojo:flatten-maven-plugin
dependabot[bot] Jul 29, 2025
9a2d965
build(deps-dev): bump org.sonarsource.sonarqube:sonar-plugin-api-impl
dependabot[bot] Aug 7, 2025
ec5ced9
build(deps-dev): bump org.assertj:assertj-core from 3.27.3 to 3.27.4
dependabot[bot] Aug 8, 2025
2886593
README.md: maven badge url, added sonatype central - note: maven cent…
stokpop Aug 15, 2025
251523b
Merge branch 'master' into master-issue-529-rule-properties
stokpop Aug 15, 2025
8b3f7ed
introduced PossibleZipBombException (extends IOException), will now f…
stokpop Aug 15, 2025
cc37423
validate instantiability of rule classes: skip and report errors for …
stokpop Aug 15, 2025
9f6cc98
Rules implement net.sourceforge.pmd.properties.PropertySource (via Ab…
stokpop Aug 15, 2025
ef279f9
Log error for exceptions getting default values. Use List.copyOf()
stokpop Aug 15, 2025
cd9d557
build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Aug 18, 2025
e9a6e93
Merge pull request #552 from jborgers/dependabot/maven/org.codehaus.m…
stokpop Aug 19, 2025
6395d52
Merge pull request #555 from jborgers/dependabot/maven/org.assertj-as…
stokpop Aug 19, 2025
dd141e7
Merge pull request #556 from jborgers/dependabot/maven/org.apache.mav…
stokpop Aug 19, 2025
f59ba7d
build(deps-dev): bump org.mockito:mockito-core from 5.18.0 to 5.19.0
dependabot[bot] Aug 19, 2025
5d154ae
Merge pull request #557 from jborgers/dependabot/maven/org.mockito-mo…
stokpop Aug 19, 2025
a52d6c2
Merge pull request #554 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Aug 19, 2025
cb97d9b
Merge branch 'master' into master-issue-529-rule-properties
stokpop Aug 19, 2025
14ce30c
Add test jars and unit tests for JavaRulePropertyExtractor
stokpop Aug 19, 2025
a7de928
Fix calls from groovy to JavaRulePropertyExtractor
stokpop Aug 20, 2025
b4ebec3
Define the target pmd version in one place - in the pom.
stokpop Aug 20, 2025
512c6ca
Make sure the sonar-pmd-lib is also built before generating the rules…
stokpop Aug 20, 2025
103fc82
Add violationSuppressRegex and violationSuppressXPath params to all r…
stokpop Aug 29, 2025
8e98543
remove violationSuppressXPath params for all rules, it seems too comp…
stokpop Aug 29, 2025
8511eb3
only add violationSuppressRegex params for rules with variable messag…
stokpop Aug 29, 2025
716daac
improve param type mapping for rules.xml
stokpop Aug 29, 2025
a4689ca
build(deps): bump org.sonarsource.scanner.maven:sonar-maven-plugin
dependabot[bot] Sep 1, 2025
756263e
build(deps-dev): bump org.sonarsource.sonarqube:sonar-plugin-api-impl
dependabot[bot] Sep 3, 2025
c87f48a
build(deps): bump org.jetbrains:annotations from 26.0.2 to 26.0.2-1
dependabot[bot] Sep 3, 2025
e43cd21
intermediate step to cleaned up rule params
stokpop Sep 1, 2025
b7cd860
extract severity mapper
stokpop Sep 2, 2025
dcc394d
extract more reusable code from groovy to java lib
stokpop Sep 2, 2025
82fc21f
refactor generator groovy script into smaller methods
stokpop Sep 3, 2025
e99a919
fix well known Java types in names
stokpop Sep 3, 2025
0a4d6b5
refactor vulnerable regex use
stokpop Sep 3, 2025
7998784
remove unused code
stokpop Sep 3, 2025
69296d6
updated warning for violationSuppressRegex
stokpop Sep 3, 2025
c98092d
fixed text based on review findings
stokpop Sep 3, 2025
225b663
make useful checks in unit test
stokpop Sep 3, 2025
19cb3b7
add javadoc convertKnownTypes
stokpop Sep 3, 2025
9dcb0d4
Merge pull request #537 from jborgers/master-issue-529-rule-properties
stokpop Sep 3, 2025
c8809ca
Merge branch 'master' into master-activate-kotlin-sensor
stokpop Sep 3, 2025
a9af048
Merge pull request #558 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Sep 3, 2025
0cca860
Merge pull request #559 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Sep 3, 2025
7679e50
Merge branch 'master' into master-activate-kotlin-sensor
stokpop Sep 3, 2025
c6af4be
Merge pull request #545 from jborgers/master-activate-kotlin-sensor
jborgers Sep 3, 2025
d826fe3
Merge pull request #560 from jborgers/dependabot/maven/org.jetbrains-…
stokpop Sep 3, 2025
289a187
Merge pull request #551 from jborgers/dependabot/maven/pmd.version-7.…
stokpop Sep 3, 2025
cdc3c7a
increase allowed jar file size
stokpop Sep 3, 2025
eaba62f
fix unit test that uses PMD 7.16.0 jar file
stokpop Sep 3, 2025
46722bd
build(deps): bump org.apache.maven.plugins:maven-surefire-plugin
dependabot[bot] Sep 15, 2025
bcaac32
build(deps): bump com.google.guava:guava from 33.4.8-jre to 33.5.0-jre
dependabot[bot] Sep 18, 2025
17c5756
build(deps): bump org.apache.maven.plugins:maven-compiler-plugin
dependabot[bot] Sep 22, 2025
beaca64
build(deps-dev): bump org.mockito:mockito-core from 5.19.0 to 5.20.0
dependabot[bot] Sep 22, 2025
83be911
build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Sep 22, 2025
a4a28c0
fix all integration tests, added kotlin tests, added required languag…
stokpop Sep 25, 2025
d694d06
remove unneeded kotlin languages classes (already specified that sona…
stokpop Sep 25, 2025
30d6e04
cleanup java integration tests
stokpop Sep 25, 2025
d9c66e4
cleanup constants
stokpop Sep 25, 2025
4a97caf
Merge pull request #566 from jborgers/dependabot/maven/org.apache.mav…
stokpop Sep 25, 2025
bc32def
Merge pull request #571 from jborgers/dependabot/maven/com.google.gua…
stokpop Sep 25, 2025
edc82b7
build(deps): bump org.apache.maven.plugins:maven-failsafe-plugin
dependabot[bot] Sep 25, 2025
c2b4449
Merge pull request #567 from jborgers/dependabot/maven/org.apache.mav…
stokpop Sep 25, 2025
ff2d826
Merge pull request #573 from jborgers/dependabot/maven/org.apache.mav…
stokpop Sep 25, 2025
d8c3dbe
Merge pull request #574 from jborgers/dependabot/maven/org.mockito-mo…
stokpop Sep 25, 2025
baeb7ab
Merge pull request #575 from jborgers/dependabot/maven/org.apache.mav…
stokpop Sep 25, 2025
2b315e3
build(deps-dev): bump org.assertj:assertj-core from 3.27.4 to 3.27.6
dependabot[bot] Sep 25, 2025
d734cab
Merge pull request #577 from jborgers/dependabot/maven/org.assertj-as…
stokpop Sep 25, 2025
072f530
Merge branch 'master' into master-activate-kotlin-sensor
stokpop Sep 25, 2025
11a4ea7
cleanup sonar cloud issues
stokpop Sep 25, 2025
c106af6
more intelligent kotlin test
stokpop Sep 25, 2025
3b9c365
more intelligent kotlin test
stokpop Sep 25, 2025
cf562d1
Merge remote-tracking branch 'origin/master-activate-kotlin-sensor' i…
stokpop Sep 25, 2025
0b06b11
build(deps): bump org.codehaus.mojo:flatten-maven-plugin
dependabot[bot] Sep 26, 2025
c696a29
build(deps): bump org.apache.commons:commons-lang3 from 3.18.0 to 3.19.0
dependabot[bot] Sep 26, 2025
b550aa2
build(deps): bump org.sonatype.central:central-publishing-maven-plugin
dependabot[bot] Sep 26, 2025
155ce00
fix backticks replacements
stokpop Sep 26, 2025
a4d16cb
simplification of dealing with list in DataClass rule
stokpop Sep 26, 2025
773a18c
simplification of pre/code block handling
stokpop Sep 26, 2025
de54dba
fix code tag with attributes (like class="language-java)
stokpop Sep 26, 2025
f09a971
quite logging by creating debug logs in groovy
stokpop Sep 26, 2025
36d589c
better wording
stokpop Sep 26, 2025
1572901
added lowest and highest SonarQube versions integration sanity checks
stokpop Sep 26, 2025
77bfcfe
upped sonar-plugin-api version, works in 9.9 and 2025.6 IT
stokpop Sep 26, 2025
197208a
Merge pull request #579 from jborgers/master-activate-kotlin-sensor
jborgers Sep 26, 2025
d89808a
Merge branch 'master' into master-issue-564-html-doc-glitch
stokpop Sep 26, 2025
497484d
fix lists and headers that got separated, e.g. for DataClass and others
stokpop Sep 26, 2025
861b864
fix rexeg ddos issue
stokpop Sep 26, 2025
7889533
fix rexeg ddos issue - attempt 2
stokpop Sep 26, 2025
037630b
fix rexeg ddos issue - attempt 3
stokpop Sep 26, 2025
0607a84
update for PMD 7.17.0
stokpop Sep 26, 2025
bba5d37
update for PMD 7.17.0 - add release notes for 4.2.0
stokpop Sep 26, 2025
bfa1480
Merge pull request #584 from jborgers/dependabot/maven/org.sonatype.c…
stokpop Sep 26, 2025
8396df9
Merge pull request #583 from jborgers/dependabot/maven/org.apache.com…
stokpop Sep 26, 2025
e07781b
Merge pull request #582 from jborgers/dependabot/maven/org.codehaus.m…
stokpop Sep 26, 2025
0c64fb5
Merge branch 'master' into master-issue-581-pmd-7-17-0
stokpop Sep 26, 2025
7896d87
fix unit test dep on PMD 7.16.0
stokpop Sep 26, 2025
141156f
Merge branch 'master' into master-issue-564-html-doc-glitch
stokpop Sep 26, 2025
f28fcc1
fix unit test dep on PMD 7.16.0
stokpop Sep 26, 2025
fa90da2
fix unit test
stokpop Sep 26, 2025
3123d98
Merge pull request #585 from jborgers/master-issue-564-html-doc-glitch
jborgers Sep 26, 2025
3ab7020
Merge branch 'master' into master-issue-581-pmd-7-17-0
stokpop Sep 26, 2025
c68e047
remove old renamed rules
stokpop Sep 26, 2025
0ef554a
prepare for Java 25
stokpop Sep 26, 2025
d91fc23
new severity mapping, no more INFO (but MINOR) and PMD category codes…
stokpop Sep 27, 2025
0358d40
build(deps-dev): bump org.sonarsource.sonarqube:sonar-plugin-api-impl
dependabot[bot] Sep 29, 2025
61801e5
use 2025.09 as highest supported SonarQube version, updated release n…
stokpop Sep 29, 2025
3c7e641
set java 21 as default java version
stokpop Sep 29, 2025
c561d45
Merge pull request #589 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Sep 29, 2025
3e06942
add aliases of HIGH, MEDIUM, LOW to javadoc
stokpop Sep 29, 2025
d7f4655
Merge pull request #588 from jborgers/master-issue-563-fix-code-style…
stokpop Sep 29, 2025
25d190a
Merge branch 'master' into master-issue-581-pmd-7-17-0
stokpop Sep 29, 2025
bf09f6d
generated with the new serverity mapping for codestyle category
stokpop Sep 29, 2025
49fc0c7
Merge pull request #586 from jborgers/master-issue-581-pmd-7-17-0
jborgers Sep 29, 2025
fcab920
Merge branch 'master' into master-issue-580-java-25
stokpop Sep 29, 2025
14d750e
default is also Java 25
stokpop Sep 29, 2025
1caa182
Merge pull request #587 from jborgers/master-issue-580-java-25
jborgers Sep 29, 2025
2bd36da
Fix Analysis scope #576
jborgers Sep 29, 2025
55cd03d
Fix review comments
jborgers Sep 30, 2025
bd78180
Simplify regex
jborgers Sep 30, 2025
6547d29
build(deps-dev): bump org.junit.jupiter:junit-jupiter
dependabot[bot] Oct 1, 2025
4a0be6c
processed review remark
jborgers Oct 1, 2025
6977643
Merge pull request #591 from jborgers/dependabot/maven/org.junit.jupi…
stokpop Oct 1, 2025
d475404
processed review remark, just comment because tests fail. For follow-…
jborgers Oct 1, 2025
ab3776b
Merge pull request #590 from jborgers/issue-576
jborgers Oct 1, 2025
090253b
fix IT test, use JAVA_25 and JAVA_25_PREVIEW
stokpop Oct 1, 2025
8a14a1d
build(deps): bump org.sonarsource.java:java-frontend
dependabot[bot] Oct 2, 2025
127f30f
filter non-sonar tag 'main-sources' fix unit test
stokpop Oct 2, 2025
8f56580
fix PR review comments
stokpop Oct 2, 2025
a0f4118
Merge pull request #595 from jborgers/master-issue-593-filter-non-son…
jborgers Oct 2, 2025
7334a45
build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin
dependabot[bot] Oct 3, 2025
d9bcf2f
Issue #597
jborgers Oct 3, 2025
a0977c8
added integration test for rule with scope main and test sources
stokpop Oct 3, 2025
795aa1b
Merge pull request #598 from jborgers/issue-597
jborgers Oct 3, 2025
5e5da32
Merge branch 'refs/heads/master' into master-issue-592-test-main-inte…
stokpop Oct 4, 2025
7a7f134
fix the integration test for main vs test sources, not final solution…
stokpop Oct 4, 2025
8b1a376
simplify PmdExecutor unit tests
stokpop Oct 4, 2025
cc60d6a
add Java 25 to PmdTemplate
stokpop Oct 4, 2025
fc164f4
determine analysis scope based on the rule xml files
stokpop Oct 4, 2025
a05d2ab
rename junit project and tests
stokpop Oct 4, 2025
c6e7932
added analysis scope and tags explanation in README.md
stokpop Oct 4, 2025
c5c2ca3
load rulesets from child plugins dynamically based on scope-index.txt…
stokpop Oct 4, 2025
5c41553
added explicit jpinpoint-rules.xml to work with sonar-pmd-jpinpoint c…
stokpop Oct 4, 2025
f056421
fix issue with enum in ModifierOrder that uses label() as display values
stokpop Oct 4, 2025
708cf1e
add integration test with all rules - added script to generate all ru…
stokpop Oct 4, 2025
a45187f
added some unit tests for the sonar rules parsing
stokpop Oct 4, 2025
c68bcc7
rename to sonar-pmd-rules-paths.txt
stokpop Oct 4, 2025
83e3d9b
code cleanup
stokpop Oct 4, 2025
775bf66
less info logging
stokpop Oct 4, 2025
c82f110
build: add option to run manual integration tests, upped deps, enable…
stokpop Oct 5, 2025
aca12f5
build: add option to run manual integration tests, upped deps, enable…
stokpop Oct 5, 2025
d6b7ff0
build: consistent checkboxes
stokpop Oct 5, 2025
8a92099
Merge branch 'master' into master-issue-592-test-main-integration-test
stokpop Oct 5, 2025
8d939be
try-out: use introspection to get more error logging for parsing inva…
stokpop Oct 5, 2025
7487bfb
add unit test to check extra parsing error info
stokpop Oct 5, 2025
66e89ac
fallback to parsing without extra logging if reflection call fails
stokpop Oct 5, 2025
5fafe45
bit of method refactoring
stokpop Oct 5, 2025
1bcb649
log all pmd xml parsing errors on debug, except error (e.g. avoid dep…
stokpop Oct 5, 2025
d563185
Merge pull request #596 from jborgers/dependabot/maven/org.apache.mav…
stokpop Oct 5, 2025
cf17022
build(deps-dev): bump org.sonarsource.sonarqube:sonar-plugin-api-impl
dependabot[bot] Oct 6, 2025
b383704
Merge branch 'master' into master-issue-592-test-main-integration-test
stokpop Oct 7, 2025
68a2610
fix PR review comments
stokpop Oct 7, 2025
f654641
fix enum workaround code, added explicit enum display mappers for Add…
stokpop Oct 8, 2025
703a982
use imports instead of fully qualified classnames
stokpop Oct 8, 2025
75e9343
use imports instead of fully qualified classnames
stokpop Oct 8, 2025
9cf791e
Merge remote-tracking branch 'origin/master-issue-592-test-main-integ…
stokpop Oct 8, 2025
bc30962
use imports instead of fully qualified classnames
stokpop Oct 8, 2025
2397557
Merge pull request #599 from jborgers/master-issue-592-test-main-inte…
stokpop Oct 9, 2025
2300a83
no need to use reflection to enable withReporter method in pmd
stokpop Oct 9, 2025
3831a88
Merge pull request #601 from jborgers/master-issue-592-test-main-inte…
jborgers Oct 10, 2025
75b1665
build(deps): bump org.jacoco:jacoco-maven-plugin from 0.8.13 to 0.8.14
dependabot[bot] Oct 13, 2025
d4046fd
add 4.2.0 release to CHANGELOG.md
stokpop Oct 13, 2025
ebb93f8
Merge pull request #594 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Oct 13, 2025
c136c82
Merge pull request #600 from jborgers/dependabot/maven/org.sonarsourc…
stokpop Oct 13, 2025
bc7ef09
Merge pull request #602 from jborgers/dependabot/maven/org.jacoco-jac…
stokpop Oct 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: org.sonarsource.parent:parent
versions:
- "55"
- 57.0.19
- dependency-name: net.sourceforge.pmd:pmd-java
versions:
- 6.32.0
- 6.33.0
- dependency-name: org.sonarsource.java:java-frontend
versions:
- 6.11.0.24617
- 6.14.0.25463
- dependency-name: org.sonarsource.orchestrator:sonar-orchestrator
versions:
- 3.35.0.2707
- dependency-name: org.sonarsource.sonarqube:sonar-plugin-api
versions:
- 8.6.1.40680
112 changes: 112 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Build and test

on:
push:
paths-ignore:
- '.github/**'
- '**/*.md'
tags-ignore:
- '**'
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
skipTests:
description: "Skip unit tests?"
required: true
default: false
type: boolean
deploySnapshot:
description: "Deploy snapshot to Maven Central?"
required: true
default: false
type: boolean
runIntegrationTests:
description: "Run integration tests?"
required: true
default: false
type: boolean

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
# Respect manual input for skipping unit tests (no effect for push/PR where inputs are empty)
SKIP_TESTS: ${{ github.event.inputs.skipTests }}
steps:
- uses: actions/checkout@v5

- name: Set Release version env variable
run: |
echo "TAG_NAME=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV

- name: Set branch name env variable
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
BRANCH_NAME="${{ github.head_ref }}"
else
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
fi

if [ "$BRANCH_NAME" = "master" ]; then
echo "ARTIFACT_SUFFIX=" >> $GITHUB_ENV
else
# Sanitize branch name by replacing invalid characters with dashes
SANITIZED_BRANCH=$(echo "$BRANCH_NAME" | sed 's/[\/\\:*?"<>|]/-/g')
echo "ARTIFACT_SUFFIX=-$SANITIZED_BRANCH" >> $GITHUB_ENV
fi

# only build SNAPSHOTS, use release for tagged releases
- name: Check if tag contains SNAPSHOT
if: contains(env.TAG_NAME, 'SNAPSHOT') != true
run: |
echo "Tag '$TAG_NAME' does not contain 'SNAPSHOT', failing build."
exit 1

- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}

- name: Build package with maven
run: |
./mvnw --batch-mode $(if [ "$SKIP_TESTS" = "true" ]; then echo "-DskipTests"; fi) clean package

- name: Run integration tests (manual trigger only)
if: github.event_name == 'workflow_dispatch' && github.event.inputs.runIntegrationTests == 'true'
run: |
./mvnw --batch-mode -pl integration-test -am clean verify

- name: Deploy SNAPSHOT to maven central
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.deploySnapshot == 'true')
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSWORD }}
run: |
./mvnw --batch-mode $(if [ "$SKIP_TESTS" = "true" ]; then echo "-DskipTests"; fi) clean deploy

- name: Upload sonar-pmd-plugin jar
uses: actions/upload-artifact@v4
with:
name: sonar-pmd-plugin-${{ env.TAG_NAME }}${{ env.ARTIFACT_SUFFIX }}
path: sonar-pmd-plugin/target/sonar-pmd-plugin-*.jar

- name: Upload sonar-pmd-lib jar
uses: actions/upload-artifact@v4
with:
name: sonar-pmd-lib-${{ env.TAG_NAME }}${{ env.ARTIFACT_SUFFIX }}
path: sonar-pmd-lib/target/sonar-pmd-lib-*.jar
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release to Maven Central
run-name: Build ${{ github.ref_name }} by @${{ github.actor }}

on:
release:
types: [ published ]
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v5

- name: Set Release version env variable
run: |
echo "TAG_NAME=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

# if no tag exists, this is expected to fail
- name: Switch to git tag for release
run: |
git fetch --all --tags -f
git checkout tags/${{ env.TAG_NAME }} -b ${{ env.TAG_NAME }}-tmp-branch

- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}

- name: Deploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSWORD }}
run: |
./mvnw --batch-mode -Drevision=${{ env.TAG_NAME }} -P release clean deploy

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ Thumbs.db
# Folder config file
Desktop.ini
.java-version

.flattened-pom.xml
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Drevision=4.2.0-SNAPSHOT
19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

Loading