-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathphpcs.xml
More file actions
58 lines (51 loc) · 2.28 KB
/
phpcs.xml
File metadata and controls
58 lines (51 loc) · 2.28 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
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
<?xml version="1.0"?>
<ruleset name="Tribe Common Coding Standards">
<rule ref="StellarWP"/>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress">
<!-- Exclude Generic rules that overlap with or are overridden by StellarWP standards -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<!-- Exclude PEAR rules that overlap with StellarWP standards -->
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
<!-- Exclude WP rules that overlap with or are overridden by StellarWP standards -->
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<!-- covered by: StellarWP.XSS.EscapeOutput.OutputNotEscaped -->
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
<!-- covered by: StellarWP.Classes.ValidClassName.NotSnakeCase -->
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
<!-- covered by: StellarWP.CodeAnalysis.RedirectAndDie.Error -->
<exclude name="WordPressVIPMinimum.Security.ExitAfterRedirect.NoExit"/>
</rule>
<!-- Tweak this one - we always want them lined up. 1000 is the default, WP overrides that. -->
<rule ref="WordPress.Arrays.MultipleStatementAlignment">
<properties>
<property name="maxColumn" value="1000"/>
</properties>
</rule>
<rule ref="StellarWP.Classes.ValidClassName.NotSnakeCase">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!-- Enforce our specific plugin's text domain. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="tribe-common" />
</properties>
</rule>
<!-- General file/folder exclusions -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/docs/*</exclude-pattern>
<exclude-pattern>*/lang/*</exclude-pattern>
<exclude-pattern>*/changelog/*</exclude-pattern>
<exclude-pattern>*/tests/_support/_generated/*</exclude-pattern>
<exclude-pattern>*/tests/_data/*</exclude-pattern>
<exclude-pattern>*/src/deprecated/*</exclude-pattern>
</ruleset>