Compare commits

..

2 commits

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="SS3"> <ruleset name="Custom">
<description>Coding standard for SilverStripe 4.x</description> <description>A custom coding standard</description>
<!-- Don't sniff third party libraries --> <!-- Don't sniff third party libraries -->
<exclude-pattern>*/themes/simple/*</exclude-pattern> <exclude-pattern>*/themes/simple/*</exclude-pattern>
@ -10,16 +10,24 @@
<!-- Show progress and output sniff names on violation, and add colours --> <!-- Show progress and output sniff names on violation, and add colours -->
<arg value="sp"/> <arg value="sp"/>
<arg name="colors"/> <arg name="colors"/>
<arg name="report" value="csv"/>
<arg name="extensions" value="php/php,inc/php"/>
<!-- Use PSR-2 as a base standard --> <!-- Use PSR-2 as a base standard -->
<rule ref="PSR2"> <rule ref="PSR2">
<!-- Allow Windows-like EOL-characters -->
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
<!-- Allow classes to not declare a namespace --> <!-- Allow classes to not declare a namespace -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<!-- Allow namespaces without a following EOL-character -->
<exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/>
<!-- Allow files to have no EOL-character at the end of the file -->
<exclude name="PSR2.Files.EndFileNewline.NoneFound"/>
<!-- Allow underscores in class names --> <!-- Allow underscores in class names -->
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/> <exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<!-- Allow non camel cased method names --> <!-- Allow non camel cased method names -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
</rule> </rule>
<!-- Force files to have no EOL-character at the end of file -->
<rule ref="Generic.Files.EndFileNoNewline.Found"/>
</ruleset> </ruleset>