Coding Standard Issues

Created on 18 September 2024, 2 months ago
Updated 19 September 2024, 2 months ago

Problem/Motivation

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

FILE: .../web/modules/custom/google_analytics_counter/config/schema/google_analytics_counter.schema.yml
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
82 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/google_analytics_counter/google_analytics_counter.routing.yml
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
47 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/google_analytics_counter/README.md
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 241 characters
12 | WARNING | Line exceeds 80 characters; contains 84 characters
13 | WARNING | Line exceeds 80 characters; contains 190 characters
14 | WARNING | Line exceeds 80 characters; contains 134 characters
15 | WARNING | Line exceeds 80 characters; contains 91 characters
16 | WARNING | Line exceeds 80 characters; contains 106 characters
29 | WARNING | Line exceeds 80 characters; contains 100 characters
31 | WARNING | Line exceeds 80 characters; contains 399 characters
----------------------------------------------------------------------------------------

FILE: .../web/modules/custom/google_analytics_counter/src/Controller/GoogleAnalyticsCounterController.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
99 | ERROR | [x] Multi-line function declaration not indented correctly; expected 2 spaces but found 4
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡΅πŸ‡ͺPeru alyaj2a

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024