-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
45 lines (34 loc) · 1.29 KB
/
phpcs.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<ruleset name="LifterLMS CLI">
<description>LifterLMS CLI rules for PHP_CodeSniffer</description>
<file>.</file>
<rule ref="WP_CLI_CS"/>
<rule ref="LifterLMS" />
<rule ref="WordPress-Extra">
<!-- To make autoloading easier, PSR-4 is mostly adhered to for file naming. -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Verify that everything in the global namespace is either namespaced or prefixed.
See: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#naming-conventions-prefix-everything-in-the-global-namespace -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<!-- Namespaces and non-namespaced classes. -->
<element value="LifterLMS"/>
<!-- Global variables and functions. -->
<element value="llms"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="lifterlms" />
</property>
</properties>
</rule>
<exclude-pattern>./bin/*</exclude-pattern>
<exclude-pattern>./docs/*</exclude-pattern>
<!-- These files need to be fixed -->
<exclude-pattern>src/Commands/Restful</exclude-pattern>
</ruleset>