-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.phpcs.xml.dist
More file actions
42 lines (35 loc) · 1.79 KB
/
.phpcs.xml.dist
File metadata and controls
42 lines (35 loc) · 1.79 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
42
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugin">
<description>Sniffs for WordPress plugins</description>
<file>.</file>
<!-- Exclude these -->
<exclude-pattern type="relative">bin/*</exclude-pattern>
<exclude-pattern type="relative">build/*</exclude-pattern>
<exclude-pattern type="relative">dist/*</exclude-pattern>
<exclude-pattern type="relative">vendor/*</exclude-pattern>
<exclude-pattern type="relative">vendor-prefixed/*</exclude-pattern>
<exclude-pattern type="relative">tests/*</exclude-pattern>
<arg name="extensions" value="php" />
<!-- Show progress and sniff codes in all reports -->
<arg value="ps" />
<!--
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="7.4-" />
<!--
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="5.8" />
<config name="text_domain" value="integration-features, default" />
<!-- Force short syntax arrays. -->
<rule ref="CodeAtlantic">
<rule ref="Universal.Arrays.DisallowLongArraySyntax" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<!-- Allow PSR file name & class names. -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<!-- Custom code doesn't need to follow this rule -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<!-- Allow mixing class and helper function in main plugin file (WordPress pattern) -->
<exclude name="Universal.Files.SeparateFunctionsFromOO.Mixed" />
</rule>
</ruleset>