You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as possible, try to reformat all the project specific code to upgrade the relaxed PSR-2 rules.
Now if we execute the phpsc linter we get near to 700 warnings in 60 files. And that could be errors, instead of warnings because now we have 26 PSR-2 rules relaxed to a warning level, instead of it original error level.
So, we should start fixing this errors on this order:
FIXES REQUIRED RULES
REFACTOR REQUIRED RULES
NAMING CONVENTION RULES
FORMATING IMPROVEMENTS RULES
To work rule buy rule, look in the phpcs.xml file for the rule names and run:
$ vendor/bin/phpcs --sniffs="Rule name"
Replacing "Rule name" with the rule, for example "Generic.ControlStructures.InlineControlStructure"
Note: Some rules has been ignored or maintained in a warning level for gradual migration like placing the open brace "{" in a new line. The line ending rule (requesting \n instead of \r\n) or the use of tabs, instead of spaces.
As far as possible, try to reformat all the project specific code to upgrade the relaxed PSR-2 rules.
Now if we execute the phpsc linter we get near to 700 warnings in 60 files. And that could be errors, instead of warnings because now we have 26 PSR-2 rules relaxed to a warning level, instead of it original error level.
So, we should start fixing this errors on this order:
To work rule buy rule, look in the phpcs.xml file for the rule names and run:
$ vendor/bin/phpcs --sniffs="Rule name"
Replacing "Rule name" with the rule, for example "Generic.ControlStructures.InlineControlStructure"
$ vendor/bin/phpcs --sniffs=Generic.ControlStructures.InlineControlStructure
The text was updated successfully, but these errors were encountered: