|
7 | 7 | <!-- Use this to exclude paths. You can have multiple patterns --> |
8 | 8 | <!--<exclude-pattern>*/tests/*</exclude-pattern>--> |
9 | 9 | <!--<exclude-pattern>*/other/*</exclude-pattern>--> |
| 10 | + |
10 | 11 | <file>src</file> |
11 | 12 | <file>tests</file> |
12 | 13 |
|
13 | 14 | <!-- This is the rule we inherit from. If you want to exlude some specific rules, see the docs on how to do that --> |
14 | 15 | <rule ref="PSR12"/> |
| 16 | + <rule ref="vendor/simplesamlphp/simplesamlphp-test-framework/phpcs-simplesamlphp.xml"/> |
15 | 17 |
|
16 | | - <!-- Ignore files with side effects that we cannot fix --> |
17 | | - <rule ref="PSR1.Files.SideEffects"> |
18 | | - <exclude-pattern>tests/SAML2/XML/md/RoleDescriptorTest.php</exclude-pattern> |
| 18 | + <rule ref="Generic.PHP.RequireStrictTypes"> |
| 19 | + <exclude-pattern>tests/bin/**</exclude-pattern> |
19 | 20 | </rule> |
20 | 21 |
|
21 | | - <rule ref="PSR1.Methods.CamelCapsMethodName"> |
22 | | - <exclude-pattern>tests/SAML2/Assertion/ProcessorTest.php</exclude-pattern> |
23 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/NotBeforeTest.php</exclude-pattern> |
24 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/NotOnOrAfterTest.php</exclude-pattern> |
25 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SessionNotOnOrAfterTest.php</exclude-pattern> |
26 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SpIsValidAudienceTest.php</exclude-pattern> |
27 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationMethodTest.php</exclude-pattern> |
28 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationNotBeforeTest.php</exclude-pattern> |
29 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationNotOnOrAfterTest.php</exclude-pattern> |
30 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationRecipientMathchesTest.php</exclude-pattern> |
31 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationResponseToMatchesTest.php</exclude-pattern> |
32 | | - <exclude-pattern>tests/SAML2/Certificate/KeyTest.php</exclude-pattern> <exclude-pattern>tests/SAML2/Certificate/KeyLoaderTest.php</exclude-pattern> |
33 | | - <exclude-pattern>tests/SAML2/Certificate/PrivateKeyLoaderTest.php</exclude-pattern> |
34 | | - <exclude-pattern>tests/SAML2/Certificate/PrivateKeyTest.php</exclude-pattern> |
35 | | - <exclude-pattern>tests/SAML2/Certificate/X509Test.php</exclude-pattern> |
36 | | - <exclude-pattern>tests/SAML2/Utilities/ArrayCollectionTest.php</exclude-pattern> |
37 | | - <exclude-pattern>tests/SAML2/Utilities/FileTest.php</exclude-pattern> |
| 22 | + <rule ref="PSR1.Files.SideEffects"> |
| 23 | + <exclude-pattern>src/_autoload.php</exclude-pattern> |
38 | 24 | </rule> |
39 | 25 |
|
40 | 26 | <rule ref="Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase"> |
41 | | - <exclude-pattern>src/SAML2/Assertion.php</exclude-pattern> |
42 | | - <exclude-pattern>src/SAML2/LogoutRequest.php</exclude-pattern> |
43 | | - <exclude-pattern>src/SAML2/EncryptedAssertion.php</exclude-pattern> |
| 27 | + <exclude-pattern>**/Assertion.php</exclude-pattern> |
| 28 | + <exclude-pattern>**/LogoutRequest.php</exclude-pattern> |
| 29 | + <exclude-pattern>**/EncryptedAssertion.php</exclude-pattern> |
44 | 30 | </rule> |
45 | 31 |
|
46 | 32 | <!-- Lines can be a little bit longer before they break the build --> |
47 | 33 | <rule ref="Generic.Files.LineLength"> |
48 | | - <properties> |
49 | | - <property name="lineLimit" value="120"/> |
50 | | - <property name="absoluteLineLimit" value="130"/> |
51 | | - </properties> |
52 | | - <exclude-pattern>tests/SAML2/AssertionTest.php</exclude-pattern> |
53 | | - <exclude-pattern>tests/SAML2/Assertion/ProcessorTest.php</exclude-pattern> |
| 34 | + <exclude-pattern>**/BindingTest.php</exclude-pattern> |
| 35 | + <exclude-pattern>**/HTTPPostTest.php</exclude-pattern> |
| 36 | + <exclude-pattern>**/HTTPRedirectTest.php</exclude-pattern> |
| 37 | + <exclude-pattern>**/SOAPTest.php</exclude-pattern> |
54 | 38 | <exclude-pattern>tests/SAML2/Assertion/Validation/AssertionValidatorTest.php</exclude-pattern> |
55 | | - <exclude-pattern>tests/SAML2/AttributeQueryTest.php</exclude-pattern> |
56 | | - <exclude-pattern>tests/SAML2/AuthnRequestTest.php</exclude-pattern> |
57 | | - <exclude-pattern>tests/SAML2/BindingTest.php</exclude-pattern> |
58 | | - <exclude-pattern>tests/SAML2/Certificate/KeyLoaderTest.php</exclude-pattern> |
59 | | - <exclude-pattern>tests/SAML2/CertificatesMock.php</exclude-pattern> |
60 | | - <exclude-pattern>tests/SAML2/HTTPPostTest.php</exclude-pattern> |
61 | | - <exclude-pattern>tests/SAML2/HTTPRedirectTest.php</exclude-pattern> |
62 | | - <exclude-pattern>tests/SAML2/LogoutRequestTest.php</exclude-pattern> |
63 | | - <exclude-pattern>tests/SAML2/ResponseTest.php</exclude-pattern> |
64 | | - <exclude-pattern>tests/SAML2/SOAPTest.php</exclude-pattern> |
65 | | - <exclude-pattern>tests/SAML2/Utilities/ArrayCollectionTest.php</exclude-pattern> |
66 | | - <exclude-pattern>tests/SAML2/UtilsTest.php</exclude-pattern> |
67 | | - <exclude-pattern>tests/SAML2/XML/md/AffiliationDescriptorTest.php</exclude-pattern> |
68 | | - <exclude-pattern>tests/SAML2/XML/md/ContactPersonTest.php</exclude-pattern> |
69 | | - <exclude-pattern>tests/SAML2/XML/md/EndpointTypeTest.php</exclude-pattern> |
70 | | - <exclude-pattern>tests/SAML2/XML/md/EntityDescriptorTest.php</exclude-pattern> |
71 | | - <exclude-pattern>tests/SAML2/XML/mdattr/EntityAttributesTest.php</exclude-pattern> |
72 | | - <exclude-pattern>tests/SAML2/XML/mdui/LogoTest.php</exclude-pattern> |
73 | 39 | <exclude-pattern>tests/SAML2/XML/saml/AssertionTest.php</exclude-pattern> |
74 | 40 | <exclude-pattern>tests/SAML2/XML/saml/AttributeValueTest.php</exclude-pattern> |
75 | 41 | <exclude-pattern>tests/SAML2/XML/saml/AuthnContextTest.php</exclude-pattern> |
76 | 42 | <exclude-pattern>tests/SAML2/XML/saml/EncryptedAssertionTest.php</exclude-pattern> |
77 | 43 | <exclude-pattern>tests/SAML2/XML/saml/EncryptedIDTest.php</exclude-pattern> |
78 | | - <exclude-pattern>tests/SAML2/XML/saml/IssuerXMLShowAllTest.php</exclude-pattern> |
79 | | - <exclude-pattern>tests/SAML2/XML/saml/NameIDTest.php</exclude-pattern> |
80 | 44 | <exclude-pattern>tests/SAML2/XML/samlp/RequestedAuthnContextTest.php</exclude-pattern> |
81 | 45 | <exclude-pattern>tests/SAML2/XML/samlp/StatusDetailTest.php</exclude-pattern> |
82 | 46 | <exclude-pattern>tests/SAML2/XML/shibmd/KeyAuthorityTest.php</exclude-pattern> |
83 | | - <exclude-pattern>tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationResponseToMatchesTest.php</exclude-pattern> |
84 | 47 | </rule> |
85 | 48 | </ruleset> |
0 commit comments