forked from simplesamlphp/saml2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
48 lines (41 loc) · 2.31 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
<?xml version="1.0"?>
<ruleset name="SimpleSAMLphp SAML2 ruleset">
<description>
By default it is less stringent about long lines than other coding standards
</description>
<!-- Use this to exclude paths. You can have multiple patterns -->
<!--<exclude-pattern>*/tests/*</exclude-pattern>-->
<!--<exclude-pattern>*/other/*</exclude-pattern>-->
<file>src</file>
<file>tests</file>
<!-- 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"/>
<rule ref="Generic.PHP.RequireStrictTypes">
<exclude-pattern>tests/bin/**</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>src/_autoload.php</exclude-pattern>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase">
<exclude-pattern>**/Assertion.php</exclude-pattern>
<exclude-pattern>**/LogoutRequest.php</exclude-pattern>
<exclude-pattern>**/EncryptedAssertion.php</exclude-pattern>
</rule>
<!-- Lines can be a little bit longer before they break the build -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>**/BindingTest.php</exclude-pattern>
<exclude-pattern>**/HTTPPostTest.php</exclude-pattern>
<exclude-pattern>**/HTTPRedirectTest.php</exclude-pattern>
<exclude-pattern>**/SOAPTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/Assertion/Validation/AssertionValidatorTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/saml/AssertionTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/saml/AttributeValueTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/saml/AuthnContextTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/saml/EncryptedAssertionTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/saml/EncryptedIDTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/samlp/RequestedAuthnContextTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/samlp/StatusDetailTest.php</exclude-pattern>
<exclude-pattern>tests/SAML2/XML/shibmd/KeyAuthorityTest.php</exclude-pattern>
</rule>
</ruleset>