How to call a custom ruleset.xml for php code sniffer
You need at least version 1.3.0a1 of Code Sniffer to use annotated rulesets:
- All CodingStandard.php files have been replaced by ruleset.xml files
Custom standards will need to be converted over to this new format to continue working- You can specify a path to your own custom ruleset.xml file by using the
--standard
command line arg e.g.,phpcs --standard=/path/to/my/ruleset.xml
Before that, you had to copy your ruleset, as explained in this tutorial.