-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
29 lines (25 loc) · 1.36 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
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Show only relevant part of path -->
<arg name="basepath" value="./"/>
<!-- Import coding-standard -->
<rule ref="./vendor/orisai/coding-standard/src/ruleset-8.1.xml">
<exclude name="SlevomatCodingStandard.Commenting.ForbiddenAnnotations.AnnotationForbidden"/>
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes"/>
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectAnnotationsGroup"/>
</rule>
<!-- Configure PSR-4 rule -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="FastyBird\SimpleAuth"/>
<element key="tests/cases/unit" value="Tests\Cases\Unit"/>
<element key="tests/tools" value="Tests\Tools"/>
<element key="tests/libs" value="Tests\Libs"/>
</property>
</properties>
</rule>
<!--Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
<exclude-pattern>/tests/stubs/*</exclude-pattern>
<exclude-pattern>/tests/fixtures/*</exclude-pattern>
</ruleset>