forked from NamelessMC/Nameless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
76 lines (55 loc) · 2.74 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
70
71
72
73
74
75
76
<?xml version="1.0"?>
<ruleset name="NamelessMC Coding Standards">
<description>A custom ruleset for the Kirki project based on the WordPress Coding Standards and PHPCompatibility.</description>
<!-- Only check PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="sp"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<file>.</file>
<exclude-pattern>vendor/</exclude-pattern>
<rule ref="Zend"/>
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<rule ref="Generic.Files.LineLength.MaxExceeded">
<exclude name="Generic.Files.LineLength.MaxExceeded"/>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.NotCamelCaps">
<exclude name="Zend.NamingConventions.ValidVariableName.NotCamelCaps"/>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine">
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
</rule>
<rule ref="PEAR.Classes.ClassDeclaration.OpenBraceNewLine">
<exclude name="PEAR.Classes.ClassDeclaration.OpenBraceNewLine"/>
</rule>
<rule ref="Generic.Files.LineEndings.InvalidEOLChar">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.MemberVarNotCamelCaps">
<exclude name="Zend.NamingConventions.ValidVariableName.MemberVarNotCamelCaps"/>
</rule>
<rule ref="Generic.WhiteSpace.DisallowTabIndent.TabsUsed">
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.StringVarNotCamelCaps">
<exclude name="Zend.NamingConventions.ValidVariableName.StringVarNotCamelCaps"/>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.ContainsNumbers">
<exclude name="Zend.NamingConventions.ValidVariableName.ContainsNumbers"/>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers">
<exclude name="Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers"/>
</rule>
<rule ref="Squiz.Functions.GlobalFunction.Found">
<exclude name="Squiz.Functions.GlobalFunction.Found"/>
</rule>
</ruleset>