Skip to content

Commit 64e3b29

Browse files
authored
Merge pull request #24 from PcComponentes/feature/update-library
feat: Exclude new rules and fix warnings
2 parents 1af0954 + c852595 commit 64e3b29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ruleset.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
<rule ref="PSR2" />
44
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
55
<exclude name="SlevomatCodingStandard.Classes.ClassConstantVisibility" />
6+
<exclude name="SlevomatCodingStandard.Classes.ClassLength.ClassTooLong" />
67
<exclude name="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion" />
78
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming" />
9+
<exclude name="SlevomatCodingStandard.Complexity.Cognitive.ComplexityTooHigh" />
810
<exclude name="SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
911
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowNullSafeObjectOperator.DisallowedNullSafeObjectOperator" />
1012
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator" />
1113
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
1214
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses" />
1315
<exclude name="SlevomatCodingStandard.Exceptions.DisallowNonCapturingCatch.DisallowedNonCapturingCatch" />
16+
<exclude name="SlevomatCodingStandard.Files.FileLength.FileTooLong" />
1417
<exclude name="SlevomatCodingStandard.Files.FunctionLength.FunctionLength" />
1518
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
1619
<exclude name="SlevomatCodingStandard.Functions.DisallowArrowFunction" />
@@ -57,7 +60,6 @@
5760
<rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
5861
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
5962
<properties>
60-
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
6163
<property name="spacesCountAroundEqualsSign" value="0"/>
6264
</properties>
6365
</rule>
@@ -79,7 +81,6 @@
7981
<property name="linesCountBeforeClosingBrace" value="0"/>
8082
</properties>
8183
</rule>
82-
8384
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
8485
<properties>
8586
<property name="groups" type="array">
@@ -89,6 +90,7 @@
8990
<element value="properties"/>
9091
<element value="constructor"/>
9192
<element value="static constructors"/>
93+
<element value="enum cases"/>
9294
<element value="all public methods, public static methods, magic methods"/>
9395
<element value="methods"/>
9496
</property>

0 commit comments

Comments
 (0)