-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
39 lines (32 loc) · 1.7 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
<?xml version="1.0"?>
<ruleset name="SalesChamp">
<description>SalesChamp coding standard</description>
<arg name="tab-width" value="4"/>
<rule ref="./vendor/dotblue/codesniffer-ruleset/DotBlue/ruleset.xml">
<!-- We require doc blocks to include property names if applicable -->
<exclude name="DotBlue.PhpDoc.MethodParameters"/>
<exclude name="Generic.PHP.UpperCaseConstant"/>
<!-- We don't want to enforce bool over boolean -->
<exclude name="DotBlue.Conventions.BoolNaming"/>
<!-- Sometimes it makes sense to provide default values for parameters that are not at the end of argument list -->
<exclude name="PEAR.Functions.ValidDefaultValue.NotAtEnd"/>
<!-- require statements in tests -->
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
</rule>
<rule ref="Squiz.Arrays.ArrayDeclaration">
<!-- due to tab indent -->
<exclude name="Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.MultiLineNotAllowed"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.KeyNotAligned"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned"/>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<file>./src</file>
<arg name="encoding" value="utf8"/>
<arg name="extensions" value="php,phpt"/>
</ruleset>