Skip to content

Add PMD Gradle plugin for static analysis - #3

Merged
liv2411 merged 1 commit into
mainfrom
jacob/pmd
Jan 31, 2026
Merged

Add PMD Gradle plugin for static analysis#3
liv2411 merged 1 commit into
mainfrom
jacob/pmd

Conversation

@jakejack13

Copy link
Copy Markdown
Contributor

This PR adds the PMD Gradle plugin for static analysis.

From the PMD homepage:

"PMD is an extensible multilanguage static code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It's mainly concerned with Java and Apex, but supports 16 other languages. It comes with 400+ built-in rules. It can be extended with custom rules."

The rules are specified in the femaidens2265-pmd-ruleset.xml file. Rule definitions and more info on PMD can be found here: https://docs.pmd-code.org/latest/pmd_rules_java.html

Since this will run every time ./gradlew build is run, it will automatically be picked up by CI and flag down every build.

@jakejack13
jakejack13 marked this pull request as ready for review January 31, 2026 13:31
@liv2411
liv2411 merged commit 3f906a4 into main Jan 31, 2026
1 check passed
@jakejack13
jakejack13 deleted the jacob/pmd branch January 31, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants