Skip to content

Commit 6ac99bc

Browse files
committed
Exclude non-PHP files from the Toolset ruleset.
1 parent 2b8d22b commit 6ac99bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

standards/Toolset/ruleset.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
<rule ref="WordPress"/>
88
<rule ref="VariableAnalysis" />
99

10+
<!--
11+
Do not apply these rules on non-PHP files.
12+
Note: Twig templates are still not excluded, and they shouldn't be, because we have some plans for them.
13+
-->
14+
<exclude-pattern>*.js</exclude-pattern>
15+
<exclude-pattern>*.mo</exclude-pattern>
16+
<exclude-pattern>*.po</exclude-pattern>
17+
<exclude-pattern>*.css</exclude-pattern>
18+
<exclude-pattern>*.scss</exclude-pattern>
1019

1120
<!--
1221
TODO add a sniff for missing translators: comment in Twig templates.

0 commit comments

Comments
 (0)