Add exceptions to PHPCS as per developer guide

This commit is contained in:
Ben Thomson 2019-06-25 17:42:40 +08:00
parent 8d02c5e935
commit 53a825222d
No known key found for this signature in database
GPG Key ID: BD1BF04E944DBD80

View File

@ -2,15 +2,27 @@
<ruleset name="October CMS">
<description>The coding standard for October CMS.</description>
<rule ref="PSR2">
<!--
Exceptions to the PSR-2 guidelines as per our Developer Guide:
https://octobercms.com/help/guidelines/developer#psr-exceptions
-->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<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>
</rule>
<file>bootstrap/</file>
<file>config/</file>
<file>modules/</file>
<file>tests</file>
<file>plugins/october/demo/</file>
<file>tests/</file>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>storage/</exclude-pattern>
<exclude-pattern>plugins/</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>