-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
146 lines (133 loc) · 5.64 KB
/
Copy pathphpcs.xml
File metadata and controls
146 lines (133 loc) · 5.64 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Blockera Core Packages">
<description>Sniffs for WordPress plugins, with minor modifications for Core</description>
<!-- Check for cross-version support for PHP 7.0 and higher. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress.WP.I18n"/>
<config name="text_domain" value="blockera,default"/>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie.SpaceBeforeBrace">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName.UseUnderscores">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamComment">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamType">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment.WrongStyle">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.TimezoneChange.DeprecatedSniff">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PHPCompatibility.Classes.NewTypedProperties.Found">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.CodeAnalysis.EmptyStatement"/>
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="/"/>
</properties>
</rule>
<arg value="ps"/>
<arg name="extensions" value="php"/>
<!-- Cache the scan results and re-use those for unchanged files on the next scan. -->
<arg name="cache" value=".cache/phpcs.json"/>
<file>./packages</file>
<!-- Exclude generated files -->
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>./bin/*</exclude-pattern>
<exclude-pattern>./packages/**/tests/*</exclude-pattern>
<exclude-pattern>./packages/dev-phpunit/*</exclude-pattern>
<exclude-pattern>./packages/bootstrap/*</exclude-pattern>
<exclude-pattern>.patch/*</exclude-pattern>
<exclude-pattern>./tests/*</exclude-pattern>
<exclude-pattern>**/test/**</exclude-pattern>
<exclude-pattern>**/tests/**</exclude-pattern>
<!-- Exclude third party libraries -->
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>./source-code-block-editor/*</exclude-pattern>
<exclude-pattern>./source-code-wordpress/*</exclude-pattern>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineEndings.InvalidEOLChar">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClosingDeclarationComment.Missing">
<exclude-pattern>/*</exclude-pattern>
</rule>
</ruleset>