Skip to content

Commit 3326339

Browse files
committed
Merge pull request #20 from philwinkle/philwinkle-patch-1
Allow PHTML files to be scanned from app/design
2 parents dbac5b1 + d95c28e commit 3326339

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ruleset.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<rule ref="Generic.Functions.CallTimePassByReference"/>
2020
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
2121
<rule ref="Generic.Metrics.NestingLevel"/>
22-
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/>
22+
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag">
23+
<exclude-pattern>*.phtml</exclude-pattern>
24+
</rule>
2325
<rule ref="Generic.PHP.DeprecatedFunctions"/>
2426
<rule ref="Generic.PHP.NoSilencedErrors"/>
2527
<rule ref="Squiz.Functions.GlobalFunction"/>
@@ -29,10 +31,10 @@
2931
<rule ref="Squiz.PHP.GlobalKeyword"/>
3032
<rule ref="Squiz.PHP.NonExecutableCode"/>
3133

32-
<rule ref="Zend.Files.ClosingTag"/>
33-
34+
<rule ref="Zend.Files.ClosingTag">
35+
<exclude-pattern>*.phtml</exclude-pattern>
36+
</rule>
3437
<rule ref="Ecg.Security.LanguageConstruct.DirectOutput">
3538
<exclude-pattern>*.phtml</exclude-pattern>
3639
</rule>
37-
3840
</ruleset>

0 commit comments

Comments
 (0)