Skip to content
This repository was archived by the owner on Mar 6, 2021. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

e42sh
Copy link

@e42sh e42sh commented Mar 5, 2012

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)$"

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant