1<?xml version="1.0"?>
2<ruleset name="PHP_CodeSniffer">
3 <description>The coding standard for PHP_CodeSniffer itself.</description>
4 <exclude-pattern>*/Tests/*</exclude-pattern>
5
6 <!-- Include the whole PEAR standard -->
7 <rule ref="PEAR"/>
8
9 <!-- Include some sniffs from other standards that don't conflict with PEAR -->
10 <rule ref="Squiz.Arrays.ArrayBracketSpacing" />
11 <rule ref="Squiz.Arrays.ArrayDeclaration" />
12 <rule ref="Squiz.Commenting.ClosingDeclarationComment" />
13 <rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
14 <rule ref="Squiz.Commenting.BlockComment" />
15 <rule ref="Squiz.Commenting.DocCommentAlignment" />
16 <rule ref="Squiz.Commenting.EmptyCatchComment" />
17 <rule ref="Squiz.Commenting.InlineComment" />
18 <rule ref="Squiz.Commenting.LongConditionClosingComment" />
19 <rule ref="Squiz.Commenting.PostStatementComment" />
20 <rule ref="Squiz.Formatting.OperatorBracket" />
21 <rule ref="Squiz.Operators.ComparisonOperatorUsage" />
22 <rule ref="Squiz.PHP.DisallowInlineIf" />
23 <rule ref="Squiz.Strings.ConcatenationSpacing" />
24 <rule ref="Squiz.WhiteSpace.ControlStructureSpacing" />
25 <rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace" />
26 <rule ref="Squiz.WhiteSpace.FunctionSpacing" />
27 <rule ref="Squiz.WhiteSpace.OperatorSpacing" />
28 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
29 <rule ref="Generic.Commenting.Todo"/>
30 <rule ref="Generic.ControlStructures.InlineControlStructure"/>
31 <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
32 <rule ref="Generic.Formatting.SpaceAfterCast"/>
33 <rule ref="Generic.NamingConventions.ConstructorName"/>
34 <rule ref="Generic.PHP.DeprecatedFunctions"/>
35 <rule ref="Generic.PHP.LowerCaseKeyword"/>
36 <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
37 <rule ref="PSR2.Files.EndFileNewline"/>
38 <rule ref="Zend.Files.ClosingTag"/>
39
40 <!-- Only one argument per line in multi-line function calls -->
41 <rule ref="PEAR.Functions.FunctionCallSignature">
42  <properties>
43   <property name="allowMultipleArguments" value="false"/>
44  </properties>
45 </rule>
46
47 <!-- Have 12 chars padding maximum and always show as errors -->
48 <rule ref="Generic.Formatting.MultipleStatementAlignment">
49  <properties>
50   <property name="maxPadding" value="12"/>
51   <property name="error" value="true"/>
52  </properties>
53 </rule>
54
55</ruleset>
56