1<?xml version="1.0"?> 2<ruleset name="PSR2Tabs"> 3 <description>PSR2 with tabs instead of spaces.</description> 4 <arg name="tab-width" value="4" /> 5 <rule ref="PSR2"> 6 7 <exclude name="Generic.Commenting.DocComment" /> 8 <exclude name="Generic.Files.LineLength.TooLong" /> 9 <exclude name="Generic.Files.LineLength.MaxExceeded" /> 10 <exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase)" /> 11 <exclude name="Generic.WhiteSpace.DisallowTabIndent" /> 12 13 <exclude name="PSR1.Files.SideEffects.FoundWithSymbols" /> 14 <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" /> 15 16 <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody" /> 17 <exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing" /> 18 <exclude name="PSR2.Classes.PropertyDeclaration.Underscore" /> 19 <exclude name="PSR2.Classes.PropertyDeclaration.VarUsed" /> 20 <exclude name="PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE" /> 21 <exclude name="PSR2.Methods.MethodDeclaration.Underscore" /> 22 23 <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" /> 24 <exclude name="Squiz.Scope.MethodScope.Missing" /> 25 <exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" /> 26 <exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" /> 27 28 </rule> 29 30 <rule ref="Generic.Formatting.SpaceAfterCast"> 31 <properties> 32 <property name="spacing" value="1" /> 33 </properties> 34 </rule> 35 36 <rule ref="Generic.WhiteSpace.DisallowSpaceIndent" /> 37 <rule ref="Generic.WhiteSpace.ScopeIndent"> 38 <properties> 39 <property name="indent" value="4" /> 40 <property name="tabIndent" value="true" /> 41 </properties> 42 </rule> 43</ruleset> 44