Command line parameter to disable "failOnViolation" behavior
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Currently PMD command line has the following exit codes:
4 means, the PMD check was not successful - and hence it returns 4 instead of 0....
I guess, you would like to have an option like
doNotFailOnViolation
orignoreViolations
that would just write the report, but don't fail the build.Is this correct?
I'll add for PMD 5.4.0 a new option, that can disable this behavior:
Executing PMD as
will execute the checks and write the report but exit with status code 0 instead of 4.
Implemented for PMD 5.4.0.
Commit: https://github.com/pmd/pmd/commit/bbd0bf98fdebe52b4a4d393a07a97957f48b588f