xref: /dokuwiki/_test/phpcs_MigrationAdjustments.xml (revision 36faf6960da95d20701a18669dffb86c9d8fc6b5)
1*36faf696SMichael Große<?xml version="1.0"?>
2*36faf696SMichael Große<ruleset name="Migration Adjustments for the DokuWiki Coding Standard Standard" namespace="DokuWiki\CS\Standard">
3*36faf696SMichael Große    <description>These are exceptions to the Coding Standard used for DokuWiki that are intended to be removed over time.</description>
4*36faf696SMichael Große
5*36faf696SMichael Große    <!-- rules on top of PSR-12 -->
6*36faf696SMichael Große    <rule ref="./phpcs.xml">
7*36faf696SMichael Große        <!-- Rules with automatic fixes that we want to adhere to, but currently don't -->
8*36faf696SMichael Große        <exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine"/>
9*36faf696SMichael Große        <exclude name="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma"/>
10*36faf696SMichael Große        <exclude name="Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma"/>
11*36faf696SMichael Große        <exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma"/>
12*36faf696SMichael Große        <exclude name="Generic.PHP.LowerCaseKeyword.Found"/>
13*36faf696SMichael Große        <exclude name="Generic.PHP.LowerCaseConstant.Found"/>
14*36faf696SMichael Große        <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/>
15*36faf696SMichael Große        <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
16*36faf696SMichael Große        <exclude name="Generic.WhiteSpace.IncrementDecrementSpacing.SpaceAfterDecrement"/>
17*36faf696SMichael Große        <exclude name="Generic.WhiteSpace.IncrementDecrementSpacing.SpaceAfterIncrement"/>
18*36faf696SMichael Große
19*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"/>
20*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword"/>
21*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
22*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace"/>
23*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.NoSpaceBeforeArrow"/>
24*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.NoSpaceAfterArrow"/>
25*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpacingBeforeAs"/>
26*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterSecond"/>
27*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForLoopDeclaration.NoSpaceAfterSecond"/>
28*36faf696SMichael Große        <exclude name="Squiz.ControlStructures.ForLoopDeclaration.NoSpaceAfterFirst"/>
29*36faf696SMichael Große        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg"/>
30*36faf696SMichael Große        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals"/>
31*36faf696SMichael Große        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterReference"/>
32*36faf696SMichael Große        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose"/>
33*36faf696SMichael Große        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals"/>
34*36faf696SMichael Große        <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
35*36faf696SMichael Große        <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/>
36*36faf696SMichael Große        <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine"/>
37*36faf696SMichael Große        <exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
38*36faf696SMichael Große        <exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose"/>
39*36faf696SMichael Große        <exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
40*36faf696SMichael Große        <exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent"/>
41*36faf696SMichael Große        <exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
42*36faf696SMichael Große
43*36faf696SMichael Große        <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
44*36faf696SMichael Große        <exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
45*36faf696SMichael Große        <exclude name="PSR2.Classes.PropertyDeclaration.StaticBeforeVisibility"/>
46*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
47*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace"/>
48*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed"/>
49*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.SwitchDeclaration.BreakIndent"/>
50*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine"/>
51*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE"/>
52*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonDEFAULT"/>
53*36faf696SMichael Große        <exclude name="PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonCASE"/>
54*36faf696SMichael Große        <exclude name="PSR2.Files.EndFileNewline.TooMany"/>
55*36faf696SMichael Große        <exclude name="PSR2.Files.EndFileNewline.NoneFound"/>
56*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
57*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.EmptyLine"/>
58*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket"/>
59*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.SpaceBeforeOpenBracket"/>
60*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.CloseBracketLine"/>
61*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket"/>
62*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket"/>
63*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionCallSignature.MultipleArguments"/>
64*36faf696SMichael Große        <exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose"/>
65*36faf696SMichael Große        <exclude name="PSR2.Methods.MethodDeclaration.StaticBeforeVisibility"/>
66*36faf696SMichael Große        <exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/>
67*36faf696SMichael Große        <exclude name="PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse"/>
68*36faf696SMichael Große
69*36faf696SMichael Große        <exclude name="PSR12.Classes.ClassInstantiation.MissingParentheses"/>
70*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.BooleanOperatorPlacement.FoundMixed"/>
71*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
72*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/>
73*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.ControlStructureSpacing.LineIndent"/>
74*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
75*36faf696SMichael Große        <exclude name="PSR12.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace"/>
76*36faf696SMichael Große        <exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
77*36faf696SMichael Große        <exclude name="PSR12.Operators.OperatorSpacing.NoSpaceBefore"/>
78*36faf696SMichael Große        <exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
79*36faf696SMichael Große
80*36faf696SMichael Große        <exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
81*36faf696SMichael Große    </rule>
82*36faf696SMichael Große
83*36faf696SMichael Große    <!-- for now we mix declarations and execution here (mostly for defines) -->
84*36faf696SMichael Große    <rule ref="PSR1.Files.SideEffects">
85*36faf696SMichael Große        <exclude-pattern>*/index.php</exclude-pattern>
86*36faf696SMichael Große        <exclude-pattern>*/inc/parserutils.php</exclude-pattern>
87*36faf696SMichael Große        <exclude-pattern>*/inc/mail.php</exclude-pattern>
88*36faf696SMichael Große        <exclude-pattern>*/inc/init.php</exclude-pattern>
89*36faf696SMichael Große        <exclude-pattern>*/inc/farm.php</exclude-pattern>
90*36faf696SMichael Große        <exclude-pattern>*/inc/fulltext.php</exclude-pattern>
91*36faf696SMichael Große        <exclude-pattern>*/inc/pluginutils.php</exclude-pattern>
92*36faf696SMichael Große        <exclude-pattern>*/inc/indexer.php</exclude-pattern>
93*36faf696SMichael Große        <exclude-pattern>*/inc/Mailer.class.php</exclude-pattern>
94*36faf696SMichael Große        <exclude-pattern>*/doku.php</exclude-pattern>
95*36faf696SMichael Große        <exclude-pattern>*/install.php</exclude-pattern>
96*36faf696SMichael Große        <exclude-pattern>*/inc/utf8.php</exclude-pattern>
97*36faf696SMichael Große        <exclude-pattern>*/feed.php</exclude-pattern>
98*36faf696SMichael Große        <exclude-pattern>*/inc/load.php</exclude-pattern>
99*36faf696SMichael Große        <exclude-pattern>*/bin/*.php</exclude-pattern>
100*36faf696SMichael Große        <exclude-pattern>*/lib/exe/*.php</exclude-pattern>
101*36faf696SMichael Große    </rule>
102*36faf696SMichael Große
103*36faf696SMichael Große</ruleset>
104