Skip to content

Commit 061b193

Browse files
authored
Change the Ruleset to respect inheritDoc
1 parent fa3c0b7 commit 061b193

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

StellarWP/ruleset.xml

Lines changed: 8 additions & 1 deletion
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 checkign 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

@@ -83,7 +90,7 @@
8390
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
8491
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
8592
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>
86-
93+
8794
<!-- Don't check test-generated files. -->
8895
<exclude-pattern>*/tests/_support/_generated/*</exclude-pattern>
8996

0 commit comments

Comments
 (0)