-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
This is a feature request. It is similar to #465 however I felt that it was narrow enough that it could be implemented much quicker.
I would like phpcs to pick up a phpcs.xml.dist file if present, but prefer to use the phpcs.xml file if present. This would mimic other PHP phar's that use .xml files for default configuration, like phpunit.
This would allow the phpcs.xml.dist file to be checked in your CVS, while an individual team member could create their own phpcs.xml file to override it. But they would not be required to.
Interestingly this just burned me hard, where I checked out a new project with a "phpcs.xml.dist" file but forgot to copy it to "phpcs.xml". I then ran "phpcs", and it seemed to just hang. Devoid of any parameters, it just sat there doing nothing, providing no output. I spent a good half hour trying to figure it out until I realized what the problem was.
Btw, I love the new code fixer (phpfcb), though I wish it's name wasn't so similar to the "phpcb" phar for Code Browser that is also often used along with Code Sniffer.