-
Notifications
You must be signed in to change notification settings - Fork 8
/
phpcs.xml.dist
29 lines (24 loc) · 1.1 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<arg value="sp"/>
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<arg name="parallel" value="8"/>
<exclude-pattern>index.php</exclude-pattern>
<exclude-pattern>class-gamajo-template-loader.php</exclude-pattern>
<exclude-pattern>src/Libraries/MboV5Api.php</exclude-pattern>
<exclude-pattern>uninstall.php</exclude-pattern>
<rule ref="WordPress-Core" >
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="WordPress-Docs" />
<exclude name="Internal.NoCodeFound">
<exclude-pattern>modal_body.php</exclude-pattern>
</exclude>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>
<!-- also note // @codingStandardsIgnoreStart and // @codingStandardsIgnoreEnd.-->