forked from pressbooks/pressbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
28 lines (28 loc) · 1.35 KB
/
phpcs.ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<ruleset>
<!-- Use Pressbooks Coding Standards -->
<rule ref="vendor/pressbooks/coding-standards">
<!-- TODO: This should be enabled sooner than later... -->
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<!-- Exclude classes that override WP Core: -->
<exclude-pattern>/inc/admin/class-catalog-list-table.php</exclude-pattern>
<exclude-pattern>/inc/admin/class-network-managers-list-table.php</exclude-pattern>
<exclude-pattern>/api/endpoints/controller/*</exclude-pattern>
</rule>
<!-- Disable Side Effects and MissingNamespace rules for bootstrapping files: -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>/pressbooks.php</exclude-pattern>
<exclude-pattern>/functions.php</exclude-pattern>
<exclude-pattern>/compatibility.php</exclude-pattern>
</rule>
<rule ref="HM.Functions.NamespacedFunctions.MissingNamespace">
<exclude-pattern>/pressbooks.php</exclude-pattern>
<exclude-pattern>/functions.php</exclude-pattern>
<exclude-pattern>/compatibility.php</exclude-pattern>
</rule>
<!-- Disable all rules for these files: -->
<exclude-pattern>/hm-autoloader.php</exclude-pattern>
<exclude-pattern>*.blade.php</exclude-pattern>
</ruleset>