Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#54686 closed task (blessed) (fixed)

Composer: allow the PHPCS plugin

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

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.


3 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
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to 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:


3 years ago
#3

Closing as merged via 52412

Note: See TracTickets for help on using tickets.