Skip to content

Commit a16b277

Browse files
jrfnlgrogy
authored andcommitted
Composer: allow the PHPCS plugin
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS. As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run. This adds the necessary configuration for that. Refs: * https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
1 parent 2ddc480 commit a16b277

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"replace": {
3131
"jakub-onderka/php-console-highlighter": "*"
3232
},
33+
"config": {
34+
"allow-plugins": {
35+
"dealerdirect/phpcodesniffer-composer-installer": true
36+
}
37+
},
3338
"scripts" : {
3439
"phplint": [
3540
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"

0 commit comments

Comments
 (0)