Skip to content

Commit 1e04d8a

Browse files
committed
Add plugin-check as dependency and incorporate ruleset
1 parent c69a0b2 commit 1e04d8a

File tree

3 files changed

+188
-6
lines changed

3 files changed

+188
-6
lines changed

composer.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@
2020
"ext-gd": "Required to use Modern Image Format's Dominant_Color_Image_Editor_GD class",
2121
"ext-zlib": "Required for compression of URL Metric data submitted to the REST API for storage in Optimization Detective"
2222
},
23+
"repositories": [
24+
{
25+
"type": "composer",
26+
"url": "https://wpackagist.org"
27+
}
28+
],
29+
"extra": {
30+
"installer-paths": {
31+
"vendor/{$vendor}/{$name}/": [
32+
"wpackagist-plugin/plugin-check"
33+
]
34+
}
35+
},
2336
"require-dev": {
2437
"phpcompatibility/php-compatibility": "^9.3",
2538
"phpstan/extension-installer": "^1.3",
@@ -33,12 +46,14 @@
3346
"wp-phpunit/wp-phpunit": "^6.5",
3447
"yoast/phpunit-polyfills": "^4.0",
3548
"phpstan/php-8-stubs": "^0.4.0",
36-
"phpstan/phpstan-strict-rules": "^1.6"
49+
"phpstan/phpstan-strict-rules": "^1.6",
50+
"wpackagist-plugin/plugin-check": "^1.5"
3751
},
3852
"config": {
3953
"allow-plugins": {
4054
"dealerdirect/phpcodesniffer-composer-installer": true,
41-
"phpstan/extension-installer": true
55+
"phpstan/extension-installer": true,
56+
"composer/installers": true
4257
},
4358
"platform": {
4459
"php": "7.2"

composer.lock

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

tools/phpcs/phpcs.ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<ruleset name="WPP-Base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
33
<description>Sniffs for WordPress plugins</description>
44

5+
<rule ref="../../vendor/wpackagist-plugin/plugin-check/vendor/plugin-check/phpcs-sniffs/PluginCheck/ruleset.xml" />
6+
<rule ref="./plugin-check.ruleset.xml"/>
7+
58
<rule ref="PHPCompatibility"/>
69
<config name="testVersion" value="7.2-"/>
710

0 commit comments

Comments
 (0)