-
Notifications
You must be signed in to change notification settings - Fork 76
/
phpcs.xml
39 lines (30 loc) · 1.44 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
<?xml version="1.0"?>
<ruleset name="EventOrganiserPHPCSArguments">
<description>WordPress-Core ruleset with a few exceptions</description>
<!-- Currently we don't use WordPress' standards for JavaScript/CSS -->
<exclude-pattern>**/*.js</exclude-pattern>
<exclude-pattern>**/*.css</exclude-pattern>
<!-- Don't parse minified resources -->
<exclude-pattern>**/*.min.js</exclude-pattern>
<exclude-pattern>**/*.min.css</exclude-pattern>
<!-- Don't parse tests -->
<exclude-pattern>tests/**</exclude-pattern>
<exclude-pattern>features/**</exclude-pattern>
<!-- Don't parse third-party libraries -->
<exclude-pattern>vendor/**</exclude-pattern>
<exclude-pattern>node_modules/**</exclude-pattern>
<!-- Other directories to ignore -->
<exclude-pattern>bin/**</exclude-pattern>
<exclude-pattern>languages/**</exclude-pattern>
<!-- Our rule set -->
<rule ref="WordPress-Core">
<!-- ignored rules -->
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys"/>
<exclude name="WordPress.Arrays.ArrayDeclaration.IndexNoNewline" />
<exclude name="WordPress.DB.RestrictedFunctions" />
<exclude name="WordPress.DB.RestrictedClasses" />
<!-- Some column names are not snake_case -->
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
</rule>
<rule ref="Zend.Files.ClosingTag" />
</ruleset>