Skip to content

Commit d30d22f

Browse files
committed
Docs: make the inclusion of the Generic sniff slightly more specific
The `Generic.Commenting` category has three sniffs: * `DocComment` * `Todo` * `Fixme` As WP allows to do's and has no opinion on `FIXME` comments, we may as well just include the one sniff we actually need.
1 parent 95b904e commit d30d22f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WordPress-Docs/ruleset.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<exclude name="Squiz.Commenting.VariableComment.VarOrder"/>
8787
</rule>
8888

89-
<rule ref="Generic.Commenting">
89+
<rule ref="Generic.Commenting.DocComment">
9090
<!-- WP has different alignment of tag values -->
9191
<exclude name="Generic.Commenting.DocComment.TagValueIndent"/>
9292
<!-- WP has a different prefered order of tags -->
@@ -103,8 +103,5 @@
103103
<exclude name="Generic.Commenting.DocComment.SpacingBeforeShort"/>
104104
<!-- Exclude to allow duplicate hooks to be documented -->
105105
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose"/>
106-
107-
<!-- WP allows @todo's in comments -->
108-
<exclude name="Generic.Commenting.Todo"/>
109106
</rule>
110107
</ruleset>

0 commit comments

Comments
 (0)