Closed (fixed)
Project:
Trailless Menu
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2024 at 03:17 UTC
Updated:
24 Apr 2024 at 12:24 UTC
Jump to comment: Most recent
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
---------------------------------------------------------------------------------------------------------------------------
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 #4
sarwan_verma commentedHi @Sagar Ramgade
i have created MR please review it.
Comment #5
sagar ramgade commentedThanks @sarwan_verma, overall it looks good. I've pushed some minor text changes.
Comment #6
sarwan_verma commentedHi @Sagar Ramgade,
please change the status and Fixed .
Comment #7
mitthukumawat commentedI run the phpcs coding standard with above changes and it looks fine now. Moving to RTBC.
Comment #8
sagar ramgade commented