Drupal Coding Standard As Per phpcs --standard=Drupal

Created on 5 October 2023, about 1 year ago
Updated 20 August 2024, 3 months ago

Problem/Motivation

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

FILE: C:\Users\abc\Downloads\event_s\css\owl.carousel.min.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------

FILE: C:\Users\abc\Downloads\event_s\events.theme
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
32 | WARNING | Unused variable $config.
----------------------------------------------------------------------

Time: 667ms; Memory: 12MB

šŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

šŸ‡®šŸ‡³India Priya_Degwekar

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

Comments & Activities

  • Issue created by @Priya_Degwekar
  • Assigned to shiv_yadav
  • Assigned to chetan 11
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • šŸ‡®šŸ‡³India shiv_yadav

    Hello Priya_Degwekar, i have fixed given issue.
    created patch & please review it.

  • Status changed to Needs work 3 months ago
  • šŸ‡µšŸ‡­Philippines cleavinjosh

    Hi @shiv_yadav,

    I applied patch #5, and it was applied smoothly.

    However, it does not fixed the issues mentioned in the description.

    āžœ  event_s git:(2.0.0) curl https://www.drupal.org/files/issues/2023-10-05/event_s-3391809.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 89047  100 89047    0     0   236k      0 --:--:-- --:--:-- --:--:--  236k
    patching file css/style.css
    patching file events.libraries.yml
    patching file events.theme
    patching file includes/flexslider/CONTRIBUTING.md
    patching file includes/flexslider/changelog.txt
    patching file includes/flexslider/demo/css/demo.css
    āžœ  event_s git:(2.0.0) āœ— ..
    āžœ  contrib phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml event_s
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/themes/contrib/event_s/css/owl.carousel.min.css
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ----------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/themes/contrib/event_s/events.theme
    ----------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------
     46 | WARNING | Unused variable $config.
    ----------------------------------------------------------------------------------------
    
    Time: 259ms; Memory: 12MB
    
    āžœ  contrib
Production build 0.71.5 2024