forked from simplesamlphp/simplesamlphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
76 lines (65 loc) · 3.25 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<ruleset name="SimpleSAMLphp ruleset">
<config name="ignore_warnings_on_exit" value="1"/>
<description>
By default it is less stringent about long lines than other coding standards
</description>
<file>bin</file>
<file>config-templates</file>
<file>lib</file>
<file>metadata-templates</file>
<file>modules/admin</file>
<file>modules/core</file>
<file>modules/cron</file>
<file>modules/multiauth</file>
<file>modules/portal</file>
<file>modules/saml</file>
<file>src</file>
<file>tests</file>
<file>www</file>
<!-- Exclude deprecated classes; they are removed in SSP 2.0 -->
<exclude-pattern>lib/SimpleSAML/Auth/LDAP.php</exclude-pattern>
<exclude-pattern>lib/SimpleSAML/Auth/TimeLimitedToken.php</exclude-pattern>
<exclude-pattern>lib/SimpleSAML/Bindings/Shib13/*</exclude-pattern>
<exclude-pattern>lib/SimpleSAML/Utilities.php</exclude-pattern>
<exclude-pattern>lib/SimpleSAML/XML/Shib13/*</exclude-pattern>
<exclude-pattern>modules/saml/lib/IdP/SAML1.php</exclude-pattern>
<exclude-pattern>modules/saml/www/sp/saml1-acs.php</exclude-pattern>
<exclude-pattern>tests/lib/SimpleSAML/Auth/TimeLimitedTokenTest.php</exclude-pattern>
<exclude-pattern>www/shib13</exclude-pattern>
<!-- Exclude old PHP templates (and related); they are removed in SSP 2.0 -->
<exclude-pattern>modules/*/templates/*.tpl.php</exclude-pattern>
<exclude-pattern>templates/*.tpl.php</exclude-pattern>
<exclude-pattern>www/resources/jquery-ui-1.8.js</exclude-pattern>
<exclude-pattern>www/resources/clipboard.min.js</exclude-pattern>
<exclude-pattern>www/resources/jquery-1.8.js</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"/>
<!-- Lines can be a little bit longer before they break the build -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="130"/>
</properties>
<!-- Exclude files with long lines that we cannot immediately fix -->
<exclude-pattern>tests/lib/SimpleSAML/Metadata/MetaDataStorageSourceTest.php</exclude-pattern>
<exclude-pattern>tests/lib/SimpleSAML/Metadata/SAMLParserTest.php</exclude-pattern>
</rule>
<!-- Ignore these warnings until PHP 7.1 becomes the minimum required version -->
<rule ref="PSR12.Properties.ConstantVisibility">
<exclude-pattern>lib/*</exclude-pattern>
<exclude-pattern>modules/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Ignore wrong casing until we can rename then in SSP 2.0 -->
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>lib/SimpleSAML/XHTML/Template.php</exclude-pattern>
</rule>
<!-- Ignore files with side effects that we cannot fix -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>bin/*</exclude-pattern>
<exclude-pattern>lib/_autoload_modules.php</exclude-pattern>
<exclude-pattern>tests/_autoload_modules.php</exclude-pattern>
<exclude-pattern>www/_include.php</exclude-pattern>
</rule>
</ruleset>