-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
86 lines (74 loc) · 3.18 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<ruleset
name="Master Whats Chat"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Coding standards ruleset.</description>
<!-- Include paths -->
<file>.</file>
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/Documentation/*</exclude-pattern>
<exclude-pattern>*/Design/*</exclude-pattern>
<!-- Scan args -->
<arg value="sp"/><!-- Show sniff and progress -->
<arg name="colors"/><!-- Show results with colors -->
<arg name="parallel" value="50"/><!-- Enables parallel processing when available for faster results. -->
<arg name="extensions" value="php"/><!-- Limit to PHP files -->
<arg name="warning-severity" value="0"/><!-- Warning severity -->
<!-- Configs -->
<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<config name="testVersion" value="7.3-"/>
<config name="minimum_supported_wp_version" value="5.0"/>
<!-- Rules -->
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound"/>
<rule ref="WordPress-Extra">
<exclude name="Generic"/>
<exclude name="Squiz"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="Generic.Commenting.DocComment.SpacingAfter"/>
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma"/>
<exclude name="PEAR.Functions.FunctionCallSignature"/>
<exclude name="Squiz.Commenting"/>
<exclude name="Squiz.PHP.DisallowSizeFunctionsInLoops.Found"/>
<exclude name="Squiz.WhiteSpace"/>
<exclude name="WordPress.Arrays"/>
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.NamingConventions"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.MissingUnslash"/>
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText"/>
<exclude name="WordPress.WhiteSpace"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="master-whats-chat"/>
<element value="library-textdomain"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="master-whats-chat"/>
</property>
</properties>
</rule>
<rule ref="WordPress-Docs">
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
</ruleset>