-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy path.phpcs.xml
57 lines (48 loc) · 2.36 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
<?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.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma" />
<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.OpenBraceNewLine" />
<exclude name="PSR2.Classes.PropertyDeclaration.SpacingAfterType" />
<exclude name="PSR2.Methods.FunctionCallSignature" />
<exclude name="PSR12.Traits.UseDeclaration" />
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<!-- function x() { return $x; } is ok -->
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore" />
<!-- <?php } ?> is ok -->
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent" />
</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>