Problem/Motivation

Drupal core does not comply with the Drupal Coding standards. This is for the next stage of work, the fist being done in Issue #2571965: [meta] Fix PHP coding standards in core, stage 1 and #1518116: [meta] Make Core pass Coder Review.

You can check the current state of coding standards compliance using phpcs and coder from the command line:

$ cd /path/to/drupal/root/
$ composer install
$ composer phpcs

Proposed resolution

Fix coding standards by sniff. Some sniffs will require child issues for both sub-sniffs and to scope the fix to sections of core.

Remaining tasks

Meta or plans for sniffs

Fixes by sniff

Sniff enabled, fix violations in ignore lines

Format of phpcs.xml

Misc

Other

All core issues tagged 'Coding standards'

Comments

quietone created an issue. See original summary.

quietone’s picture

Issue summary: View changes
quietone’s picture

Issue summary: View changes

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture