iamcco / iamcco/diagnostic-languageserver

How to use phpcs.xml.dist configuration file

Open
#44 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
439
Forks
30
PR merge metrics
No merged PRs in 30d

Description

I've setup PHP_CodeSniffer (phpcs) using the settings outlined in the [wiki](https://github.com/iamcco/diagnostic-languageserver/wiki/Linters#php_codesniffer). I've also created a [phpcs.xml.dist](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the PHP_CodeSniffer setup in the linked wiki and the phpcs.xml.dist example, then compare them with the settings in the linked gist. Reproduce the configuration behavior and identify whether the rule exclusions are being recognized; done means the required configuration or limitation is documented for this integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.