Skip to content

Commit c59319c

Browse files
committed
- update phpcs.xml.dist to allow for action/filter names to include forward slashes without causing a linting error
1 parent d26b3ce commit c59319c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpcs.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
<exclude name="PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.objectFound"/>
8989
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"/>
9090

91+
<!-- excluded because we are using namespaced hooks, such as "wpgraphql/acf/$action_name" -->
92+
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/>
93+
9194
<!-- Should maybe Add Back Later -->
9295
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
9396
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>

0 commit comments

Comments
 (0)