A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/4454 below:

'-min'" but is referenced in documentation · Issue #4454 · pmd/pmd · GitHub

Affects PMD Version:

7.0.0-rc1

Description:

The -min parameter is no longer allowed. I cannot use the priority (1-5) for rules to exclude some from being checked.

--minimum priority is a Low/Medium/High value, so that can not be the solution:

Rule priority threshold; rules with lower priority than configured here won't be used. Valid values (case insensitive): High, Medium High, Medium, Medium Low, Low

Substituting --minimum-priority gives a long error message basically saying that it is not a number, but a string.

-min is referenced in documentation

Run ~/pmd/bin/pmd check -d force-app -d sample-handler --rulesets pmd/ruleset.xml --format csv --no-cache -min 2 --verbose -r pmd/pmd.csv
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/home/runner/pmd/lib/groovy-2.[4](https://github.com/dschach/salesforce-trigger-framework/actions/runs/4622271015/jobs/8174740004#step:4:5).21.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Unknown option: '-min'
Possible solutions: --minimum-priority
Error: Process completed with exit code 2.

Code Sample demonstrating the issue:

~/pmd/bin/pmd check --dir force-app --dir sample-handler --rulesets pmd/ruleset.xml --format csv --no-cache -min 2 --verbose -r pmd/pmd.csv

Steps to reproduce:

Please provide detailed steps for how we can reproduce the bug.

Run pmd with -min parameter and

Running PMD through: GitHub Action: https://github.com/dschach/salesforce-trigger-framework/blob/main/.github/workflows/ci.yml


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4