-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathphpcs.xml
91 lines (69 loc) · 2.89 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0"?>
<ruleset name="ErfurtCS">
<description>The combination of codingstandards used for Ontowiki.</description>
<file>./library/Erfurt/</file>
<arg name="extensions" value="php" />
<exclude-pattern>*/libraries/*</exclude-pattern>
<exclude-pattern>*/Parser/Sparql10/*</exclude-pattern>
<exclude-pattern>*/Parser/Sparql11/*</exclude-pattern>
<!--<rule ref="Zend"/>-->
<!-- Sniffs from the integrated Zend Standard -->
<!-- #################### strict #################### -->
<!-- spaces in functions calls -->
<!-- now integrated in Erfurt standard to make specific adjustments -->
<!-- <rule ref="Generic.Functions.FunctionCallArgumentSpacing" /> -->
<!-- braces in functions -->
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman" />
<!-- shortopentags in php files -->
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<!-- class declaration -->
<rule ref="PEAR.Classes.ClassDeclaration" />
<!-- control structures -->
<rule ref="PEAR.ControlStructures.ControlSignature" />
<!-- normal and multi-line function calls signature -->
<rule ref="PEAR.Functions.FunctionCallSignature" />
<!-- function default value -->
<rule ref="PEAR.Functions.ValidDefaultValue" />
<!-- scope closing -->
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace" />
<!-- function in global scope (warning) -->
<rule ref="Squiz.Functions.GlobalFunction" />
<!-- closing tag in php files -->
<rule ref="Zend.Files.ClosingTag.NotAllowed">
<exclude-pattern>*/Sniffs/*</exclude-pattern>
</rule>
<!-- camel caps and underscore in variables -->
<rule ref="Zend.NamingConventions.ValidVariableName" />
<!-- tab used for indentation -->
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
<!-- line-length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="100"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<!-- #################### loose #################### -->
<!-- line-length (warning) -->
<rule ref="Generic.Files.LineLength.TooLong">
<severity>3</severity>
</rule>
<!-- Use Unix newlines -->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="Generic.Files.LineEndings.InvalidEOLChar">
<severity>3</severity>
</rule>
<!-- #################### Erfurt #################### -->
<!-- whtespace -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
<!-- deprecated functions -->
<rule ref="Generic.PHP.DeprecatedFunctions" />
<!-- non executable functions -->
<rule ref="Squiz.PHP.NonExecutableCode" />
<!-- Erfurt Custom Sniffs -->
<rule ref="./tests/CodeSniffer/Standards/Erfurt/"/>
</ruleset>