-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
31 lines (26 loc) · 1.32 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="site_health_filter">
<description>Level Level Site Health Filter ruleset</description>
<config name="testVersion" value="7.4-"/>
<file>./src</file>
<file>./ll-site-health-filter.php</file>
<arg name="colors"/>
<arg value="sp"/>
<rule ref="PHPCompatibility"/>
<rule ref="Squiz.PHP.CommentedOutCode"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="WordPress-Extra">
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" clarification="Local files instead of always wp_remote_get" />
</rule>
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.Found" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" clarification="Wonolog uses this hook naming scheme" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" clarification="Customer will handle translations themselves" />
</rule>
</ruleset>