Coding standard

Created on 4 December 2018, almost 6 years ago
Updated 16 May 2024, 6 months ago
FILE: /var/www/html/tolearn/modules/git/nice_menus/README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 26 | WARNING | Line exceeds 80 characters; contains 101 characters
 36 | WARNING | Line exceeds 80 characters; contains 94 characters
----------------------------------------------------------------------


FILE: /var/www/html/tolearn/modules/git/nice_menus/nice_menus.info.yml
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/tolearn/modules/git/nice_menus/nice_menus.module
------------------------------------------------------------------------------------
FOUND 21 ERRORS AND 6 WARNINGS AFFECTING 17 LINES
------------------------------------------------------------------------------------
 22 | ERROR   | [x] Short array syntax must be used to define arrays
 30 | WARNING | [ ] Hook implementations should not duplicate @param documentation
 30 | ERROR   | [ ] Missing parameter comment
 30 | ERROR   | [ ] Missing parameter type
 31 | WARNING | [ ] Hook implementations should not duplicate @param documentation
 31 | ERROR   | [ ] Missing parameter comment
 31 | ERROR   | [ ] Missing parameter type
 32 | WARNING | [ ] Hook implementations should not duplicate @param documentation
 32 | ERROR   | [ ] Missing parameter comment
 32 | ERROR   | [ ] Missing parameter type
 33 | WARNING | [ ] Hook implementations should not duplicate @param documentation
 33 | ERROR   | [ ] Missing parameter comment
 33 | ERROR   | [ ] Missing parameter type
 35 | WARNING | [ ] Hook implementations should not duplicate @return documentation
 35 | ERROR   | [ ] Description for the @return value is missing
 38 | ERROR   | [x] Short array syntax must be used to define arrays
 39 | ERROR   | [x] Short array syntax must be used to define arrays
 41 | ERROR   | [x] Short array syntax must be used to define arrays
 48 | ERROR   | [ ] Missing short description in doc comment
 49 | ERROR   | [ ] Missing parameter comment
 51 | ERROR   | [ ] Description for the @return value is missing
 61 | ERROR   | [x] Inline comments must start with a capital letter
 66 | ERROR   | [x] Inline comments must start with a capital letter
 75 | ERROR   | [x] Short array syntax must be used to define arrays
 76 | ERROR   | [x] Short array syntax must be used to define arrays
 77 | ERROR   | [x] Short array syntax must be used to define arrays
 77 | WARNING | [x] A comma should follow the last multiline array item. Found: )
------------------------------------------------------------------------------------

FILE: /var/www/html/tolearn/modules/git/nice_menus/src/Form/NiceMenusSettingsForm.php
-----------------------------------------------------------------------------------------------------
FOUND 22 ERRORS AFFECTING 19 LINES
-----------------------------------------------------------------------------------------------------
  16 | ERROR | [ ] Public method name "NiceMenusSettingsForm::getFormID" is not in lowerCamel format
  33 | ERROR | [ ] Missing short description in doc comment
  34 | ERROR | [ ] Missing parameter comment
  34 | ERROR | [x] Expected 1 spaces after parameter type; 32 found
  35 | ERROR | [ ] Missing parameter comment
  37 | ERROR | [ ] Description for the @return value is missing
  42 | ERROR | [x] Short array syntax must be used to define arrays
  49 | ERROR | [x] Short array syntax must be used to define arrays
  56 | ERROR | [x] Short array syntax must be used to define arrays
  65 | ERROR | [x] Short array syntax must be used to define arrays
  74 | ERROR | [x] Short array syntax must be used to define arrays
  78 | ERROR | [x] Short array syntax must be used to define arrays
  88 | ERROR | [ ] Missing short description in doc comment
  89 | ERROR | [ ] Missing parameter comment
  89 | ERROR | [x] Expected 1 spaces after parameter type; 32 found
  90 | ERROR | [ ] Missing parameter comment
  96 | ERROR | [ ] Missing short description in doc comment
  97 | ERROR | [ ] Missing parameter comment
  97 | ERROR | [x] Expected 1 spaces after parameter type; 32 found
  98 | ERROR | [ ] Missing parameter comment
 108 | ERROR | [x] Expected 1 blank line after function; 0 found
 109 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India deepanker_bhalla

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.

Production build 0.71.5 2024