Closed (duplicate)
Project:
Drupal core
Version:
8.2.x-dev
Component:
base system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2016 at 19:05 UTC
Updated:
16 Apr 2016 at 14:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anoopjohn commentedAttaching the patch with the less simpler fixes to the issue
Comment #3
anoopjohn commentedComment #4
anoopjohn commentedI see that there are two ways of preventing coder from not considering a failure in a sub-sniff as an error
One is to add the sniff and set the severity of the sub-sniff
The second is to add the sniff and exclude sub sniffs
I like the second one as it seems to be self contained
For the Drupal.Commenting.FunctionComment rule, it seems to be enough to exclude only a subset of rules to prevent any errors
Should we exclude all rules in phpcs.xml or just exclude the ones that actually need fixes?
Comment #5
alexpottNice find on the phpcs.xml.dist exclude thing - looks great. Let's merge this with #2707641: Ensure core compliance to Drupal.Commenting.FunctionComment.ParamCommentIndentation (part 2)