Drupal Coding Standards Issues | phpcs

Created on 15 June 2023, about 2 years ago
Updated 16 June 2023, about 2 years ago

Problem/Motivation

Getting following error/warnings:

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\allowed_formats\tests\modules\allowed_formats_base_fields_test\allowed_formats_base_fields_test.info.yml
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | "dependencies" should be an array in the info yaml file
------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\allowed_formats\tests\modules\allowed_formats_base_fields_test\allowed_formats_base_fields_test.module
----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------
14 | ERROR | The array declaration extends to column 128 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run following command:

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

Proposed resolution

Above error/warnings need to be fixed

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India arti_parmar

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

Comments & Activities

  • Issue created by @arti_parmar
  • Issue was unassigned.
  • Status changed to Needs review about 2 years ago
  • 🇮🇳India arti_parmar

    Kindly review patch.

  • Status changed to RTBC about 2 years ago
  • 🇵🇭Philippines paraderojether

    Hi arti_parmar

    I reviewed patch 2, I applied it against Allowed Formats 2.0.x-dev, and confirmed it fixes the issue reported by phpcs.

    I added screenshots for reference.
    Thank You.

Production build 0.71.5 2024