Many of the other PHPCS extensions in the marketplace support automatically discovering the phpcs executable.
Proposed Solution
We should add a new phpCodeSniffer.executableAuto option of type "boolean". This option can then be used in the Configuration class to automatically discover the vendor/bin/phpcs file in the file's directory. We should traverse from the file's directory to its working directory searching and use the first file that we discover.
Problem Description
Many of the other PHPCS extensions in the marketplace support automatically discovering the
phpcs
executable.Proposed Solution
We should add a new
phpCodeSniffer.executableAuto
option of type"boolean"
. This option can then be used in theConfiguration
class to automatically discover thevendor/bin/phpcs
file in the file's directory. We should traverse from the file's directory to its working directory searching and use the first file that we discover.