-
Notifications
You must be signed in to change notification settings - Fork 28
/
phpcs.xml
42 lines (38 loc) · 1.43 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
<?xml version="1.0"?>
<ruleset name="Indieweb-Post-Kinds">
<description>Indieweb Post Kinds Standards</description>
<file>./indieweb-post-kinds.php</file>
<file>./includes/</file>
<exclude-pattern>*/includes/*\.(inc|css|js|svg)</exclude-pattern>
<exclude-pattern>*/includes/parse-this/*</exclude-pattern>
<exclude-pattern>*/includes/parse-this/includes/*</exclude-pattern>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.0-"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_supported_wp_version" value="4.9"/>
<rule ref="WordPress">
<exclude name="WordPress.Security.ValidatedSanitizedInput" />
<exclude name="WordPress.Security.NonceVerification" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<exclude name="Squiz.Commenting"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false" />
</properties>
</rule>
<rule ref="WordPress-Extra" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="indieweb-post-kinds"/>
<element value="default"/>
</property>
</properties>
</rule>
<rule ref="VariableAnalysis"/>
<rule ref="WordPress.WP.DeprecatedFunctions" />
<rule ref="WordPress.WP.DeprecatedParameters" />
<rule ref="WordPress.WP.AlternativeFunctions" />
</ruleset>