Affects PMD version: 6.3.0
The -min
CLI option (rule priority threshold) takes an integer argument between 1 and 5. However, JCommander assumes it's an enum and displays the following help:
-minimumpriority, -min
Rule priority threshold; rules with lower priority than configured here
won't be used. Default is '5' which is the lowest priority.
Default: Low
Possible Values: [High, Medium High, Medium, Medium Low, Low]
Using the name of an enum constant makes the parameter parsing fail:
Should we allow mentioning the names of the constants? Or just fix the JCommander help?
For some reason, only -min 4
and -min 5
work as expected (at least on my machine). Using eg -min 3
makes PMD fail with
GRAVE: No rules found. Maybe you mispelled a rule name? (/home/clifrr/Bureau/import_sample/rset.xml)
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