Command line usage for setting explicit value for rule property
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Is there any way to override a rule property of a ruleset from the command line? For example, if I want to set the Minimum reporting threshold for NPathComplexity, how would I pass that property from the commandline?
Let's say I want to modify the "minimum" property for ExcessiveMethodLength as well, how can the two be distinguished, since they are both named "minimum"?
Thanks!
Hi,
the command line options are documented here:
http://pmd.github.io/pmd-5.4.1/usage/running.html
Currently it is not possible to specify rule properties on the command line - probably because of the not trivial way to express cases like you mentioned ("minimum").
You'll need to create a custom ruleset file (http://pmd.github.io/pmd-5.4.1/customizing/howtomakearuleset.html) in which you can reference the rules and set the properties.
Regards,
Andreas