-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.xml
43 lines (39 loc) · 1.97 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
<?xml version="1.0"?>
<ruleset name="Sniffs for Micropackage">
<rule ref="WordPress">
<exclude name="Generic.Files.LowercasedFilename" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.Files.FileName" />
<exclude name="WordPress.Files.FileName.UnderscoresNotAllowed" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" />
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
<exclude name="WordPress.Security.NonceVerification.NoNonceVerification" />
<exclude name="WordPress.DB.SlowDBQuery" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" />
<exclude name="WordPress.VIP.RestrictedVariables.cache_constraints___SERVER__REMOTE_ADDR__" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain" />
<exclude name="WordPress.WP.GlobalVariablesOverride" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint" />
</rule>
<rule ref="PSR2.Methods.MethodDeclaration">
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
</rule>
<!-- PHPCompatibility -->
<rule ref="PHPCompatibility" />
<config name="testVersion" value="5.6-" />
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>