Skip to content

Commit b6ba453

Browse files
authored
Merge pull request #860 from Automattic/feature/ruleset-fix-in-exclude-patterns
2 parents d01c0bc + 40b0dac commit b6ba453

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

WordPressVIPMinimum/ruleset.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</rule>
2929

3030
<rule ref="WordPressVIPMinimum.Security.Twig">
31-
<include-pattern>*.twig</include-pattern>
31+
<include-pattern>*\.twig</include-pattern>
3232
</rule>
3333

3434
<rule ref="WordPress.Security.EscapeOutput"/>
@@ -67,10 +67,10 @@
6767
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
6868
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"/>
6969
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
70-
<include-pattern>*.php</include-pattern>
71-
<include-pattern>*.inc</include-pattern>
72-
<exclude-pattern>*.js</exclude-pattern>
73-
<exclude-pattern>*.css</exclude-pattern>
70+
<include-pattern>*\.php</include-pattern>
71+
<include-pattern>*\.inc</include-pattern>
72+
<exclude-pattern>*\.js</exclude-pattern>
73+
<exclude-pattern>*\.css</exclude-pattern>
7474
</rule>
7575
<rule ref="Squiz.PHP.CommentedOutCode"/>
7676

0 commit comments

Comments
 (0)