Open roslov opened 2 years ago
Sorry, I don't know. Codesniffer is rather arcane in that regard, and the documentation is rather hard to follow. Given that:
dealerdirect/phpcodesniffer-composer-installer
to do the heavy liftingThen I never really polished it up further than that. To date this is my only Codesniffer rule I've written, so it wasn't really worthwhile digging further to sort out something like that.
If it was being made part of a large coding standard, then it would probably be straightforward to just drop it into one of the existing folders and amend the namespace accordingly, and it'd just work.
When I run
phpcs --standard=vendor/matthewbdaly/abstract-or-final-sniff/src/AbstractOrFinalClassesOnly/ruleset.xml -p -s src/Entity/CampaignStatus.php
I receive such an error:What should I change to have the sniff name like
AbstractOrFinalClassesOnly
but notMatthewbdaly.Sniffs.AbstractOrFinal.Matthewbdaly\AbstractOrFinalClassesOnly\Sniffs\AbstractOrFinalSniff
?