Skip to content

Commit bb2a425

Browse files
committed
fix(psr2): silence rule
1 parent 5086b5e commit bb2a425

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

CodeatCodingStandard/ruleset.xml

+25-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
</properties>
4242
</rule>
4343
<rule ref="Zend.Files.ClosingTag"/>
44+
<rule ref="Generic.WhiteSpace">
45+
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/>
46+
</rule>
47+
<rule ref="Generic.WhiteSpace">
48+
<exclude name="Generic.Files.LineLength.TooLong"/>
49+
</rule>
4450
<rule ref="Squiz.Commenting">
4551
<exclude name="Squiz.Commenting.PostStatementComment.Found"/>
4652
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing"/>
@@ -54,6 +60,13 @@
5460
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
5561
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore"/>
5662
</rule>
63+
<rule ref="Squiz.Commenting">
64+
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
65+
</rule>
66+
<rule ref="Squiz.Functions">
67+
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
68+
<exclude name="Squiz.Functions.GlobalFunction.Found"/>
69+
</rule>
5770
<rule ref="Squiz.PHP">
5871
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
5972
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
@@ -234,12 +247,22 @@
234247

235248
<rule ref="PSR12">
236249
<exclude name="PSR12.Classes.ClassInstantiation.MissingParentheses" />
250+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace"/>
251+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
252+
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
253+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.LineIndent"/>
254+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
255+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/>
237256
</rule>
238257
<rule ref="PSR2">
258+
<exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
239259
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
240-
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace"/>
241-
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
242260
<exclude name="PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket"/>
243261
<exclude name="PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket"/>
262+
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace"/>
263+
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
264+
</rule>
265+
<rule ref="PSR1">
266+
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
244267
</rule>
245268
</ruleset>

0 commit comments

Comments
 (0)