Grump not fixing my issues #954
Unanswered
GeoffreyOlivier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I launch this command :
php vendor/bin/grumphp run
After I have all errors, for exemple :
`FILE: ...-content\plugins\sync-woocommerce\src\Plugin_Factory.php
FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES
1 | ERROR | [x] Header blocks must be separated by a single blank
| | line
16 | ERROR | [ ] Class name "Plugin_Factory" is not in PascalCase
| | format
19 | WARNING | [ ] Property name "$_plugin" should not be prefixed
| | with an underscore to indicate visibility
28 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1
| | found
28 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1
| | found
30 | ERROR | [x] Expected 0 spaces before closing bracket; 1 found
36 | ERROR | [x] The closing brace for the class must go on the
| | next line after the body
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
`
And I have this question on the end :
I can fix some stuff automatically, do you want me to? (yes/no) [no]:
When I write
yes
nothing is fixed.How can I fix automatically?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions