Skip to content

PHP_CodeSniffer HowTo ignore one or more sniffs

Sven Kiera edited this page Jul 5, 2015 · 1 revision

WikiToolsPHP_CodeSnifferHowTo ignore one or more sniffs

HowTo ignore one or more sniffs

If you want to ignore one or more sniffs and don’t want to create file error markers follow these steps:

1. To ignore a sniff you need that source id which is defined at source attribute in the debug output.

2. From the menu bar select Window -> Preferences

3. From the tree view of Preferences page select PHP Tools -> PHP CodeSniffer.

4. Enter the source id(s) in the Ignore Sniffs Field. Several sniffs are separated by a comma.

5. If you are ask do not rebuild your project.

Clone this wiki locally