forked from OPSnet/Gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
63 lines (54 loc) · 2.68 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
<?xml version="1.0"?>
<ruleset name="Orpheus Standard" namespace="Orpheus\Standard">
<description>The standard for writing code for Orpheus</description>
<arg name="extensions" value="php" />
<arg name="colors"/>
<arg value="s"/>
<file>.</file>
<exclude-pattern>cache/*</exclude-pattern>
<exclude-pattern>*/.docker/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/sass/*</exclude-pattern>
<exclude-pattern>*/static/*</exclude-pattern>
<exclude-pattern>*/templates/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength" />
<exclude name="Generic.Formatting.DisallowMultipleStatements" />
<exclude name="Generic.Functions.FunctionCallArgumentSpacing" />
<exclude name="Generic.NamingConventions.UpperCaseConstantName" />
<exclude name="Generic.WhiteSpace.ScopeIndent" />
<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.Methods.FunctionCallSignature" />
<exclude name="PSR2.Methods.FunctionClosingBrace" />
<exclude name="PSR12.Classes.ClassInstantiation" />
<exclude name="PSR12.Classes.ClosingBrace" />
<exclude name="PSR12.ControlStructures.ControlStructureSpacing" />
<exclude name="PSR12.Files.FileHeader" />
<exclude name="PSR12.Operators.OperatorSpacing" />
<exclude name="PSR12.Properties.ConstantVisibility" />
<exclude name="PSR12.Traits.UseDeclaration" />
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace" />
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace" />
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" extend="true">
<element key="each" value="null"/>
<element key="eval" value="null"/>
<element key="extract" value="null"/>
</property>
</properties>
<type>warning</type>
</rule>
<rule ref="Generic.PHP.Syntax" />
</ruleset>