-
Hello there ! Marvellous work btw :) possibility to have all in one place really is convenient :D |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello @rzewus The reason is very simple : MegaLinter v5 or v6 (don't know which version you are running) embed only PHPCS binary and not PHPCBF binary. It may be quite simple to add it into MegaLinter, because Differences between both of binary are explained (for those who don't know yet) on official PHPCS Wiki at https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically. In future report/question, please provide versions you're running and platform. It may help those who can help you ! |
Beta Was this translation helpful? Give feedback.
-
I am using latest version :) |
Beta Was this translation helpful? Give feedback.
-
As PHPCBF is not part of standard MegaLinter distribution, I suggest to add it via Plugins feature (read https://oxsecurity.github.io/megalinter/latest/plugins/) |
Beta Was this translation helpful? Give feedback.
Hello @rzewus
The reason is very simple : MegaLinter v5 or v6 (don't know which version you are running) embed only PHPCS binary and not PHPCBF binary.
It may be quite simple to add it into MegaLinter, because
Phive
(installation method for PHPCS; see https://github.com/oxsecurity/megalinter/blob/v6.11.1/megalinter/descriptors/php.megalinter-descriptor.yml#L61-L64) also provide a way to install PHPCBF (known in repositories list; see https://github.com/phar-io/phar.io/blob/master/data/repositories.xml#L66-L68Differences between both of binary are explained (for those who don't know yet) on official PHPCS Wiki at https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically.