roe-pressbooks/phpcs.ruleset.xml

18 lines
702 B
XML

<?xml version="1.0"?>
<ruleset>
<!-- Use Pressbooks Coding Standards -->
<rule ref="vendor/pressbooks/coding-standards" />
<rule ref="PSR1.Methods.CamelCapsMethodName">
<!-- Exclude classes that override WP Core: -->
</rule>
<!-- Disable Side Effects and MissingNamespace rules for bootstrapping files: -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>/roe-pressbooks.php</exclude-pattern>
</rule>
<rule ref="HM.Functions.NamespacedFunctions.MissingNamespace">
<exclude-pattern>/roe-pressbooks.php</exclude-pattern>
</rule>
<!-- Disable all rules for these files: -->
<exclude-pattern>*.blade.php</exclude-pattern>
</ruleset>