-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
63 lines (53 loc) · 2.41 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="WooMinecraft" namespace="WMC\CS\Standard">
<!--
The content of the description tag is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->
<description>WooMinecraft Coding Standards</description>
<!--
If no files or directories are specified on the command line
your custom standard can specify what files should be checked
instead.
Note that file and directory paths specified in a ruleset are
relative to the ruleset's location, and that specifying any file or
directory path on the command line will ignore all file tags.
-->
<file>includes/</file>
<file>woominecraft.php</file>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/data/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*\.(inc|css|js)</exclude-pattern>
<!--
You can hard-code custom php.ini settings into your custom standard.
The following tag sets the memory limit to 64M.
-->
<ini name="memory_limit" value="64M"/>
<!--
If your helper classes need custom autoloading rules that you are
not able to include in other ways, you can hard-code files to include
before the ruleset is processed and any sniff classes have been loaded.
This is different to bootstrap files, which are loaded after the ruleset
has already been processed.
-->
<autoload>/vendor/autoload.php</autoload>
<!--
Relative paths can also be used everywhere absolute paths are used.
Make sure the reference starts with ./ or ../ so PHP_CodeSniffer
knows it is a relative path.
-->
<rule ref="./vendor/wp-coding-standards/wpcs/WordPress-Core">
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" />
</rule>
<!--
If you are including sniffs that are not installed, you can
reference the sniff class using an absolute or relative path
instead of using the sniff code.
-->
<!--<rule ref="/path/to/standards/Generic/Sniffs/Commenting/TodoSniff.php"/>-->
<!--<rule ref="../Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php"/>-->
</ruleset>