-
-
Notifications
You must be signed in to change notification settings - Fork 129
/
phpcs.ruleset.xml
30 lines (28 loc) · 1.79 KB
/
phpcs.ruleset.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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.NoSilencedErrors.Discouraged" />
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_readfile" />
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents" />
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
<exclude name="Squiz.Scope.MethodScope.Missing" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_readfile" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound" />
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fwrite" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_mkdir" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/autoload.php</exclude-pattern>
</ruleset>