WordPress.org

Make WordPress Core

Opened 5 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#54686 closed task (blessed) (fixed)

Composer: allow the PHPCS plugin

Reported by: jrf Owned by: 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.


5 weeks ago

  • 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
4 weeks 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.

#3 @prbot
4 weeks ago

jrfnl commented on PR #2080:

Closing as merged via 52412

Note: See TracTickets for help on using tickets.