Skip to content

Commit bdf05c1

Browse files
authored
Merge pull request #22 from stellarwp/fix/inheritDoc-should-be-respected
Change the Ruleset to respect inheritDoc
2 parents fa3c0b7 + cc43991 commit bdf05c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

StellarWP/ruleset.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@
5656
<!-- Checks for usage of "$this" in static methods, which will cause runtime errors. -->
5757
<rule ref="Squiz.Scope.StaticThisUsage"/>
5858

59+
<!-- Makes sure to skip checking for docblock when inheritDoc is used. -->
60+
<rule ref="Squiz.Commenting.FunctionComment">
61+
<properties>
62+
<property name="skipIfInheritdoc" value="true"/>
63+
</properties>
64+
</rule>
65+
5966
<!-- We always want short array syntax only. -->
6067
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
6168

0 commit comments

Comments
 (0)