Code Sniffer Suggestions

Created on 9 April 2024, 9 months ago
Updated 24 April 2024, 8 months ago

The following errors are reported by PHP codesniffer:

FILE: /Users/sagarramgade/Sites/drupal-contributions/web/modules/contrib/trailless_menu/tests/modules/trailless_menu_render_count_test/trailless_menu_render_count_test.module
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 17 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/sagarramgade/Sites/drupal-contributions/web/modules/contrib/trailless_menu/tests/src/Functional/TraillessMenuTest.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------------------------------------
  10 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  49 | ERROR   | [x] Missing function doc comment
  61 | WARNING | [x] A comma should follow the last multiline array item. Found: 'trailless_menu main navigation'
 132 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 160 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 162 | ERROR   | [x] Visibility must be declared on method "testCacheInvalidationOnFormSave"
 185 | WARNING | [x] A comma should follow the last multiline array item. Found: 'trailless_menu footer navigation'
 222 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 233 | ERROR   | [x] Expected 1 blank line after function; 0 found
 234 | ERROR   | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/sagarramgade/Sites/drupal-contributions/web/modules/contrib/trailless_menu/src/Form/SettingsForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
 29 | ERROR | [x] Do not append variable name "$cacheTagsInvalidator" to the type declaration in a member variable comment
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India sagar ramgade

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024