-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
84 lines (72 loc) · 3.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<ruleset name="tentypdev">
<arg name="colors" />
<arg value="s" />
<file>app</file>
<file>inc</file>
<file>resources/functions.php</file>
<rule ref="PSR12" />
<rule ref="WordPress">
<!-- Commenting -->
<exclude name="Squiz.Commenting.BlockComment" />
<exclude name="Squiz.Commenting.ClassComment" />
<exclude name="Squiz.Commenting.ClosingDeclarationComment" />
<exclude name="Squiz.Commenting.EmptyCatchComment" />
<exclude name="Squiz.Commenting.FileComment" />
<exclude name="Squiz.Commenting.FunctionComment" />
<exclude name="Squiz.Commenting.FunctionCommentThrowTag" />
<exclude name="Squiz.Commenting.VariableComment" />
<exclude name="Generic.Commenting.DocComment" />
<!-- Naming-->
<exclude name="WordPress.Files.FileName" />
<exclude name="WordPress.NamingConventions.ValidFunctionName" />
<exclude name="WordPress.NamingConventions.ValidVariableName" />
<!-- Indentation -->
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
<exclude name="Generic.Formatting.MultipleStatementAlignment" />
<!-- Spacing -->
<exclude name="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
<exclude name="NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine" />
<exclude name="NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis" />
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys" />
<exclude name="WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore" />
<exclude name="WordPress.WhiteSpace.CastStructureSpacing.NoSpaceBeforeOpenParenthesis" />
<!-- Other -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<exclude name="Universal.Operators.DisallowShortTernary" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment" />
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
</rule>
<!-- Naming -->
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps" />
<!-- Spacing -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<property name="requiredSpacesAfterOpen" value="0"/>
<property name="requiredSpacesBeforeClose" value="0"/>
</properties>
</rule>
<!-- Braces -->
<rule ref="Generic.Classes.OpeningBraceSameLine">
<severity>0</severity>
</rule>
<rule ref="PSR2.Classes.ClassDeclaration.OpenBraceNewLine">
<severity>5</severity>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie">
<severity>0</severity>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman">
<severity>5</severity>
</rule>
<!-- Other -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Formatting.SpaceAfterNot" />
</ruleset>