2017-04-27 21:28:35 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="SS3">
|
2017-04-27 21:33:07 +02:00
|
|
|
<description>Coding standard for SilverStripe 3.x</description>
|
2017-04-27 21:28:35 +02:00
|
|
|
|
2017-04-27 21:33:07 +02:00
|
|
|
<!-- Don't sniff third party libraries -->
|
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/thirdparty/*</exclude-pattern>
|
2017-04-27 21:28:35 +02:00
|
|
|
|
2017-04-27 21:33:07 +02:00
|
|
|
<!-- Show progress and output sniff names on violation, and add colours -->
|
|
|
|
<arg value="sp"/>
|
|
|
|
<arg name="colors"/>
|
2017-04-27 21:28:35 +02:00
|
|
|
|
2017-04-27 21:33:07 +02:00
|
|
|
<!-- Use PSR-2 as a base standard -->
|
|
|
|
<rule ref="PSR2">
|
|
|
|
<!-- Allow classes to not declare a namespace -->
|
|
|
|
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
|
2017-04-27 21:28:35 +02:00
|
|
|
|
2017-04-27 21:33:07 +02:00
|
|
|
<!-- Allow underscores in class names -->
|
|
|
|
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
|
2017-04-27 21:28:35 +02:00
|
|
|
|
2017-04-27 21:33:07 +02:00
|
|
|
<!-- Allow non camel cased method names -->
|
|
|
|
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
|
|
|
|
</rule>
|
2017-04-27 21:28:35 +02:00
|
|
|
</ruleset>
|