Skip to content

Commit fb5480d

Browse files
committed
QA: add codesniffer
1 parent 1d3928b commit fb5480d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ruleset.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
3+
<!-- Rulesets -->
4+
<rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/>
5+
6+
<!-- Rules -->
7+
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
8+
<properties>
9+
<property name="rootNamespaces" type="array">
10+
<element key="src" value="Contributte\Elastica"/>
11+
<element key="tests" value="Tests"/>
12+
</property>
13+
</properties>
14+
</rule>
15+
16+
<!-- Excludes -->
17+
<exclude-pattern>/tests/tmp</exclude-pattern>
18+
</ruleset>

0 commit comments

Comments
 (0)