| I've already investigated the source code and as Ulli Hafner said, changing the mapping at the class CheckStyleParser would solve the problem. But are these changes not a mismatch with the specification of the plugin? According to the plugin documentation the severity is defined as following:
- Error: Indicates an error that typically fails the build
- Warning (High, Normal, Low): Indicates a warning of the given priority. Mapping to the priorities is up to the individual parsers.
(cf.: https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md) None of the errors in the file phpcs.log.xml leads to a failed build. Probably no error provided by a plugin for static code analysis will fail the build, so maybe the severity warning-high is more suitable than an error. |