diagnostic-languageserver
diagnostic-languageserver copied to clipboard
How to use phpcs.xml.dist configuration file
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
Is that rootPatterns
setting correct?
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.
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.
set "diagnostic-languageserver.trace.server": "verbose"
and checkout output channel of diagnostic-languageserver