-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
48 lines (47 loc) · 2.79 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress" namespace="WordPressCS\WordPress" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>WordPress Coding Standards</description>
<rule ref="WordPress-Extra">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/>
<exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="WordPress.Arrays.ArrayIndentation"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="WordPress.WhiteSpace.PrecisionAlignment"/>
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
<exclude name="WordPress.Arrays.CommaAfterArrayItem"/>
<exclude name="WordPress.WhiteSpace.DisallowInlineTabs"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
<exclude name="WordPress.Arrays.MultipleStatementAlignment"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Squiz.PHP.EmbeddedPhp"/>
<exclude name="Squiz.PHP.EmbeddedPhp.SpacingBefore"/>
<exclude name="Squiz.PHP.EmbeddedPhp.Indent"/>
<exclude name="Squiz.PHP.EmbeddedPhp.OpenTagIndent"/>
<exclude name="Squiz.PHP.EmbeddedPhp.SpacingAfter"/>
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<exclude name="WordPress.WhiteSpace.OperatorSpacing"/>
<exclude name="Squiz.Strings.ConcatenationSpacing"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing"/>
<exclude name="Generic.Formatting.SpaceAfterCast"/>
<exclude name="Squiz.WhiteSpace.CastSpacing"/>
<exclude name="WordPress.WhiteSpace.CastStructureSpacing"/>
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
<exclude name="Generic.WhiteSpace.ArbitraryParenthesesSpacing"/>
<exclude name="Squiz.WhiteSpace.SemicolonSpacing"/>
<exclude name="Squiz.WhiteSpace.ObjectOperatorSpacing"/>
<exclude name="Generic.Files.EndFileNewline.NotFound" />
<exclude name="Internal.Tokenizer.Exception" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
</rule>
</ruleset>