Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs-simplesamlphp.xml
More file actions
Latest commit
79 lines (64 loc) · 3.18 KB
/
Copy pathphpcs-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"?>
<rulesetname="SimpleSAMLphp">
<!-- Only allow shorthand array syntax -->
<ruleref="Generic.Arrays.DisallowLongArraySyntax" />
<!-- Require the file to start with a declare(strict_types=1); -->
<ruleref="Generic.PHP.RequireStrictTypes" />
<!-- Do not allow unnecessary spaces inside arbitrary parentheses -->
<ruleref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
<!-- Complain about unresolved merge conflicts -->
<ruleref="Generic.VersionControl.GitMergeConflict" />
<configname="installed_paths"value="vendor/slevomat/coding-standard"/>
<!-- Use fully qualified class names in annotations and PHPdoc -->
<ruleref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation" />
<!-- Do not allow any grouped use-statements to exist -->
<ruleref="SlevomatCodingStandard.Namespaces.DisallowGroupUse" />
<!-- Do not allow any unused use-statements to exist -->
<ruleref="SlevomatCodingStandard.Namespaces.UnusedUses" />
<!-- Enforce alphabetically sorted use-statements -->
<ruleref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<!-- Enforce the use of trailing commas -->
<ruleref="SlevomatCodingStandard.Arrays.TrailingArrayComma" />
<ruleref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
<ruleref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse" />
<ruleref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
<!-- Enforce the use of typed constants -->
<ruleref="SlevomatCodingStandard.TypeHints.ClassConstantTypeHint" />
<!-- Require one blank line between different types of use-statements -->
<ruleref="SlevomatCodingStandard.Namespaces.UseSpacing">
<properties>
<propertyname="linesCountBetweenUseTypes"value="1" />
</properties>
</rule>
<!-- Require two blank lines between class members -->
<ruleref="SlevomatCodingStandard.Classes.ClassMemberSpacing">
<properties>
<propertyname="linesCountBetweenMembers"value="2" />
</properties>
</rule>
<!-- Require one blank line between constant declarations -->
<ruleref="SlevomatCodingStandard.Classes.ConstantSpacing">
<properties>
<propertyname="minLinesCountBeforeWithComment"value="1" />
<propertyname="maxLinesCountBeforeWithComment"value="1" />
<propertyname="minLinesCountBeforeWithoutComment"value="1" />
<propertyname="maxLinesCountBeforeWithoutComment"value="1" />
</properties>
</rule>
<!-- Require one blank line between property definitions -->
<ruleref="SlevomatCodingStandard.Classes.PropertySpacing">
<properties>
<propertyname="minLinesCountBeforeWithComment"value="1" />
<propertyname="maxLinesCountBeforeWithComment"value="1" />
<propertyname="minLinesCountBeforeWithoutComment"value="1" />
<propertyname="maxLinesCountBeforeWithoutComment"value="1" />
</properties>
</rule>
<!-- Require two blank lines between method declarations -->
<ruleref="SlevomatCodingStandard.Classes.MethodSpacing">
<properties>
<propertyname="minLinesCount"value="2" />
<propertyname="maxLinesCount"value="2" />
</properties>
</rule>
</ruleset>