Problem/Motivation
Getting Following errors/warnings:
FILE: C:\Users\KIIT\Desktop\moduleslist\revolt\revolt.theme
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
204 | WARNING | Unused variable $element.
----------------------------------------------------------------------
FILE: C:\Users\KIIT\Desktop\moduleslist\revolt\theme-settings.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------
49 | WARNING | #description values usually have to run through t() for translation
51 | WARNING | #options values usually have to run through t() for translation
52 | WARNING | #options values usually have to run through t() for translation
53 | WARNING | #options values usually have to run through t() for translation
85 | WARNING | #description values usually have to run through t() for translation
86 | WARNING | #options values usually have to run through t() for translation
86 | WARNING | #options values usually have to run through t() for translation
------------------------------------------------------------------------------------
Time: 554ms; Memory: 16MB
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Fixed_Coding_standards-3387977.patch | 1.06 KB | abhiyanshu |
| #10 | coding_standards_issue_on_twig_file.png | 42.1 KB | abhiyanshu |
Issue fork revolt-3387977
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
shreya_th commentedHi @yogesh.k,
I have created MR for Drupal Coding Standards Issues .Kindly review the changes.
Thank you.
Comment #4
orkutmuratyilmaz@Shreya_th, thanks for your fast contribution. The other 2 files look nice, but the change you've made on revolt.theme file is not a good practice. Maybe there could be a better way for getting rid of that warning, than commenting out the line.
Best,
Orkut
Comment #5
shreya_th commentedYes @Orkut Murat Yilmaz i will make change in revolt.theme file asap.
Thank you
Comment #6
paulrad commented@Shreya_th, this hook isn't used so you could just remove lines 199-205.
Comment #7
shreya_th commentedHi everyone,
I have done the changes told by @paulrad . Kindly review the changes .
Thank you.
Comment #8
sarwan_verma commentedHi everyone, I have tested the MR and it fixes the issue. Moving it to the RTBC.
Comment #9
yogesh.k commentedComment #10
abhiyanshu commented@Shreya_th,
"I have carefully reviewed your changes and found that the code is running smoothly for three of the files. However, there is still one lingering linting error in the views-mini-pager.html.twig file.
I've taken the liberty to address this issue and have created a patch to rectify it.(Please refer to the attached patch)
With the fix in place, I'm now moving this to the 'RTBC' (Reviewed and Tested by the Community), Thank you.
Comment #11
abhiyanshu commentedComment #12
shreya_th commented@abhiyanshu_rawat ,
Thank you for pointing out the issue , I have applied your patch and it is running successfully. I have added your patch changes and raised the PR. Please review and verify.
Comment #13
yogesh.k commentedComment #16
pkghang commentedComment #17
orkutmuratyilmazIt would be better to create a new release, after merging is done. Please check this documentation.
Best,
Orkut
Comment #18
yogesh.k commentedComment #19
yogesh.k commentedComment #20
pkghang commented