Skip to content

Commit ab1fcf5

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 580024b commit ab1fcf5

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
@@ -26,6 +26,11 @@
2626
"replace": {
2727
"jakub-onderka/php-console-color": "*"
2828
},
29+
"config": {
30+
"allow-plugins": {
31+
"dealerdirect/phpcodesniffer-composer-installer": true
32+
}
33+
},
2934
"scripts" : {
3035
"phplint": [
3136
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"

0 commit comments

Comments
 (0)