-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
41 lines (35 loc) · 1.81 KB
/
phpcs.xml
File metadata and controls
41 lines (35 loc) · 1.81 KB
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
<?xml version="1.0"?>
<ruleset name="Wikitongues">
<description>PHPCS rules for the Wikitongues WordPress project.</description>
<!-- Directories to scan (tracked custom code only) -->
<file>wp-content/themes/blankslate-child</file>
<file>wp-content/plugins/wt-gallery</file>
<file>wp-content/plugins/typeahead/typeahead.php</file>
<file>wp-content/plugins/download-gateway</file>
<file>tests</file>
<!-- Exclusions -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>wp-content/themes/blankslate-child/acf-json/*</exclude-pattern>
<exclude-pattern>wp-content/plugins/typeahead/build/*</exclude-pattern>
<!-- JS is handled by ESLint; compiled CSS is auto-generated -->
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<!-- WordPress Core coding standards -->
<rule ref="WordPress-Core" />
<!--
Style preferences not enforced on this project:
- YodaConditions: project convention is natural-order comparisons
- FileName: existing files cannot be renamed without breaking WordPress routing
- ShortTernary: ?: is acceptable shorthand
- ValidVariableName / ValidFunctionName: minor naming deviations in existing code
-->
<rule ref="WordPress.PHP.YodaConditions" ><severity>0</severity></rule>
<rule ref="WordPress.Files.FileName" ><severity>0</severity></rule>
<rule ref="Universal.Operators.DisallowShortTernary" ><severity>0</severity></rule>
<rule ref="WordPress.NamingConventions.ValidVariableName" ><severity>0</severity></rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName" ><severity>0</severity></rule>
<!-- Minimum supported WP and PHP versions -->
<config name="minimum_supported_wp_version" value="6.0" />
<config name="testVersion" value="8.0-" />
</ruleset>