-
Notifications
You must be signed in to change notification settings - Fork 56
/
phpcs.xml
69 lines (62 loc) · 3.19 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
<?xml version="1.0"?>
<ruleset name="Gazelle Standard" namespace="Gazelle\Standard">
<description>The standard for writing code in gazelle</description>
<arg name="extensions" value="php" />
<arg name="colors"/>
<arg value="s"/>
<file>.</file>
<exclude-pattern>*/.docker/*</exclude-pattern>
<exclude-pattern>cache/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/static/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PSR12">
<exclude name="Generic.ControlStructures.InlineControlStructure" />
<exclude name="Generic.Files.LineLength" />
<exclude name="Generic.Formatting.DisallowMultipleStatements" />
<exclude name="Generic.Functions.FunctionCallArgumentSpacing" />
<exclude name="Generic.NamingConventions.UpperCaseConstantName" />
<exclude name="Generic.PHP.LowerCaseConstant" />
<exclude name="Generic.PHP.LowerCaseKeyword" />
<exclude name="Generic.PHP.LowerCaseType" />
<exclude name="Generic.WhiteSpace.ScopeIndent" />
<exclude name="PEAR.Functions.ValidDefaultValue" />
<exclude name="PSR1.Classes.ClassDeclaration" />
<exclude name="PSR1.Files.SideEffects" />
<exclude name="PSR1.Methods.CamelCapsMethodName" />
<exclude name="PSR2.Classes.ClassDeclaration" />
<exclude name="PSR2.Classes.PropertyDeclaration" />
<exclude name="PSR2.ControlStructures.ElseIfDeclaration" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration" />
<exclude name="PSR2.Files.ClosingTag" />
<exclude name="PSR2.Files.EndFileNewline" />
<exclude name="PSR2.Methods.FunctionCallSignature" />
<exclude name="PSR2.Methods.FunctionClosingBrace" />
<exclude name="PSR2.Methods.MethodDeclaration" />
<exclude name="PSR12.Classes.ClassInstantiation" />
<exclude name="PSR12.Classes.ClosingBrace" />
<exclude name="PSR12.ControlStructures.ControlStructureSpacing" />
<exclude name="PSR12.Files.FileHeader" />
<exclude name="PSR12.Files.ImportStatement" />
<exclude name="PSR12.Operators.OperatorSpacing" />
<exclude name="PSR12.Properties.ConstantVisibility" />
<exclude name="PSR12.Traits.UseDeclaration" />
<exclude name="Squiz.Classes.ValidClassName" />
<exclude name="Squiz.ControlStructures.ControlSignature" />
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration" />
<exclude name="Squiz.Functions.FunctionDeclaration" />
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration" />
<exclude name="Squiz.Scope.MethodScope" />
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace" />
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
<exclude name="Generic.PHP.DisallowShortOpenTag"/>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
</properties>
<type>warning</type>
</rule>
<rule ref="Generic.PHP.Syntax" />
</ruleset>