-
Notifications
You must be signed in to change notification settings - Fork 13
/
phpcs.xml
39 lines (35 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
<?xml version="1.0"?>
<ruleset name="Syndication Links Ruleset">
<description>Syndication Link Standards</description>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<file>./includes/</file>
<file>./syndication-links.php</file>
<exclude-pattern>*/includes/class-social-plugins.php</exclude-pattern>
<!-- Only check the PHP, CSS and SCSS files. -->
<arg name="extensions" value="php,css,scss/css"/>
<arg name="colors"/>
<arg value="sp"/>
<arg name="parallel" value="50"/>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.0-"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_supported_wp_version" value="4.9"/>
<rule ref="WordPress.WP.DeprecatedFunctions" />
<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="VariableAnalysis"/>
<rule ref="WordPress-Extra" />
<rule ref="WordPress.WP.I18n"/>
<config name="text_domain" value="syndication-links,default"/>
</ruleset>