Skip to content

Commit 07dc25c

Browse files
committed
updated
1 parent 1ce55a8 commit 07dc25c

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

codeat.xml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,49 @@
2727
<exclude name="Squiz.Commenting.FileComment.WrongStyle" />
2828
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen" />
2929
<exclude name="Squiz.Commenting.PostStatementComment.Found" />
30-
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
3130
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
3231
<exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid" />
3332
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
3433
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing" />
34+
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
35+
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
36+
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore" />
37+
</rule>
38+
39+
<rule ref="Squiz.PHP">
40+
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
41+
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed" />
42+
<exclude name="Squiz.PHP.DisallowBooleanStatement.Found" />
43+
<exclude name="Squiz.PHP.DisallowInlineIf.Found" />
44+
</rule>
45+
46+
<rule ref="Squiz.WhiteSpace.FunctionSpacing" >
47+
<properties>
48+
<property name="spacing" value="1" />
49+
</properties>
50+
</rule>
51+
52+
<rule ref="Squiz.WhiteSpace">
53+
<exclude name="Squiz.Whitespace.CastSpacing.ContainsWhiteSpace" />
54+
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
55+
<exclude name="Squiz.WhiteSpace.FunctionSpacing.Before" />
56+
<exclude name="Squiz.WhiteSpace.FunctionSpacing.After" />
57+
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose" />
58+
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace" />
59+
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace" />
60+
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
61+
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd" />
3562
</rule>
3663

3764
<rule ref="PEAR.NamingConventions">
3865
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid" />
66+
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
3967
</rule>
68+
4069
<rule ref="PEAR.NamingConventions.ValidFunctionName">
4170
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps" />
4271
<exclude name="PEAR.NamingConventions.ValidFunctionName.NotCamelCaps" />
72+
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital" />
4373
</rule>
4474

4575
<!-- https://github.com/wimg/PHPCompatibility/ -->
@@ -54,12 +84,7 @@
5484
<exclude name="Generic.Commenting.DocComment.MissingShort" />
5585
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
5686
<exclude name="Generic.PHP.Syntax" />
57-
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
58-
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
59-
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
60-
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore" />
6187
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
62-
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital" />
6388
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys" />
6489
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys" />
6590
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>

0 commit comments

Comments
 (0)