Closed MeCapron closed 1 year ago
This PR adds the -s which displays the rule that triggered the error when running phpcs.
-s
As an example :
The configuration is set to true by default so that developers can more easily find the rule that blocks the validation of phpcs.
true
phpcs
As s was not clear enough, the rule was renamed to show_sniffs_error_path inside grumphp configuration.
s
show_sniffs_error_path
grumphp
The reference of the phpcs configuration can be found here : https://github.com/squizlabs/PHP_CodeSniffer/wiki/Reporting#printing-full-and-summary-reports
Looks good, thanks!
Summary
This PR adds the
-s
which displays the rule that triggered the error when running phpcs.As an example :
Configuration
The configuration is set to
true
by default so that developers can more easily find the rule that blocks the validation ofphpcs
.As
s
was not clear enough, the rule was renamed toshow_sniffs_error_path
insidegrumphp
configuration.Reference
The reference of the
phpcs
configuration can be found here : https://github.com/squizlabs/PHP_CodeSniffer/wiki/Reporting#printing-full-and-summary-reports