forked from publishpress/PublishPress-Future
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml
38 lines (35 loc) · 1.62 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PublishPress"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Apply Coding Standards to all the plugin files</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg name="cache"/>
<ini name="memory_limit" value="256M"/>
<arg name="basepath" value="./"/>
<arg name="parallel" value="20"/>
<arg value="ps"/>
<file>.</file>
<exclude-pattern>*/\.github/*</exclude-pattern>
<exclude-pattern>/\.vscode/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/assets_wp/*</exclude-pattern>
<exclude-pattern>/bin/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/dist/*</exclude-pattern>
<exclude-pattern>/languages/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/twig/*</exclude-pattern>
<exclude-pattern>/builder/*</exclude-pattern>
<exclude-pattern>/RoboFile.php</exclude-pattern>
<rule ref="WordPressVIPMinimum">
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date" />
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
<exclude name="WordPress.DB.DirectDatabaseQuery.SchemaChange" />
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
</rule>
<rule ref="WordPress-VIP-Go"/>
<rule ref="VariableAnalysis"/>
<rule ref="PublishPressStandards"/>
<!-- <rule ref="PSR12"/>-->
</ruleset>