Make WordPress Core

Changeset 52412 for trunk/composer.json


Ignore:
Timestamp:
12/23/2021 08:10:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Allow the PHPCS plugin in Composer configuration.

The dealerdirect/phpcodesniffer-composer-installer Composer plugin is used to register external PHPCS standards with PHPCS.

As of Composer 2.2, Composer plugins need to be explicitly allowed to run. This commit adds the necessary configuration for that to prevent Composer asking every single time composer install or composer update is run.

Reference: Composer 2.2: More secure plugin execution.

Props jrf, johnbillion.
Fixes #54686.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r51598 r52412  
    2020        "yoast/phpunit-polyfills": "^1.0.1"
    2121    },
     22    "config": {
     23        "allow-plugins": {
     24            "dealerdirect/phpcodesniffer-composer-installer": true
     25        }
     26    },
    2227    "scripts": {
    2328        "compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source",
Note: See TracChangeset for help on using the changeset viewer.