-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
54 lines (54 loc) · 1.74 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<ruleset name="ruleset">
<rule ref="vendor/consistence-community/coding-standard/Consistence/ruleset.xml">
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
</rule>
<rule ref="Consistence.Exceptions.ExceptionDeclaration">
<properties>
<property name="exceptionsDirectoryName" value="Exception"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="
src => Mhujer\PHPStanConsistence,
tests => Mhujer\PHPStanConsistence
"/>
<property name="skipDirs" type="array" value="
data,
"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
<properties>
<property name="caseSensitive" value="false"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="true"/>
<property name="spacesCountAroundEqualsSign" value="1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
<properties>
<property name="forbiddenAnnotations" type="array" value="
@author,
@created,
@version,
@package,
@copyright,
@license,
@throws,
@internal,
"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing.After">
<severity>5</severity><!-- turned off by Consistence Coding Standard -->
</rule>
<exclude-pattern>tests/*/data</exclude-pattern>
</ruleset>