Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run if .phpcs.xml was found in project #53

Open
Sir-Will opened this issue May 14, 2021 · 2 comments
Open

Only run if .phpcs.xml was found in project #53

Sir-Will opened this issue May 14, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Sir-Will
Copy link

Is your feature request related to a problem? Please describe.
Opening random PHP files which are not formatted for PHP Sniffer always highlights tons of errors which makes it difficult to read.

Describe the solution you'd like
It would be great if there is an option which makes PHP Sniffer to only run if there is a .phpcs.xml file in the project because projects formatted for PHP Sniffer usually have the config file.
This way it's automatically disabled for all PHP files and only enabled for projects which use PHP Sniffer.

Describe alternatives you've considered
Disabling PHP Sniffer globally and creating a workspace for each project and turning it on for these workspaces.

@Sir-Will Sir-Will added the enhancement New feature or request label May 14, 2021
@wongjn
Copy link
Owner

wongjn commented May 14, 2021

Thank you for your feedback. Any extension can be disabled on a per-workspace basis — could this not fulfil this request or is it more nuanced than that?

@Sir-Will
Copy link
Author

Yea that's what I described as alternative though it would be more convenient to not have to create a workspace and enable the extension there.

@wongjn wongjn removed their assignment Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants