2017-01-25 22:01:58 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ruleset name="SilverStripe">
|
|
|
|
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description>
|
|
|
|
|
2020-12-21 22:25:15 +01:00
|
|
|
<file>code</file>
|
|
|
|
<file>tests</file>
|
|
|
|
|
2017-01-25 22:01:58 +01:00
|
|
|
<!-- base rules are PSR-2 -->
|
|
|
|
<rule ref="PSR2" >
|
|
|
|
<!-- Current exclusions -->
|
|
|
|
<exclude name="PSR1.Methods.CamelCapsMethodName" />
|
|
|
|
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
|
|
|
|
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
|
|
|
|
<exclude name="Generic.Files.LineLength.TooLong" />
|
2020-11-13 01:50:44 +01:00
|
|
|
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
|
2017-01-25 22:01:58 +01:00
|
|
|
</rule>
|
2020-04-19 06:18:01 +02:00
|
|
|
|
|
|
|
<!-- use short array syntax -->
|
|
|
|
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
|
2017-01-25 22:01:58 +01:00
|
|
|
</ruleset>
|
|
|
|
|