Hey all, I am getting up to speed with PHPCS, I have run it on a module folder and it says
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
I may be being dim, but how do I do that?
cant see anything in the docs
you need to run the other command
how did you implement PHPCS? using composer scripts?
I have a composer script, but in this instance was just running
phpcs -s src/ tests/
I have just found this pagehttps://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically
so not only was I being dim, I was also blind!
I've seen that e.g. cms has two scripts for both... https://github.com/silverstripe/silverstripe-cms/blob/3d2d607be166172c204178c8a820e86de668b7e9/composer.json#L43-L46
Hmm, interesting. cheers @wmk