forked from felixarntz/plugin-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (28 loc) · 1.22 KB
/
phpcs.xml
File metadata and controls
33 lines (28 loc) · 1.22 KB
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
<?xml version="1.0"?>
<ruleset name="Leaves And Love Plugin Library PHPCS Rules">
<description>A custom set of PHPCS rules for the Leaves And Love Plugin Library.</description>
<file>./plugin-loader.php</file>
<file>./src</file>
<exclude-pattern>*/src/translations/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<arg value="sv"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.VIP.RestrictedFunctions"/>
<exclude name="WordPress.VIP.RestrictedVariables"/>
<exclude name="WordPress.VIP.SuperGlobalInputUsage"/>
<exclude name="WordPress.VIP.ValidatedSanitizedInput"/>
<exclude name="WordPress.Variables.GlobalVariables.OverrideProhibited"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="exact" value="false"/>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
<property name="ignoreIndentationTokens" type="array" value="T_HEREDOC,T_NOWDOC,T_INLINE_HTML"/>
</properties>
</rule>
</ruleset>