Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.