Fix the issues reported by phpcs

Created on 27 March 2024, 3 months ago

Problem/Motivation

Here is the command to fix phpcs issue:-
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml web/modules/contrib/views_mark_current/
Result:-

FILE: /home/chandansha/docker/testd10/web/modules/contrib/views_mark_current/README.md
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------------
  3 | WARNING | Line exceeds 80 characters; contains 418 characters
 24 | WARNING | Line exceeds 80 characters; contains 85 characters
 28 | WARNING | Line exceeds 80 characters; contains 157 characters
 32 | WARNING | Line exceeds 80 characters; contains 93 characters
 34 | WARNING | Line exceeds 80 characters; contains 192 characters
--------------------------------------------------------------------------------------


FILE: /home/chandansha/docker/testd10/web/modules/contrib/views_mark_current/tests/modules/views_mark_current_test/views_mark_current_test.info.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
---------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/chandansha/docker/testd10/web/modules/contrib/views_mark_current/views_mark_current.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

Time: 119ms; Memory: 10MB

Proposed resolution

Fixed the coding standards.

📌 Task
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇮🇳India Chandansha

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024