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.
Description
When
phpcs.autoConfigSearch
is enabled, we should honor the workspace/folder path so that phpcs does not look forphpcs.xml
,phpcs.xml.dist
,phpcs.ruleset.xml
orruleset.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.