Confusion about PSR12 ruleset in this repo: Are PSR12 sniffs actually included? #3865
-
Take a look at, e.g.: https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR12/ruleset.xml#L256
This kind of construct is encountered in other places with other rules, too, but the difference to for example https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR12/ruleset.xml#L250 is the slightly different wording and that the mentioned sniff is actually included above:
I do not see the inclusion of the psr12 sniffs. And I also have not found any kind of reference to those rules in a different way. Is it just by convention that sniffs that lay bellow a ruleset.xml-file in a subdir called Sniffs are included, or what magic includes them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, that's by design. |
Beta Was this translation helpful? Give feedback.
Yes, that's by design.
A
ruleset.xml
file for a standard will automatically include all sniffs defined in that standard.