Skip to content

Commit f39c43b

Browse files
authored
fix: add missing Doctrine CS (#132)
1 parent f2a417d commit f39c43b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/Cdn77CS/ruleset.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,33 @@
1212
<arg value="p"/>
1313
<arg value="s"/>
1414

15+
<!-- use Doctrine as the base standard -->
16+
<rule ref="Doctrine">
17+
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
18+
19+
<!-- Don't scream. There's no reason. Write a prose. -->
20+
<exclude name="Generic.NamingConventions.UpperCaseConstantName"/>
21+
22+
<!-- Allow extends on a new line, compatibility with SlevomatCodingStandard.Files.LineLength-->
23+
<exclude name="PSR2.Classes.ClassDeclaration.ExtendsLine" />
24+
<!-- Allow implements on a new line, compatibility with SlevomatCodingStandard.Files.LineLength-->
25+
<exclude name="PSR2.Classes.ClassDeclaration.ImplementsLine" />
26+
27+
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
28+
29+
<!-- replaced by Cdn77.NamingConventions.ValidConstantName -->
30+
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase" />
31+
32+
<!-- $_ variables are used to tell e.g. psalm that the variable is intentionally unused. -->
33+
<!-- replaced by Cdn77.NamingConventions.ValidVariableName -->
34+
<exclude name="Squiz.NamingConventions.ValidVariableName" />
35+
36+
<!-- Tools like PHPStan or Psalm check these better -->
37+
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />
38+
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
39+
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
40+
</rule>
41+
1542
<rule ref="Cdn77.NamingConventions.ValidConstantName"/>
1643
<rule ref="Cdn77.NamingConventions.ValidVariableName"/>
1744

0 commit comments

Comments
 (0)