Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a0374a

Browse filesBrowse files
authored
Merge pull request magento#112 from magento/phtml-excludes
Added excludes for phtml files
2 parents 95eafee + 8d6ebf1 commit 4a0374a
Copy full SHA for 4a0374a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎Magento2/ruleset.xml

Copy file name to clipboardExpand all lines: Magento2/ruleset.xml
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
<rule ref="Magento2.Files.LineLength">
176176
<severity>8</severity>
177177
<type>warning</type>
178+
<exclude-pattern>*.phtml</exclude-pattern>
178179
</rule>
179180
<rule ref="Magento2.NamingConvention.InterfaceName">
180181
<severity>8</severity>
@@ -277,6 +278,7 @@
277278
<rule ref="Squiz.Operators.IncrementDecrementUsage">
278279
<severity>7</severity>
279280
<type>warning</type>
281+
<exclude-pattern>*.phtml</exclude-pattern>
280282
</rule>
281283
<rule ref="Squiz.Operators.ValidLogicalOperators">
282284
<severity>7</severity>
@@ -345,6 +347,7 @@
345347
<rule ref="PEAR.ControlStructures.ControlSignature">
346348
<severity>6</severity>
347349
<type>warning</type>
350+
<exclude-pattern>*.phtml</exclude-pattern>
348351
</rule>
349352
<rule ref="PSR1.Files.SideEffects">
350353
<severity>6</severity>
@@ -418,6 +421,9 @@
418421
<severity>6</severity>
419422
<type>warning</type>
420423
</rule>
424+
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
425+
<exclude-pattern>*.phtml</exclude-pattern>
426+
</rule>
421427
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration">
422428
<severity>6</severity>
423429
<type>warning</type>
@@ -466,6 +472,7 @@
466472
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
467473
<severity>6</severity>
468474
<type>warning</type>
475+
<exclude-pattern>*.phtml</exclude-pattern>
469476
</rule>
470477
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing">
471478
<severity>6</severity>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.