Skip to content

Commit

Permalink
Merge pull request #4205 from magento-borg/MC-16451
Browse files Browse the repository at this point in the history
[borg] MC-16451: [Backport for 2.2.x] Remove unnecessary sniffs for phtml files
  • Loading branch information
nathanjosiah authored May 16, 2019
2 parents 5efaca9 + e0af2d1 commit 988649e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dev/tests/static/framework/Magento/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Magento.LiteralNamespaces.LiteralNamespaces">
<exclude-pattern>*/_files/*</exclude-pattern>
Expand All @@ -27,4 +28,17 @@
<rule ref="Squiz.Functions.GlobalFunction"/>
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>

<rule ref="PEAR.ControlStructures.ControlSignature">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
</ruleset>

0 comments on commit 988649e

Please sign in to comment.