Php_codesniffer: Add option to force all errors to display, even within @codingStandardsIgnore sections

Created on 8 Dec 2015  路  1Comment  路  Source: squizlabs/PHP_CodeSniffer

If you're running CodeSniffer against code written by other people, you might want to get a full report of potential issues without giving them the ability to suppress any errors by using // @codingStandardsIgnore comments to skip files, or lines.

Reading through the docs there doesn't seem to be an override setting that allow this level of reporting.

Enhancement

Most helpful comment

I've added an --ignore-annotations CLI argument to ignore all @codingStandard... code comments. You can also set this value in a ruleset.xml file if you don't want to allow these annotations in your coding standard.

>All comments

I've added an --ignore-annotations CLI argument to ignore all @codingStandard... code comments. You can also set this value in a ruleset.xml file if you don't want to allow these annotations in your coding standard.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jigius picture jigius  路  3Comments

amcsi picture amcsi  路  3Comments

petegore picture petegore  路  3Comments

justintadlock picture justintadlock  路  3Comments

lquessenberry picture lquessenberry  路  3Comments