Skip to content

Commit 12d50e9

Browse files
🐛 Add missing sniff in ruleset
1 parent 696b1e5 commit 12d50e9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

SymfonyCustom/ruleset.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,20 @@
1313
<!-- Include the PSR-12 (so PSR-1) standard without the file length limit -->
1414
<rule ref="PSR12">
1515
<exclude name="Generic.Files.LineLength"/>
16-
17-
<!-- TODO -->
1816
<exclude name="PSR12.ControlStructures.ControlStructureSpacing"/>
1917
<exclude name="PSR12.Operators.OperatorSpacing"/>
20-
<exclude name="Squiz.ControlStructures.ControlSignature"/>
2118
</rule>
19+
<!-- Instead of PSR12.ControlStructures.ControlStructureSpacing -->
20+
<rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
21+
<!-- Instead of PSR12.Operators.OperatorSpacing-->
22+
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
23+
<properties>
24+
<property name="ignoreNewlines" value="true"/>
25+
</properties>
26+
</rule>
27+
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
28+
29+
<!-- Change warning to error -->
2230
<rule ref="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed">
2331
<type>error</type>
2432
</rule>
@@ -65,17 +73,11 @@
6573
<property name="spacingAfterLast" value="0"/>
6674
</properties>
6775
</rule>
68-
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
6976
<rule ref="Squiz.WhiteSpace.MemberVarSpacing">
7077
<properties>
7178
<property name="spacingBeforeFirst" value="0"/>
7279
</properties>
7380
</rule>
74-
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
75-
<properties>
76-
<property name="ignoreNewlines" value="true"/>
77-
</properties>
78-
</rule>
7981
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing">
8082
<properties>
8183
<property name="ignoreNewlines" value="true"/>

0 commit comments

Comments
 (0)