-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPCS exclusion list #2242
Comments
An option in the ruleset XML format to import a list of files/directories to exclude, which would allow you to specify your |
@gsherwood, the option sounds a good idea. Do you have an example about how to import a list of file/directories to exclude in the ruleset XML format? |
Nothing currently exists in PHPCS to do this. |
We would need something like this exactly in Drupal also. Did some digging and maybe if the excluded list of directories could be also specified in the https://github.com/Dealerdirect/phpcodesniffer-composer-installer plugin uses this file to auto-register available PHPCS configurations. The suggested composer plugin could also do the same with excluded paths. |
…it doesn't support using `.gitignore`: squizlabs/PHP_CodeSniffer#2242 @ .github/workflows/be_base.yml
…it doesn't support using `.gitignore`: squizlabs/PHP_CodeSniffer#2242 @ .github/workflows/be_base.yml * fix all violation of PHPStorm inspection `Unnecessary fully qualified name` @ be
… and manually ignore `vendor` & `bootstrap/cache` when running `phpc{s,bf}` as it doesn't support `.gitignore`: squizlabs/PHP_CodeSniffer#2242 * add one space before self-closing tags @ phpunit.xml & psalm.xml * fix all violation of PHPStorm inspection `Unnecessary fully qualified name` $ ./vendor/bin/phpcbf . && ./vendor/bin/pint @ be
It might be a duplicate of #1884 - but I am looking for a way to tell my PHPCS that they can ignore exactly same what it is listed on
.gitignore
. It will save a lot of time. Also, I would like to have a file which I can tell import .gitignore, and we can also add more in the list which is not filled on .gitignore.What do you think?
The text was updated successfully, but these errors were encountered: