git-hooks icon indicating copy to clipboard operation
git-hooks copied to clipboard

Allow files to be ignored even if they are added to files to check.

Open e42sh opened this issue 13 years ago • 0 comments

The ignore pattern is applied in the files to check loop, since it was not possible to ignore a file that was already in the files to check array.

For instance, I want all *.php files to be checked, except files with *.ini.append.php extension.

This does not work, but it should:

phpcs -s --standard PEAR ./test.ini.append.php --ignore '.(ini.append.php)$'

Here is my config

PHPCS_IGNORE=".(ini.append.php)$" PHPCS_FILE_PATTERN=".(php|phtml)$"

e42sh avatar Mar 05 '12 14:03 e42sh