-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.phpcs.xml
43 lines (40 loc) · 1.85 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
40
41
42
43
<?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>/\.idea/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/tests-old/*</exclude-pattern>
<exclude-pattern>/.wordpress-org/*</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>/dev-workspace/*</exclude-pattern>
<exclude-pattern>/cache/*</exclude-pattern>
<exclude-pattern>/.cache/*</exclude-pattern>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
<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" />
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
</rule>
<rule ref="WordPress-VIP-Go"/>
<rule ref="VariableAnalysis"/>
<rule ref="PublishPressStandards"/>
</ruleset>