Threshold for build fail

Issue #5 resolved
Jakob Møbjerg Nielsen created an issue

Just like the PMD plugin proposal (issue #8), this plugin should have configurable thresholds for Total, Error, Warning, Info, and Ignore.

Comments (5)

  1. Jakob Møbjerg Nielsen reporter

    I would love to start using the checkstyle and pmd plugins, but we simply have too many violations atm. I would need to start out with a high threshold, and gradually lower it over time.

  2. Markus Schulte repo owner

    If you have too many violations atm, I would suggest reducing reports generated by phpcs.

    Maybe you want to try showing only errors

    phpcs -n ...
    

    Or show only violations in the most important package

    phpcs ... some/package
    

    In my opinion, reducing the reports to what gives you useful information is more useful than just cutting off the violations at some point.

    https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage

  3. Log in to comment