2019-06-24 07:38:41 +08:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="October CMS">
|
|
|
|
<description>The coding standard for October CMS.</description>
|
|
|
|
<rule ref="PSR2">
|
2019-06-25 17:42:40 +08:00
|
|
|
<!--
|
|
|
|
Exceptions to the PSR-2 guidelines as per our Developer Guide:
|
|
|
|
https://octobercms.com/help/guidelines/developer#psr-exceptions
|
|
|
|
-->
|
2019-06-24 07:38:41 +08:00
|
|
|
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
|
2019-06-25 17:42:40 +08:00
|
|
|
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
|
|
|
|
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" />
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
|
|
|
<!--
|
|
|
|
Migration files do not need a namespace defined
|
|
|
|
-->
|
|
|
|
<exclude-pattern>*/database/migrations/*\.php</exclude-pattern>
|
2019-06-24 07:38:41 +08:00
|
|
|
</rule>
|
|
|
|
|
|
|
|
<file>bootstrap/</file>
|
|
|
|
<file>config/</file>
|
|
|
|
<file>modules/</file>
|
2019-06-25 17:42:40 +08:00
|
|
|
<file>plugins/october/demo/</file>
|
|
|
|
<file>tests/</file>
|
2019-06-24 07:38:41 +08:00
|
|
|
|
2019-06-25 17:42:40 +08:00
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
2019-06-24 07:38:41 +08:00
|
|
|
</ruleset>
|