Skip to content

Commit 561b3c8

Browse files
author
roettigl
committed
#147: Fix for files that contain phtml
1 parent 8aa173c commit 561b3c8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Magento2/ruleset.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@
198198
<type>warning</type>
199199
</rule>
200200
<rule ref="Magento2.Templates.ThisInTemplate">
201-
<include-pattern>*.phtml</include-pattern>
201+
<exclude-pattern>*\.php$</exclude-pattern>
202+
<include-pattern>*\.phtml$</include-pattern>
202203
<severity>8</severity>
203204
<type>warning</type>
204205
</rule>
@@ -395,7 +396,7 @@
395396
<rule ref="PEAR.ControlStructures.ControlSignature">
396397
<severity>6</severity>
397398
<type>warning</type>
398-
<exclude-pattern>*.phtml</exclude-pattern>
399+
<exclude-pattern>*\.phtml$</exclude-pattern>
399400
</rule>
400401
<rule ref="PSR1.Files.SideEffects">
401402
<severity>6</severity>
@@ -474,7 +475,7 @@
474475
</properties>
475476
</rule>
476477
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
477-
<exclude-pattern>*.phtml</exclude-pattern>
478+
<exclude-pattern>*\.phtml$</exclude-pattern>
478479
</rule>
479480
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration">
480481
<severity>6</severity>
@@ -524,7 +525,7 @@
524525
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
525526
<severity>6</severity>
526527
<type>warning</type>
527-
<exclude-pattern>*.phtml</exclude-pattern>
528+
<exclude-pattern>*\.phtml$</exclude-pattern>
528529
</rule>
529530
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing">
530531
<severity>6</severity>

0 commit comments

Comments
 (0)