-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
35 lines (30 loc) · 1.4 KB
/
phpcs.xml
File metadata and controls
35 lines (30 loc) · 1.4 KB
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
<?xml version="1.0"?>
<ruleset name="Haydi">
<description>WordPress Coding Standards for Haydi</description>
<file>.</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/unit/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<rule ref="WordPress">
<!--
Our file naming convention (class-audit-logger.php, etc.) is intentional
and differs from the WPCS expectation of class-haydi-audit-logger.php.
-->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<!--
Doc-comment requirements are not enforced: the methods already have
inline block comments where useful, and adding Squiz-style PHPDoc to
every method would be pure noise for this plugin size.
-->
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingReturn"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
</rule>
<config name="minimum_supported_wp_version" value="6.0"/>
</ruleset>