-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs-simplesamlphp.xml
27 lines (19 loc) · 1.08 KB
/
phpcs-simplesamlphp.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
<?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" />
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
<!-- 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" />
</ruleset>