Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit e37d6a3

Browse files
committed
phpcs fixes
1 parent 7c4fb3b commit e37d6a3

File tree

5 files changed

+217
-31
lines changed

5 files changed

+217
-31
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/*

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"stevegrunwell/wp-enforcer": "^0.5.0"
4+
}
5+
}

composer.lock

+155
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Customize the rules WP Enforcer uses by editing this file according to PHP_CodeSniffer's
4+
ruleset.xml standard: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
5+
-->
6+
<ruleset name="WP-Enforcer">
7+
<description>Coding standards from WP Enforcer.</description>
8+
9+
<!-- FILES -->
10+
<exclude-pattern>phpcs.xml</exclude-pattern>
11+
<exclude-pattern>*/tests/*</exclude-pattern>
12+
<exclude-pattern>*/vendor/*</exclude-pattern>
13+
14+
<!--
15+
Don't get angry about checking files that don't contain code
16+
@link https://github.com/stevegrunwell/wp-enforcer/issues/12
17+
-->
18+
<rule ref="Internal.NoCodeFound">
19+
<severity>0</severity>
20+
</rule>
21+
22+
<rule ref="WordPress-Extra" />
23+
<rule ref="WordPress-Docs" />
24+
</ruleset>

0 commit comments

Comments
 (0)