winter/phpcs.xml
Ben Thomson 5b80ad2501
Add additional test cases for PluginManager (#4427)
- Add dependency tests
- Add tests that check wrong casing in requirements
- Clean up current tests
- Provides test case for https://github.com/octobercms/october/pull/4337
2019-07-02 15:34:41 +08:00

30 lines
1.1 KiB
XML

<?xml version="1.0"?>
<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 and tests do not need a namespace defined
-->
<exclude-pattern>*/database/migrations/*\.php</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<file>bootstrap/</file>
<file>config/</file>
<file>modules/</file>
<file>plugins/october/demo/</file>
<file>tests/</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>