Fix Drupal Coding standards.

Created on 27 April 2022, almost 3 years ago
Updated 18 March 2025, 19 days ago

Problem/Motivation

Getting Drupal standards errors while running the PHPCS command.

FILE: config/install/bootstrap_sass.settings.yml
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 52 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------

FILE: config/schema/bootstrap_sass.schema.yml
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 297 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------

FILE: bootstrap_sass.theme
------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------
 16 | ERROR | [x] Short array syntax must be used to define arrays
 24 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------

Steps to reproduce

Check Drupal standards with below command

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml

Proposed resolution

Fix Drupal Coding standards.

📌 Task
Status

RTBC

Version

5.0

Component

Code

Created by

🇮🇳India syammohanmp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024