This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpcs.xml
55 lines (43 loc) · 1.55 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<ruleset name="WP-Gistpen">
<description>WP-Gistpen Coding Standards</description>
<!-- Scan these files -->
<file>wp-gistpen.php</file>
<file>app</file>
<file>test</file>
<file>resources/config</file>
<file>resources/views</file>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Use Intraxia codestyle as a base -->
<rule ref="lib/intraxia/codestyle"/>
<!-- Make sure PHPCS can find the WPCS styles -->
<config name="installed_paths" value="lib/wp-coding-standards/wpcs" />
<!-- We use dot seperated action names. @TODO(mAAdhaTTah) revist? -->
<rule ref="WordPress.NamingConventions.ValidHookName.UseUnderscores">
<exclude-pattern>app</exclude-pattern>
</rule>
<!-- Ignore commenting rules for tests -->
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>test</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.VariableComment.Missing">
<exclude-pattern>test</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>test</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>test</exclude-pattern>
</rule>
<!-- Ignore escaping rules for tests -->
<rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped">
<exclude-pattern>test</exclude-pattern>
</rule>
<!-- Ignore fs rules for tests -->
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents">
<exclude-pattern>test</exclude-pattern>
</rule>
</ruleset>