-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APPLY_FIXES and for PHP_PHPCSFIXER linter #3963
Comments
@llaville any idea ? :) |
yes I've already a solution. |
Before forgetting, can you write what the fix consists about (in a sentence) |
of course, but as I am AFK (just on phone now), I'll give you an answer in 90 minutes. |
Here is my analysis of the situation : I think origin of issue is located there https://github.com/oxsecurity/megalinter/blob/v8.0.0/megalinter/Linter.py#L1258-L1267 In case of PHP_CS_FIXER linter it's the same executable (without Origin of this implementation came from PHPCS where there are two executables : one to check violation (phpcs) and another one to apply fixes (phpcbf) Hope my quick explains are enough. Sorry i'm a bit tired tonight ;-) |
I've a good new : I've prepared a fix for MegaLinter v8.0 and it seems that all run fines at least with PHP flavor (and PHP-CS-Fixer) I'll keep you aware. |
For MegaLinter Team members but also all users of PHP-CS-Linter, if you need help to configure this linter (for risky rules), please read this #3973 |
For MegaLinter Team, the PR 3974 is WIP because I've not apply all requires changes (CHANGELOG, build.sh contents) and more than that do more regression tests .... Next to come on 24/48 hours |
Thanks to CI that demonstrate the power of non-regression tests. Even if it's ok for PHP, it seems that my fix has introduced errors with others linters. I'll have a check on these later now ... no more free time |
Describe the bug
Violations found by PHP CS Fixer are not fixed.
To Reproduce
Steps to reproduce the behavior:
.mega-linter.yml
with the following contentnpx mega-linter-runner --release v8.0.0
(I also triednpx mega-linter-runner --release v8.0.0 --fix
)Expected behavior
PHP CS Fixer is called with
fix
(php php-cs-fixer.phar fix ...
) and fixes the violationsThe text was updated successfully, but these errors were encountered: