-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathphpcs.xml
55 lines (51 loc) · 1.91 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"?>
<!--
Customize the rules WP Enforcer uses by editing this file according to PHP_CodeSniffer's
ruleset.xml standard: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
-->
<ruleset name="Schemify">
<description>Coding standards for Schemify.</description>
<!-- FILES -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>tests/coverage/*</exclude-pattern>
<exclude-pattern>tests/data/*</exclude-pattern>
<exclude-pattern>Gruntfile.js</exclude-pattern>
<!-- Schemas won't match WordPress standards, and that's okay -->
<rule ref="Generic.Files.LowercasedFilename.NotFound">
<exclude-pattern>includes/schemas/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>includes/schemas/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors.Discouraged">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.UnderscoresNotAllowed">
<exclude-pattern>includes/schemas/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions">
<exclude-pattern>includes/schemas/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!--
Don't get angry about checking files that don't contain code
@link https://github.com/stevegrunwell/wp-enforcer/issues/12
-->
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
</ruleset>