Fix the PHP_CodeSniffer issues reported by GitLab CI

Created on 10 November 2022, almost 2 years ago
Updated 25 July 2024, 2 months ago
๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Aadhar_Gupta

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • First commit to issue fork.
  • @vishaljd opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    The issue summary has not yet updated.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia dev20.addweb

    yoftahe.addweb โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review 5 months ago
  • Assigned to dev16.addweb
  • Status changed to Needs work 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia dev16.addweb

    Hello,

    Although my test MR!3 applied successfully, I discovered a few new issues and warnings, which I have listed below.

    FILE: /home/addweb/Drupal8-vagrant/web/web/drupal8_9/web/modules/contrib/clockify_report/README.md
    --------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------
     13 | WARNING | Line exceeds 80 characters; contains 134 characters
    --------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/Drupal8-vagrant/web/web/drupal8_9/web/modules/contrib/clockify_report/clockify_report.info.yml
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    -----------------------------------------------------------------------------------------------------------------
     1 | WARNING | "core_version_requirement" property is missing in the info.yml file
     7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
    -----------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/Drupal8-vagrant/web/web/drupal8_9/web/modules/contrib/clockify_report/clockify_report.module
    ---------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------
      98 | WARNING | Unused variable $split_week.
     175 | WARNING | Unused variable $array.
     289 | WARNING | Unused variable $weekday_name.
     471 | WARNING | Unused variable $key.
     483 | WARNING | Unused variable $key.
     504 | WARNING | Unused variable $weekday_name.
     687 | WARNING | Unused variable $key.
    ---------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/Drupal8-vagrant/web/web/drupal8_9/web/modules/contrib/clockify_report/templates/invoice-download.html.twig
    -----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | [x] Expected 1 newline at end of file; 0 found
    -----------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------
  • Issue was unassigned.
  • Assigned to dev2.addweb
  • Merge request !4Fixed phpcs issues. โ†’ (Merged) created by Unnamed author
  • Issue was unassigned.
  • Status changed to Needs review 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia dev2.addweb

    All of the issues and warnings mentioned above have been resolved. Also raised MR ! 4 for the same.

  • Pipeline finished with Success
    3 months ago
    Total: 146s
    #219842
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    apaderno โ†’ changed the visibility of the branch coding_standard to hidden.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    apaderno โ†’ changed the visibility of the branch 3320321-optimizing-code-according to hidden.

  • Pipeline finished with Success
    3 months ago
    Total: 144s
    #219851
  • Status changed to RTBC 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    All the reported PHP_CodeSniffer errors/warnings have been fixed.

  • Status changed to Fixed 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia dev22.addweb

    Changes are merged, Thanks for the help everyone.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024