alfresco/PMD
Run PMD against changes in a pull request
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pmd-version | The version of PMD to use | no | 7.12.0 |
| pmd-sha256-digest | The expected SHA-256 digest of the PMD zip file (64 digit hexidecimal value). | no | 418dd819d38a16a49d7f345ef9a0a51e9f53e99f022d8b0722de77b7049bb8b8 |
| create-github-annotations | Whether to create inline comments on the PR using GH Advanced Security. This is free for open source projects but requires a license for private repos. | no | true |
| fail-on-new-issues | When set to true this fails the build if the PR introduces more issues than it resolves. | no | true |
| pmd-ruleset-repo | The GitHub repository containing the PMD ruleset. | no | Alfresco/pmd-ruleset |
| pmd-ruleset-ref-override | A git reference (e.g. branch name, tag name or commit id) for the ruleset project. If this is not provided then the default is the latest tag alphabetically with the name starting with the PMD version (for example this could be a tag 7.1.0_20240723 if pmd-version is set to 7.1.0) and falling back to the default commit checked out by a clone. | no | "" |
| pmd-ruleset-path | The path to the PMD ruleset file from the root of the ruleset project. Optionally other paths to local rulesets can be appended to this separated by commas. | no | pmd-ruleset.xml |
| classpath-enable | Whether to set the classpath before the scan (used by certain rules - for example MissingOverride). This assumes the project uses maven. | no | true |
| classpath-build-command | Command to build the class files so that the classpath can be used. | no | mvn -ntp test-compile |
| classpath-directory-list | A colon-separated list of directories containing class files. Using wildcards (*) or globstar (**) is also supported in order to select items at one or many levels deep. | no | **/target/classes |
Outputs
no outputs