Phpcs Drupal standard coding issue

Created on 4 August 2022, over 2 years ago
Updated 21 August 2024, 3 months ago

Adding Coding Standard issue to a txt file to make the issue more clear and visible.

šŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

šŸ‡®šŸ‡³India chanchal tiwari

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hi @jaydev bhatt,

    Applied the changes committed on MR!1, it was applied successfully, it fixed most errors, however, one error still reported. Please see below:

    āžœ  architects_zymphonies_theme git:(master) āœ— curl https://git.drupalcode.org/project/architects_zymphonies_theme/-/merge_requests/1.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  135k    0  135k    0     0   349k      0 --:--:-- --:--:-- --:--:--  360k
    patching file architects_zymphonies_theme.libraries.yml
    patching file architects_zymphonies_theme.theme
    patching file config/install/architects_zymphonies_theme.settings.yml
    patching file config/optional/block.block.architects_zymphonies_theme_page_title.yml
    patching file css/global.css
    patching file css/media.css
    patching file includes/fontawesome/css/fontawesome-all.css
    patching file includes/owl/assets/owl.carousel.css
    patching file includes/smartmenus/sm-core-css.css
    āžœ  architects_zymphonies_theme git:(master) āœ— ..
    āžœ  contrib git:(master) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig architects_zymphonies_theme
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/themes/contrib/architects_zymphonies_theme/templates/layout/page.html.twig
    --------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------
     500 | ERROR | [x] Expected 1 newline at end of file; 3 found
    --------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------
    
    Time: 720ms; Memory: 24MB

    Kindly check

    Thanks,
    Jake

Production build 0.71.5 2024