-
Notifications
You must be signed in to change notification settings - Fork 23
/
phpcs.xml
40 lines (32 loc) · 1.53 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
<?xml version="1.0"?>
<ruleset name="SimpleSAMLphp OIDC module ruleset">
<config name="ignore_warnings_on_exit" value="1"/>
<description>
By default it is less stringent about long lines than other coding standards
</description>
<config name="show_progress" value="1"/>
<config name="ignore_warnings_on_exit" value="0"/>
<file>config-templates</file>
<file>hooks</file>
<file>src</file>
<file>tests</file>
<file>public</file>
<!-- Use this to exclude paths. You can have multiple patterns -->
<!--<exclude-pattern>*/tests/*</exclude-pattern>-->
<!--<exclude-pattern>*/other/*</exclude-pattern>-->
<exclude-pattern>public/assets/*</exclude-pattern>
<!-- This is the rule we inherit from. If you want to exlude some specific rules, see the docs on how to do that -->
<rule ref="PSR12"/>
<!-- <rule ref="vendor/simplesamlphp/simplesamlphp-test-framework/phpcs-simplesamlphp.xml"/> -->
<!-- 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" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="exact" value="true" />
</properties>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
</ruleset>