forked from converslabs/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
49 lines (39 loc) · 1.84 KB
/
phpcs.xml
File metadata and controls
49 lines (39 loc) · 1.84 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
43
44
45
46
47
48
49
<?xml version="1.0"?>
<ruleset name="PHP CodeSniffer Configuration">
<description>PHP CodeSniffer configuration</description>
<!-- PHP & WP version requirement -->
<config name="testVersion" value="7.4-" />
<config name="minimum_supported_wp_version" value="5.0"/>
<!-- Check PHP version compatibility -->
<!-- https://github.com/PHPCompatibility/PHPCompatibilityWP -->
<rule ref="PHPCompatibilityWP"/>
<!-- WordPress Coding Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<rule ref="WordPress">
<!-- Exclude specific rules -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.NamingConventions.PrefixAllGlobals" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="Squiz.PHP.CommentedOutCode"/>
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
</rule>
<!-- Exclude non-WordPress sniffs globally -->
<exclude ref="Squiz.Commenting.FileComment.Missing" />
<exclude ref="Squiz.Commenting.FileComment.MissingPackageTag" />
<!-- Customize the I18n rule; Set text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="subscription" />
</property>
</properties>
</rule>
<!-- Exclude the following directories -->
<exclude-pattern>assets/</exclude-pattern>
<exclude-pattern>build/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
</ruleset>