ikappas / vscode-phpcs

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

Automatic configuration search should honor workspace/folder path #101

Closed ikappas closed 6 years ago

ikappas commented 6 years ago

Description

When phpcs.autoConfigSearch is enabled, we should honor the workspace/folder path so that phpcs does not look for phpcs.xml, phpcs.xml.dist, phpcs.ruleset.xml or ruleset.xml beyond the open workspace or folder.

Currently, this results in unpredictable behaviour since a ruleset file my be automatically picked up outside of the currently open workspace/folder.

ikappas commented 6 years ago

This issue is fixed in vscode-phpcs 1.0.5