MNT Update phpcs ruleset to use PSR-12 as a base

This commit is contained in:
Robbie Averill 2019-01-09 20:56:19 +01:00 committed by Guy Sartorelli
parent d21503c88c
commit c5f42d99a3
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A

View File

@ -5,20 +5,9 @@
<file>code</file> <file>code</file>
<file>tests</file> <file>tests</file>
<!-- base rules are PSR-2 --> <!-- base rules are PSR-12 -->
<rule ref="PSR2" > <rule ref="PSR12" >
<!-- Current exclusions --> <!-- Current exclusions -->
<exclude name="PSR1.Methods.CamelCapsMethodName" /> <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
<exclude name="PSR2.Classes.PropertyDeclaration" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration" /> <!-- causes php notice while linting -->
<exclude name="PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration.WrongOpenerdefault" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment" />
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<exclude name="Squiz.Scope.MethodScope" />
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="PEAR.Functions.ValidDefaultValue.NotAtEnd" />
</rule> </rule>
</ruleset> </ruleset>