Skip to content

Commit b7cf1ab

Browse files
committed
added rules ref WordPress with excludes.
1 parent c9dd1eb commit b7cf1ab

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

Inpsyde/ruleset.xml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?xml version="1.0"?>
22
<ruleset name="Inpsyde">
3-
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
43

5-
<!-- Set a description for this ruleset. -->
64
<description>A custom set of code standard rules to check for Inpsyde Codex.</description>
75

8-
<exclude-pattern>vendor/*</exclude-pattern>
9-
<exclude-pattern>node_modules/*</exclude-pattern>
10-
<exclude-pattern>*.min.js</exclude-pattern>
11-
12-
<!-- TRUE, FALSE, NULL are constant, we write in uppercase. -->
13-
<rule ref="Generic.PHP.UpperCaseConstant"/>
14-
15-
<!-- Allow . in hook names -->
16-
<rule ref="WordPress.NamingConventions.ValidHookName">
17-
<properties>
18-
<property name="additionalWordDelimiters" value="."/>
19-
</properties>
20-
</rule>
21-
22-
<!-- Include the WordPress ruleset, with exclusions. -->
236
<rule ref="WordPress">
7+
248
<!-- Yoda conditions are not helpful, cost only time. -->
259
<exclude name="WordPress.PHP.YodaConditions"/>
2610

0 commit comments

Comments
 (0)