forked from nepada/file-upload-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml.dist
42 lines (37 loc) · 1.43 KB
/
.phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset>
<config name="installed_paths" value="../../nepada/coding-standard/src"/><!-- relative path from PHPCS source location -->
<arg value="ps"/><!-- show progress of the run, show sniff names -->
<arg name="cache" value=".phpcs-cache"/>
<arg name="extensions" value="php,phpt"/>
<file>src</file>
<file>tests</file>
<rule ref="Nepada">
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Nepada"/>
<element key="tests" value="NepadaTests"/>
</property>
<property name="extensions" type="array">
<element value="php"/>
<element value="phpt"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="ignoredAnnotationNames" type="array">
<element value="@testCase"/>
<element value="@dataProvider"/>
</property>
</properties>
</rule>
<!-- special settings for tests and bootstrap -->
<exclude-pattern>*/tests/temp/*</exclude-pattern>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>*.phpt</exclude-pattern>
<exclude-pattern>*/bootstrap.php</exclude-pattern>
</rule>
</ruleset>