-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.phpcs.xml
More file actions
50 lines (43 loc) · 2.12 KB
/
.phpcs.xml
File metadata and controls
50 lines (43 loc) · 2.12 KB
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
<?xml version="1.0"?>
<ruleset>
<description>Coding standard based on PSR12 with comments from PEAR for Galette</description>
<file>lib/</file>
<exclude-pattern>/.git/</exclude-pattern>
<arg name="warning-severity" value="0" /><!-- no warning -->
<arg value="p" /><!-- show progress -->
<arg value="s" /><!-- show sniff codes -->
<ini name="memory_limit" value="512M" />
<arg name="colors" />
<arg name="extensions" value="php" />
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Comments rules from PEAR standard -->
<rule ref="PEAR.Commenting.ClassComment">
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
</rule>
<rule ref="Galette.Commenting.FunctionComment"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<!-- Type hinting -->
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<!-- Force native typehint on methods properties -->
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<!-- Force native typehint on methods return -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable"/>
</ruleset>