-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
85 lines (67 loc) · 3.24 KB
/
ruleset.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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="TYPO3Flow">
<description>This package contains a selection of sniffs which implements the Coding Guidelines for TYPO3 Flow which was former known as FLOW3. For more information have a look at http://forge.typo3.org/projects/team-php_codesniffer</description>
<!-- Exclude patterns -->
<exclude-pattern>*/Migrations/*</exclude-pattern>
<exclude-pattern>*/Resources/Private/PHP/*</exclude-pattern>
<!-- Arrays -->
<rule ref="Squiz.Arrays.ArrayBracketSpacing" />
<!-- Classes -->
<rule ref="../TYPO3SniffPool/Sniffs/Classes/LowercaseClassKeywordsSniff.php" />
<rule ref="Squiz.Classes.SelfMemberReference" />
<rule ref="Generic.Classes.DuplicateClassName" />
<!-- CodeAnalysis -->
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
<!-- Commenting -->
<rule ref="PEAR.Commenting.InlineComment" />
<rule ref="../TYPO3SniffPool/Sniffs/Commenting/DoubleSlashCommentsInNewLineSniff.php" />
<rule ref="../TYPO3SniffPool/Sniffs/Commenting/SpaceAfterDoubleSlashSniff.php" />
<!-- Control structures -->
<rule ref="Generic.ControlStructures.InlineControlStructure" />
<rule ref="Squiz.ControlStructures.ControlSignature" />
<rule ref="../TYPO3SniffPool/Sniffs/ControlStructures/DisallowElseIfConstructSniff.php" />
<!-- Debug -->
<!-- Files -->
<rule ref="Generic.Files.OneClassPerFile" />
<rule ref="Generic.Files.OneInterfacePerFile" />
<rule ref="Generic.Files.ByteOrderMark" />
<rule ref="Generic.Files.LineEndings" />
<!--Formatting -->
<!-- Functions -->
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
<!-- Loops -->
<!-- NamingConventions -->
<rule ref="Generic.NamingConventions.ConstructorName" />
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
<!-- Objects -->
<!-- Operators -->
<!-- PHP -->
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<rule ref="../TYPO3SniffPool/Sniffs/PHP/DisallowMultiplePHPTagsSniff.php" />
<rule ref="Squiz.PHP.NonExecutableCode" />
<rule ref="Generic.PHP.DeprecatedFunctions" />
<rule ref="Squiz.PHP.Eval">
<exclude-pattern>*/Tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.GlobalKeyword" />
<rule ref="Generic.PHP.UpperCaseConstant" />
<!-- Scope -->
<rule ref="Squiz.Scope.MemberVarScope" />
<rule ref="Squiz.Scope.MethodScope" />
<!-- Strings -->
<rule ref="../TYPO3SniffPool/Sniffs/Strings/UnnecessaryStringConcatSniff.php" />
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
<rule ref="../TYPO3SniffPool/Sniffs/Strings/ConcatenationSpacingSniff.php" />
<!-- Whitespaces -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
<rule ref="../TYPO3SniffPool/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php" />
<rule ref="Squiz.WhiteSpace.SemicolonSpacing" />
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing" />
<rule ref="../TYPO3SniffPool/Sniffs/WhiteSpace/AssignmentArithmeticAndComparisonSpaceSniff.php" />
<rule ref="../TYPO3SniffPool/Sniffs/WhiteSpace/AsteriksWhitespacesSniff.php" />
</ruleset>