ikappas / vscode-phpcs

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

Ability to select phpxs.xml path #122

Closed muuvmuuv closed 6 years ago

muuvmuuv commented 6 years ago

I have all my confs in my Dropbox folder and want your extension to pull this phpcs.xml file instead of the one inside my project. Is this possible? if not this is a feature request :)

jaredatch commented 6 years ago

Look at the package details/settings here: https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs

Specifically, check out phpcs.standard.

The setting can be set to the absolute path to a custom coding standard:

{
    "phpcs.standard": "/path/to/coding/standard"
}
or you can use the path to a custom ruleset:

{
    "phpcs.standard": "/path/to/project/phpcs.xml"
}
The setting can be set to your workspace relative path to a custom coding standard:

{
    "phpcs.standard": "./vendor/path/to/coding/standard"
}
or you can use the path to your project's custom ruleset:
muuvmuuv commented 6 years ago

Oh sorry I missed that, thanks!

Sent with GitHawk