-
Notifications
You must be signed in to change notification settings - Fork 79
/
phpcs.xml
54 lines (48 loc) · 2.15 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
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<ruleset name="LudicrousDB Coding Standards">
<arg name="extensions" value="php" />
<arg name="colors" />
<arg name="parallel" value="16" />
<arg value="s" />
<rule ref="WordPress-Core">
<exclude name="Generic.Commenting.DocComment.ShortNotCapital" />
<exclude name="PEAR.Functions.FunctionCallSignature" />
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.FileComment" />
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments" />
<exclude name="WordPress.DB.RestrictedFunctions" />
<exclude name="WordPress.PHP.DontExtract.extract_extract" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_wp_debug_backtrace_summary" />
<exclude name="WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_error_reporting" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_error_reporting" />
<exclude name="WordPress.PHP.StrictComparisons.LooseComparison" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fclose" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fsockopen" />
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="ludicrousdb" />
</property>
</properties>
</rule>
<rule ref="PHPCompatibilityWP">
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved" />
</rule>
<config name="testVersion" value="5.6-" />
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<properties>
<property name="validUndefinedVariableNames" value="wpdb server" />
</properties>
</rule>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>