-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpcs.xml.dist
47 lines (40 loc) · 1.51 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
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="Inpsyde Assets Standard">
<!-- Remove until #6 is merged <file>./inc</file> -->
<file>./src</file>
<file>./tests/phpunit/Unit</file>
<arg value="sp"/>
<arg name="colors"/>
<config name="testVersion" value="7.1-"/>
<config name="ignore_warnings_on_exit" value="1"/>
<rule ref="Inpsyde"/>
<rule ref="Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType">
<exclude-pattern>./src/**/*Interface\.php</exclude-pattern>
<exclude-pattern>./src/Asset\.php</exclude-pattern>
</rule>
<rule ref="Inpsyde.CodeQuality.Psr4">
<properties>
<property
name="psr4"
type="array"
value="Inpsyde\Assets=>src,Inpsyde\Assets\Tests=>tests/phpunit"/>
</properties>
</rule>
<!-- We expect inc/ files to both use and declare symbols -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>./inc</exclude-pattern>
</rule>
<!-- Relaxed checks for tests -->
<rule ref="WordPress.WP.EnqueuedResources">
<exclude-pattern>./tests</exclude-pattern>
</rule>
<rule ref="Inpsyde.CodeQuality.FunctionLength">
<exclude-pattern>./tests</exclude-pattern>
</rule>
<rule ref="Inpsyde.CodeQuality.ArgumentTypeDeclaration">
<exclude-pattern>./tests</exclude-pattern>
</rule>
<rule ref="Inpsyde.CodeQuality.ReturnTypeDeclaration">
<exclude-pattern>./tests</exclude-pattern>
</rule>
</ruleset>