Skip to content

Commit 3dc255f

Browse files
committed
Add ruleset
1 parent 7bf7367 commit 3dc255f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Sandfox/ruleset.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
@see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
4+
-->
5+
<ruleset>
6+
<rule ref="PSR12"/>
7+
<rule ref="PHPCompatibility"/>
8+
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
9+
<properties>
10+
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
11+
<property name="newlinesCountAfterDeclare" value="2"/>
12+
<property name="spacesCountAroundEqualsSign" value="0"/>
13+
</properties>
14+
</rule>
15+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
16+
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
17+
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation"/>
18+
</rule>
19+
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
20+
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
21+
</rule>
22+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
23+
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation"/>
24+
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
25+
</rule>
26+
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions">
27+
<properties>
28+
<property name="includeSpecialFunctions" value="1"/>
29+
</properties>
30+
</rule>
31+
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
32+
<rule ref="SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"/>
33+
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
34+
</ruleset>

0 commit comments

Comments
 (0)