forked from BitLucid/ninjawars
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
73 lines (73 loc) · 3.48 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
<?xml version="1.0"?>
<!-- To chec, the rules in place, run command: phpcs /srv/ninjawars/deploy/lib/RouteNotFoundException.php -->
<ruleset>
<file>deploy/lib</file>
<file>deploy/tests</file>
<exclude-pattern>*/deploy/vendor/*</exclude-pattern>
<exclude-pattern>*/deploy/www/*\.(inc|css|js)$</exclude-pattern>
<exclude-pattern>*/deploy/tests/integration/CharacterTest.php$</exclude-pattern>
<exclude-pattern>*/deploy/tests/*\.php$</exclude-pattern>
<exclude-pattern>*/deploy/tests/*$</exclude-pattern>
<exclude-pattern>*/deploy/lib/plugins/*$</exclude-pattern>
<!-- Include the whole PEAR standard -->
<rule ref="PEAR">
<exclude name="PEAR.Functions.FunctionDeclaration"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName"/>
<exclude name="PEAR.NamingConventions.ValidVariableName"/>
<exclude name="PEAR.Classes.ClassDeclaration"/>
<exclude name="PEAR.Commenting.ClassComment"/>
<exclude name="PEAR.Commenting.InlineComment"/>
<exclude name="PEAR.Commenting.FileComment.MissingCategoryTag"/>
<exclude name="PEAR.ControlStructures.ControlSignature"/>
<exclude name="PEAR.Commenting.FileComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingVersion"/>
<exclude name="PEAR.Functions.FunctionCallSignature"/>
<exclude name="PEAR.WhiteSpace.ScopeClosingBrace"/>
<exclude name="PEAR.WhiteSpace.ScopeIndent"/>
<exclude name="PEAR.WhiteSpace.ObjectOperatorIndent"/>
</rule>
<!--
<rule ref="PEAR">
<exclude name="PEAR.Functions.FunctionCallSignature"/>
<exclude name="PEAR"/>
</rule>
-->
<rule ref="Squiz.Classes.SelfMemberReference"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="PEAR.Functions.ValidDefaultValue"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
<rule ref="Generic.Commenting.Fixme"/>
<!-- Include some sniffs from other standards that don't conflict with PEAR -->
<!--
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Arrays.ArrayDeclaration"/>
<rule ref="Squiz.ControlStructures.ControlSignature"/>
<rule ref="Squiz.ControlStructures.ElseIfDeclaration"/>
<rule ref="Squiz.Operators.ComparisonOperatorUsage"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
-->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.NamingConventions.ConstructorName"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
<rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/>
<rule ref="PSR2.Classes.PropertyDeclaration"/>
<rule ref="PSR2.Files.EndFileNewline"/>
<rule ref="Zend.Files.ClosingTag"/>
<rule ref='Squiz'>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore" />
<exclude name="Squiz"/>
</rule>
<rule ref="PSR2">
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
</rule>
</ruleset>