Fix phpcs coding standards

Created on 31 January 2023, over 1 year ago
Updated 12 April 2023, about 1 year ago

Problem/Motivation

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/drupal_cms/drupal9/web/modules/contrib/javali_error_pages/

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/javali_error_pages/javali_error_pages.libraries.yml
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/javali_error_pages/css/error_pages.css
-------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 19 LINES
-------------------------------------------------------------------------------------------------
1 | ERROR | [x] Multiple selectors should each be on a single line
1 | ERROR | [x] Multiple selectors should each be on a single line
21 | ERROR | [x] CSS colours must be defined in lowercase; expected #dedede but found #DEDEDE
23 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
28 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
30 | ERROR | [x] CSS colours must be defined in lowercase; expected #ffffff but found #FFFFFF
34 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
37 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
90 | ERROR | [x] CSS colours must be defined in lowercase; expected #3a4149 but found #3A4149
95 | ERROR | [ ] Style definitions must end with a semicolon
102 | ERROR | [x] CSS colours must be defined in lowercase; expected #3a4149 but found #3A4149
104 | ERROR | [x] CSS colours must be defined in lowercase; expected #ffffff but found #FFFFFF
105 | ERROR | [x] CSS colours must be defined in lowercase; expected #3a4149 but found #3A4149
113 | ERROR | [x] CSS colours must be defined in lowercase; expected #3a4149 but found #3A4149
114 | ERROR | [x] CSS colours must be defined in lowercase; expected #ffffff but found #FFFFFF
119 | ERROR | [x] CSS colours must be defined in lowercase; expected #f5f5f5 but found #F5F5F5
127 | ERROR | [x] Blank lines are not allowed in class definitions
147 | ERROR | [x] CSS colours must be defined in lowercase; expected #f5f5f5 but found #F5F5F5
162 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
244 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/javali_error_pages/javali_error_pages.module
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
54 | ERROR | [x] Concat operator must be surrounded by a single space
67 | ERROR | [x] Concat operator must be surrounded by a single space
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

Time: 108ms; Memory: 12MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India PrasadDeole

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

Comments & Activities

Production build 0.69.0 2024