-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
39 lines (32 loc) · 1.36 KB
/
phpcs.xml
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 name="WordPress Coding Standards">
<description>EverAccounting Sniffs dev ruleset.</description>
<file>.</file>
<exclude-pattern>languages/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>assets/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>bin/</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*\.(css|js|xml)</exclude-pattern>
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<!-- Sets the minimum supported WP version to 5.8, which is over a year old. -->
<config name="minimum_supported_wp_version" value="5.8" />
<!-- Rules: Check PHP version compatibility -->
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="5.6-"/>
<!-- Rules -->
<rule ref="ByteEver-Default"/>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>includes/</exclude-pattern>
</rule>
<!-- Check that the proper text domain(s) is used everywhere. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wp-ever-accounting"/>
</property>
</properties>
</rule>
</ruleset>