Skip to content

Commit 8da0c1f

Browse files
committed
Added wordpress-extra ruleset to PHPCS
1 parent fb3d479 commit 8da0c1f

File tree

3 files changed

+42
-80
lines changed

3 files changed

+42
-80
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
2+
"name": "brainstormforce/custom-typekit-fonts",
3+
"description": "Custom Adobe Fonts allows you to extends the fonts supports from the Adobe Fonts.",
24
"require-dev": {
35
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
4-
"wp-coding-standards/wpcs": "dev-master",
56
"phpcompatibility/phpcompatibility-wp": "*"
67
},
7-
"require": {
8+
"scripts": {
9+
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
10+
"lint": "phpcs --standard=phpcs.xml.dist --report-summary --report-source"
811
}
912
}
13+

composer.lock

Lines changed: 34 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
77
</rule>
88
<rule ref="PHPCompatibility"/>
9-
<config name="testVersion" value="5.2-"/>
9+
<config name="testVersion" value="5.3-"/>
1010

1111
<rule ref="WordPress-Core" />
1212
<rule ref="WordPress-Docs" />
13+
<rule ref="WordPress-Extra" />
1314

1415
<!-- Check all PHP files in directory tree by default. -->
1516
<arg name="extensions" value="php"/>

0 commit comments

Comments
 (0)