Problem/Motivation
command -:
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/twig_tweak/
FILE: /var/www/html/d10/web/modules/contrib/twig_tweak/docs/migration-to-3.x.md
-------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------
39 | WARNING | Line exceeds 80 characters; contains 210 characters
-------------------------------------------------------------------------------
FILE: /var/www/html/d10/web/modules/contrib/twig_tweak/docs/cheat-sheet.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 20 WARNINGS AFFECTING 20 LINES
--------------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 101 characters
13 | WARNING | Line exceeds 80 characters; contains 84 characters
31 | WARNING | Line exceeds 80 characters; contains 90 characters
36 | WARNING | Line exceeds 80 characters; contains 134 characters
37 | WARNING | Line exceeds 80 characters; contains 91 characters
85 | WARNING | Line exceeds 80 characters; contains 101 characters
86 | WARNING | Line exceeds 80 characters; contains 154 characters
87 | WARNING | Line exceeds 80 characters; contains 99 characters
89 | WARNING | Line exceeds 80 characters; contains 97 characters
92 | WARNING | Line exceeds 80 characters; contains 111 characters
122 | WARNING | Line exceeds 80 characters; contains 113 characters
124 | WARNING | Line exceeds 80 characters; contains 88 characters
162 | WARNING | Line exceeds 80 characters; contains 148 characters
168 | WARNING | Line exceeds 80 characters; contains 86 characters
200 | WARNING | Line exceeds 80 characters; contains 89 characters
205 | WARNING | Line exceeds 80 characters; contains 82 characters
281 | WARNING | Line exceeds 80 characters; contains 88 characters
294 | WARNING | Line exceeds 80 characters; contains 162 characters
296 | WARNING | Line exceeds 80 characters; contains 104 characters
372 | WARNING | Line exceeds 80 characters; contains 84 characters
--------------------------------------------------------------------------
FILE: /var/www/html/d10/web/modules/contrib/twig_tweak/docs/blocks.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
20 | WARNING | Line exceeds 80 characters; contains 109 characters
58 | WARNING | Line exceeds 80 characters; contains 81 characters
108 | WARNING | Line exceeds 80 characters; contains 81 characters
----------------------------------------------------------------------
Steps to reproduce
Run PHPCS on Config Pages module.
Proposed resolution
Fixed the coding standards.
Remaining tasks
Submit the patch either MR.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | twig-tweak_MR!53-passed.png | 43.42 KB | roberttabigue |
Issue fork twig_tweak-3458447
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
hetal.solankiComment #4
bhaveshdas commentedI have tested and cannot find any phpcs issue so I move forward to RTBC
Comment #5
chi commentedDon't you think it looks weird? That's why Twig Tweak uses own PHPCS configuration.
Comment #6
zaryab_drupal commentedComment #7
zaryab_drupal commentedComment #9
liam morlandThese may be good changes to make, but they are not needed for phpcs, which is already passing.
Comment #10
roberttabigue commentedHi,
I have applied the latest MR !53 to the Twig Tweak module (3.x-dev) on my Drupal 10 local setup and confirmed all PHPCS errors have been fixed.
I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml twig_tweakPlease see the attached file for reference.
I'm moving this now to "RTBC".
Thank you!
Comment #12
anybody@liam morland unsure if this is outdated looking at the pipeline status for 3.x and 4.x (first glance)?
Comment #13
anybodyComment #14
liam morlandphpcs is passing on 3.x and 4.x so this can be closed.
Comment #15
anybodyThanks @liam morland!