mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add exceptions to PHPCS as per developer guide
This commit is contained in:
parent
8d02c5e935
commit
53a825222d
20
phpcs.xml
20
phpcs.xml
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user