-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruleset.xml
More file actions
36 lines (33 loc) · 1.32 KB
/
ruleset.xml
File metadata and controls
36 lines (33 loc) · 1.32 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Rulesets -->
<rule ref="./vendor/contributte/qa/ruleset-8.2.xml"/>
<!-- Rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Contributte\Nextras\Orm\QueryObject"/>
<element key="tests" value="Tests"/>
</property>
<property name="extensions" type="array">
<element value="php"/>
<element value="phpt"/>
</property>
</properties>
</rule>
<!-- Exclude class naming rules for test files with inline helper classes -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
<exclude-pattern>/tests/Cases</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>/tests/Cases</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>/tests/Cases</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>/tests/Cases</exclude-pattern>
</rule>
<!-- Excludes -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>