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

How to use phpcs.xml.dist configuration file #44

Open
caschbre opened this issue Jan 22, 2021 · 4 comments
Open

How to use phpcs.xml.dist configuration file #44

caschbre opened this issue Jan 22, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@caschbre
Copy link

I've setup PHP_CodeSniffer (phpcs) using the settings outlined in the wiki. I've also created a phpcs.xml.dist configuration file, however it does not seem to be picking up the rule exclusions I have setup in the xml file.

Is there additional configuration necessary to pick up that config file?

Here are my settings...

https://gist.github.com/caschbre/22971e36fbcdc17d089fc424b491b598

@iamcco
Copy link
Owner

iamcco commented Jan 25, 2021

Is that rootPatterns setting correct?

@iamcco iamcco added the help wanted Extra attention is needed label Jan 25, 2021
@caschbre
Copy link
Author

I created the .projectroot file and put in my project root. Easier to have several different tools all target the same place. I did try using the rootPatterns from the wiki and had the same result.

@caschbre
Copy link
Author

CodeSniffer does run and does lint to the standards in the args.... but it's not using using my exclusions from the phpcs.xml.dist document.

@iamcco
Copy link
Owner

iamcco commented Jan 25, 2021

set "diagnostic-languageserver.trace.server": "verbose" and checkout output channel of diagnostic-languageserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants