-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
40 lines (36 loc) · 1.35 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
40 lines (36 loc) · 1.35 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
<?xml version="1.0"?>
<ruleset name="Dynamic Functionalities">
<description>WordPress coding standards and PHP 7.4+ compatibility.</description>
<file>functionalities.php</file>
<file>uninstall.php</file>
<file>includes</file>
<arg name="basepath" value="." />
<arg name="colors" />
<arg value="ps" />
<arg name="extensions" value="php" />
<rule ref="WordPress-Core">
<exclude name="WordPress.NamingConventions.ValidVariableName" />
<exclude name="WordPress.PHP.YodaConditions" />
</rule>
<rule ref="WordPress-Docs">
<exclude name="Squiz.Commenting.FileComment" />
<exclude name="Squiz.Commenting.FunctionComment" />
<exclude name="Squiz.Commenting.InlineComment" />
</rule>
<rule ref="WordPress-Extra">
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter" />
<exclude name="Squiz.PHP.CommentedOutCode" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames" />
<exclude name="Universal.Operators.DisallowShortTernary" />
</rule>
<rule ref="PHPCompatibilityWP">
<properties>
<property name="testVersion" value="7.4-" />
</properties>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_operations">
<exclude-pattern>includes/storage/class-atomic-json-store.php</exclude-pattern>
</rule>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</ruleset>