-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs-simplesamlphp.xml
More file actions
79 lines (64 loc) · 3.18 KB
/
phpcs-simplesamlphp.xml
File metadata and controls
79 lines (64 loc) · 3.18 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0"?>
<ruleset name="SimpleSAMLphp">
<!-- Only allow shorthand array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<!-- Require the file to start with a declare(strict_types=1); -->
<rule ref="Generic.PHP.RequireStrictTypes" />
<!-- Do not allow unnecessary spaces inside arbitrary parentheses -->
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
<!-- Complain about unresolved merge conflicts -->
<rule ref="Generic.VersionControl.GitMergeConflict" />
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
<!-- Use fully qualified class names in annotations and PHPdoc -->
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation" />
<!-- Do not allow any grouped use-statements to exist -->
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse" />
<!-- Do not allow any unused use-statements to exist -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses" />
<!-- Enforce alphabetically sorted use-statements -->
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<!-- Enforce the use of trailing commas -->
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma" />
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse" />
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
<!-- Enforce the use of typed constants -->
<rule ref="SlevomatCodingStandard.TypeHints.ClassConstantTypeHint" />
<!-- Require one blank line between different types of use-statements -->
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing">
<properties>
<property name="linesCountBetweenUseTypes" value="1" />
</properties>
</rule>
<!-- Require two blank lines between class members -->
<rule ref="SlevomatCodingStandard.Classes.ClassMemberSpacing">
<properties>
<property name="linesCountBetweenMembers" value="2" />
</properties>
</rule>
<!-- Require one blank line between constant declarations -->
<rule ref="SlevomatCodingStandard.Classes.ConstantSpacing">
<properties>
<property name="minLinesCountBeforeWithComment" value="1" />
<property name="maxLinesCountBeforeWithComment" value="1" />
<property name="minLinesCountBeforeWithoutComment" value="1" />
<property name="maxLinesCountBeforeWithoutComment" value="1" />
</properties>
</rule>
<!-- Require one blank line between property definitions -->
<rule ref="SlevomatCodingStandard.Classes.PropertySpacing">
<properties>
<property name="minLinesCountBeforeWithComment" value="1" />
<property name="maxLinesCountBeforeWithComment" value="1" />
<property name="minLinesCountBeforeWithoutComment" value="1" />
<property name="maxLinesCountBeforeWithoutComment" value="1" />
</properties>
</rule>
<!-- Require two blank lines between method declarations -->
<rule ref="SlevomatCodingStandard.Classes.MethodSpacing">
<properties>
<property name="minLinesCount" value="2" />
<property name="maxLinesCount" value="2" />
</properties>
</rule>
</ruleset>