ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Automatic configuration search should honor ignore patterns #99

Closed ikappas closed 6 years ago

ikappas commented 6 years ago

Description

When phpcs.autoConfigSearch is enabled, we should honor phpcs.ignorePatterns so that phpcs does not look for phpcs.xml, phpcs.xml.dist, phpcs.ruleset.xml or ruleset.xml in the ignored paths.

On some cases this may result in --standard being magically switched to an invalid ruleset which will cause the plugin to raise an error (see reference)

The current workaround is to switch off phpcs.autoConfigSearch

References:

See issue #93

ikappas commented 6 years ago

This issue is fixed in vscode-phpcs 1.0.5