This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
60 lines (51 loc) · 2.39 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
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Penda">
<config name="php_version" value="70100" />
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<!-- Files -->
<file>./src</file>
<!-- PSR-1 -->
<rule ref="PSR1" />
<!-- PSR-2 -->
<rule ref="PSR2" />
<!-- Squizlabs coding standard -->
<rule ref="Squiz">
<exclude name="Squiz.Arrays" />
<exclude name="Squiz.Commenting" />
<exclude name="Squiz.Files" />
<exclude name="Squiz.NamingConventions" />
<exclude name="Squiz.WhiteSpace" />
<exclude name="Squiz.PHP" />
<exclude name="Squiz.Operators.ComparisonOperatorUsage" />
<exclude name="Squiz.Objects.ObjectInstantiation.NotAssigned" />
<exclude name="Squiz.ControlStructures.ElseIfDeclaration" />
<exclude name="Squiz.ControlStructures.SwitchDeclaration" />
<exclude name="Generic.Formatting" />
<exclude name="Generic.Commenting.DocComment" />
<exclude name="PEAR.Functions" />
</rule>
<!-- Slevomat coding standard (https://github.com/slevomat/coding-standard) -->
<rule ref="SlevomatCodingStandard">
<exclude name="SlevomatCodingStandard.Namespaces" />
<exclude name="SlevomatCodingStandard.Arrays" />
<exclude name="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces" />
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification" />
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification" />
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint" />
</rule>
<!-- Return type hint colon spacing -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing">
<properties>
<property name="spacesCountBeforeColon" value="1" />
</properties>
</rule>
<!-- Check FQDN with file path -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="src=>Cloudstek\InfluxDB\StatusCake"/>
</properties>
</rule>
<!-- Check PHP syntax -->
<rule ref="Generic.PHP.Syntax" />
</ruleset>