Skip to content

Add PHPCS ruleset from Plugin Check and fix issues #2048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@
"ext-gd": "Required to use Modern Image Format's Dominant_Color_Image_Editor_GD class",
"ext-zlib": "Required for compression of URL Metric data submitted to the REST API for storage in Optimization Detective"
},
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"extra": {
"installer-paths": {
"vendor/{$vendor}/{$name}/": [
"wpackagist-plugin/plugin-check"
]
}
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/extension-installer": "^1.3",
Expand All @@ -33,12 +50,14 @@
"wp-phpunit/wp-phpunit": "^6.5",
"yoast/phpunit-polyfills": "^4.0",
"phpstan/php-8-stubs": "^0.4.0",
"phpstan/phpstan-strict-rules": "^1.6"
"phpstan/phpstan-strict-rules": "^1.6",
"wpackagist-plugin/plugin-check": "^1.5"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"composer/installers": true
},
"platform": {
"php": "7.2"
Expand Down
Loading
Loading