|
26 | 26 | <exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing" />
|
27 | 27 | <!-- Magento 2 still does not strict type arguments of functions. This is why this rule is excluded. -->
|
28 | 28 | <exclude name="Squiz.Commenting.FunctionComment.TypeHintMissing" />
|
| 29 | + <exclude-pattern>*.phtml</exclude-pattern> |
29 | 30 | </rule>
|
30 | 31 |
|
31 | 32 | <!-- Import most rules from official Magento2 coding standard -->
|
|
39 | 40 | <exclude name="Magento2.Commenting.ClassPropertyPHPDocFormatting" />
|
40 | 41 | </rule>
|
41 | 42 |
|
42 |
| - <!-- Detects function that use a for-loops call in their function. --> |
43 |
| - <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"> |
44 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
45 |
| - </rule> |
46 |
| - |
47 |
| - <rule ref="Generic.Commenting.DocComment"> |
48 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
49 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
50 |
| - </rule> |
51 |
| - |
52 |
| - <rule ref="Generic.ControlStructures.InlineControlStructure.NotAllowed"> |
53 |
| - <!-- Magento 2 templates do not cohere to this rule. --> |
54 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
55 |
| - </rule> |
56 |
| - |
57 |
| - <rule ref="Generic.Files.LineLength.TooLong"> |
58 |
| - <!-- Magento 2 phtml & xml both have long lines think of checkout_index_index.xml --> |
59 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
60 |
| - <exclude-pattern>*.xml</exclude-pattern> |
61 |
| - </rule> |
62 |
| - |
63 |
| - <rule ref="PEAR.Functions.FunctionCallSignature"> |
64 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
65 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
66 |
| - </rule> |
67 |
| - |
68 |
| - <rule ref="PSR2.Classes.PropertyDeclaration.Underscore"> |
69 |
| - <!-- In some cases Magento 2 still uses underscores for their properties. --> |
70 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
71 |
| - </rule> |
72 |
| - |
73 |
| - <rule ref="PSR2.ControlStructures.ControlStructureSpacing"> |
74 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
75 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
76 |
| - </rule> |
77 |
| - |
78 |
| - <rule ref="PSR12.ControlStructures.ControlStructureSpacing"> |
79 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
80 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
81 |
| - </rule> |
82 |
| - |
83 |
| - <rule ref="PSR12.Files.FileHeader.SpacingAfterBlock"> |
84 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
85 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
86 |
| - </rule> |
87 |
| - |
88 |
| - <rule ref="PSR12.Operators.OperatorSpacing"> |
89 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
90 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
91 |
| - </rule> |
92 |
| - |
93 |
| - <rule ref="Squiz.ControlStructures.ControlSignature"> |
94 |
| - <!-- Magento 2 uses a different notation for patterns like do { / if { for phtml that's why this was excluded. --> |
95 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
96 |
| - </rule> |
97 |
| - |
98 |
| - <rule ref="Squiz.WhiteSpace.ControlStructureSpacing"> |
99 |
| - <!-- default Magento 2 templates also not cohere to this. --> |
100 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
101 |
| - </rule> |
102 |
| - |
103 | 43 | <rule ref="Squiz.WhiteSpace.MemberVarSpacing" >
|
104 | 44 | <properties>
|
105 | 45 | <property name="spacingBeforeFirst" value="0"/>
|
106 | 46 | </properties>
|
107 | 47 | </rule>
|
108 |
| - |
109 |
| - <rule ref="Squiz.WhiteSpace.ScopeClosingBrace"> |
110 |
| - <!-- Magento 2 phptml files end differently and use endif; for example. --> |
111 |
| - <exclude-pattern>*.phtml</exclude-pattern> |
112 |
| - </rule> |
113 | 48 | </ruleset>
|
0 commit comments