I have some sniffs defined in a phpcs.xml, like so:
<rule ref="PSR2">
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
</rule>
My intention is to gradually tighten up the CS rules (there are many more excludes) in a granular fashion.
However, when I try to run CBF it fails with the same sniff name:
$ ./vendor/bin/phpcbf --standard=PEAR --sniffs=Generic.Sniffs.ControlStructures.InlineControlStructure.NotAllowed path/to/code
Producing:
ERROR: The specified sniff code "Generic.Sniffs.ControlStructures.InlineControlStructure.NotAllowed" is invalid
How is it invalid if it works for phpcs? I can't seem to find a mapping or naming convention mapping in the docs.
(I've tried with "PEAR", "PSR2" and "Generic" as standards and I've also tried it just as Generic.ControlStructures.InlineControlStructure.NotAllowed)