forked from johnbillion/user-switching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
63 lines (49 loc) · 2.26 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="User Switching">
<config name="testVersion" value="5.3-"/>
<exclude-pattern>*/.github/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/features/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress-Extra">
<!-- User Switching supports WordPress versions older than 4.4: -->
<exclude name="WordPress.WP.AlternativeFunctions.parse_url_parse_url" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode" />
<!-- User Switching supports WordPress versions older than 4.1: -->
<exclude name="WordPress.WP.AlternativeFunctions.json_encode_json_encode" />
<!-- Skip checks for naming and indentation because IDGAF: -->
<exclude name="WordPress.Files.FileName" />
<exclude name="PEAR.NamingConventions.ValidClassName" />
<exclude name="Generic.WhiteSpace.ScopeIndent" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<!-- These are all false positives: -->
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<!-- Sanity: -->
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property type="array" name="customAutoEscapedFunctions" value="bp_get_button"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="user-switching"/>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="3.7" />
</properties>
</rule>
</ruleset>