Merge branch 'master' into next
[GitHub/WoltLab/WCF.git] / CodeSniff / WCF / ruleset.xml
1 <?xml version="1.0"?>
2 <ruleset name="WCF">
3 <description>WoltLab Suite Coding Standard</description>
4 <exclude-pattern>*/zend/*</exclude-pattern>
5 <exclude-pattern>*/CodeSniff/*</exclude-pattern>
6 <exclude-pattern>*/parsedown/*</exclude-pattern>
7 <exclude-pattern>*/scssphp/*</exclude-pattern>
8 <exclude-pattern>*/api/*</exclude-pattern>
9
10 <rule ref="Generic.Classes.DuplicateClassName" />
11 <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
12 <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
13 <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
14 <rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
15 <rule ref="Generic.Files.ByteOrderMark" />
16 <rule ref="Generic.Files.EndFileNewline" />
17 <rule ref="Generic.Files.OneClassPerFile" />
18 <rule ref="Generic.Files.OneInterfacePerFile" />
19 <rule ref="Generic.Files.OneTraitPerFile" />
20 <rule ref="Generic.Formatting.DisallowMultipleStatements" />
21 <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
22 <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
23 <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
24 <rule ref="Generic.PHP.DisallowShortOpenTag" />
25 <rule ref="Generic.PHP.LowerCaseConstant" />
26 <rule ref="Generic.PHP.LowerCaseKeyword" />
27 <rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
28 <rule ref="Squiz.Asrrays.ArrayBracketSpacing" />
29 <rule ref="Squiz.Classes.LowercaseClassKeywords" />
30 <rule ref="Squiz.Classes.SelfMemberReference" />
31 <rule ref="Squiz.Classes.ValidClassName" />
32 <rule ref="Squiz.Commenting.DocCommentAlignment" />
33 <rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
34 <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
35 <rule ref="Squiz.ControlStructures.ForLoopDeclaration" />
36 <rule ref="Squiz.ControlStructures.LowercaseDeclaration" />
37 <rule ref="Squiz.Operators.IncrementDecrementUsage" />
38 <rule ref="Squiz.Operators.ValidLogicalOperators" />
39 <rule ref="Squiz.PHP.ForbiddenFunctions" />
40 <rule ref="Squiz.Scope.MethodScope" />
41 <rule ref="Squiz.Strings.EchoedStrings" />
42 <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace" />
43 <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing" />
44 <rule ref="WCF.Classes.ClassFileName" />
45 <rule ref="WCF.ControlStructures.ControlSignature" />
46 <rule ref="WCF.Functions.OpeningFunctionBraceKernighanRitchie" />
47 <rule ref="WCF.Methods.MethodDeclaration" />
48 <rule ref="WCF.Namespaces.ClassMustBeImported" />
49 <rule ref="WCF.Namespaces.UseDeclaration" />
50 <rule ref="WCF.WhiteSpace.SuperfluousWhitespace" />
51 <rule ref="Zend.Files.ClosingTag" />
52
53 <!-- Use Unix newlines -->
54 <rule ref="Generic.Files.LineEndings">
55 <properties>
56 <property name="eolChar" value="\n" />
57 </properties>
58 </rule>
59 </ruleset>