View more context

 

Mo

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

wmk

you need to run the other command PHPCBF

wmk

how did you implement PHPCS? using composer scripts?

Mo

I have a composer script, but in this instance was just running phpcs -s src/ tests/

Mo

I have just found this pagehttps://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically

Mo

so not only was I being dim, I was also blind!