-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpcs.xml.dist
41 lines (33 loc) · 1.48 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
<?xml version="1.0"?>
<ruleset name="WP-to-MD" namespace="WPAuth0\CS\Standard">
<description>A custom coding standard for WP-to-MD</description>
<file>.</file>
<!-- Skip Composer includes -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Only check PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="sp"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<!-- Show coloured output, if available. -->
<arg name="colors"/>
<config name="testVersion" value="7.0-"/>
<config name="minimum_supported_wp_version" value="4.9"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="Generic.CodeAnalysis">
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed"/>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fopen" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fwrite" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fclose" />
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="wptomd" />
</properties>
</rule>
</ruleset>