Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#54686 closed task (blessed) (fixed)

Composer: allow the PHPCS plugin

Reported by: jrf Owned by: SergeyBiryukov
Priority: normal Milestone: 5.9
Component: Build/Test Tools Version:
Severity: normal Keywords: has-patch
Cc: Focuses: coding-standards

Description

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. The GH PR patch adds the necessary configuration for that to prevent Composer asking every single time composer install or composer update is run.

Refs:

Change History (3)

This ticket was mentioned in ​PR #2080 on ​WordPress/wordpress-develop by ​jrfnl.


5 years ago
#1

  • Keywords has-patch added

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:

Trac ticket: https://core.trac.wordpress.org/ticket/54686

#2 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 52412:

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.

​jrfnl commented on ​PR #2080:


5 years ago
#3

Closing as merged via 52412

Note: See TracTickets for help on using tickets.