-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml.dist
39 lines (32 loc) · 1.32 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
<?xml version="1.0"?>
<ruleset>
<file>.</file>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/env.php</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"/>
<!--
PHPCompatibility sniffs to check for PHP cross-version incompatible code.
https://github.com/PHPCompatibility/PHPCompatibility
-->
<config name="testVersion" value="7.0-"/>
<config name="minimum_supported_wp_version" value="5.4.2"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="Generic.CodeAnalysis">
</rule>
<rule ref="WordPress">
<exclude name="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound"/>
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_error_log"/>
</rule>
<rule ref="Universal">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Universal.ControlStructures.IfElseDeclaration.NoNewLine"/>
<exclude name="Universal.Namespaces.EnforceCurlyBraceSyntax.Forbidden"/>
</rule>
</ruleset>