Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(3 errors, 22 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

local/easycustmenu/classes/helper.php
(#85) Blank line found at start of control structure
(#135) Blank line found at start of control structure
local/easycustmenu/db/upgrade.php
(#41) Blank line found at start of control structure
local/easycustmenu/lang/en/local_easycustmenu.php
(#33) The string key "configtitle" is not in the correct order, it should be before "privacy:metadata"
(#36) The string key "header_nav_menu_setting" is not in the correct order, it should be before "user_menu_setting"
(#39) The string key "hide_menu_label" is not in the correct order, it should be before "show"
(#43) The string key "add_page_title" is not in the correct order, it should be before "hide_primarynavigation_title"
(#45) The string key "delete_page_title" is not in the correct order, it should be before "edit_page_title"
(#46) The string key "delete_conform_heading" is not in the correct order, it should be before "delete_page_title"
(#49) The string key "delete" is not in the correct order, it should be before "edit"
(#51) The string key "invalidtypeparam" is not in the correct order, it should be before "label"
(#52) The string key "invalidactionparam" is not in the correct order, it should be before "invalidtypeparam"
(#57) The string key "menu_item" is not in the correct order, it should be before "usermenu"
(#58) The string key "add_menu_item" is not in the correct order, it should be before "menu_item"
(#61) The string key "menu_label" is not in the correct order, it should be before "menu_type"
(#64) The string key "menu_context" is not in the correct order, it should be before "menu_link"
(#65) The string key "allcourses" is not in the correct order, it should be before "menu_context"
(#69) The string key "everyone" is not in the correct order, it should be before "menu_condition_role"
(#71) The string key "label_error" is not in the correct order, it should be before "open_in_a_new_browser_tab"
(#74) The string key "menu_delete" is not in the correct order, it should be before "menu_updated"
(#77) The string key "menu_delete_missing" is not in the correct order, it should be before "menu_error_submit"
(#81) The string key "invalidmenudepth" is not in the correct order, it should be before "save_order"
(#84) The string key "show_in_course" is not in the correct order, it should be before "show_through_site"
(#85) The string key "setting_activate" is not in the correct order, it should be before "show_in_course"
(#92) The string key "manage_menu_label" is not in the correct order, it should be before "setting_user_menu_heading"

Javascript coding style problems

(0 errors, 138 warnings)

This section shows the coding style problems detected in the code by eslint [More info]

local/easycustmenu/amd/src/conformdelete.js
(#25) Unexpected space before function parentheses. (space-before-function-paren)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#32) Identifier 'data_heading' is not in camel case. (camelcase)
(#33) Identifier 'data_title' is not in camel case. (camelcase)
(#34) Identifier 'data_title' is not in camel case. (camelcase)
(#34) Identifier 'data_title' is not in camel case. (camelcase)
(#34) Identifier 'data_title' is not in camel case. (camelcase)
(#37) There should be no space after '{'. (@babel/object-curly-spacing)
(#37) Identifier 'menu_label' is not in camel case. (camelcase)
(#37) Identifier 'data_title' is not in camel case. (camelcase)
(#37) There should be no space before '}'. (@babel/object-curly-spacing)
(#40) Unexpected space before function parentheses. (space-before-function-paren)
local/easycustmenu/amd/src/ecm.js
(#30) Identifier 'admin_plugin_setting_init' is not in camel case. (camelcase)
(#31) Comments should not begin with a lowercase character. (capitalized-comments)
(#32) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
(#35) Expected catch,fail,always() or return (promise/catch-or-return)
(#36) Unexpected space before function parentheses. (space-before-function-paren)
(#38) Each then() should return a value or throw (promise/always-return)
(#56) Identifier 'get_ecm_btn' is not in camel case. (camelcase)
(#56) Identifier 'css_class' is not in camel case. (camelcase)
(#58) Identifier 'css_class' is not in camel case. (camelcase)
(#68) Identifier 'admin_core_setting_init' is not in camel case. (camelcase)
(#68) Identifier 'string_array' is not in camel case. (camelcase)
(#70) Identifier 'navmenu_link' is not in camel case. (camelcase)
(#71) Identifier 'usermenu_link' is not in camel case. (camelcase)
(#72) Comments should not begin with a lowercase character. (capitalized-comments)
(#73) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
(#75) Identifier 'btn_ecm_custommenuitems' is not in camel case. (camelcase)
(#75) Identifier 'string_array' is not in camel case. (camelcase)
(#75) ["manage_menu_label"] is better written in dot notation. (dot-notation)
(#76) Identifier 'show_menu_label' is not in camel case. (camelcase)
(#76) Identifier 'string_array' is not in camel case. (camelcase)
(#76) ["show_menu_label"] is better written in dot notation. (dot-notation)
(#76) Expected space or tab after '//' in comment. (spaced-comment)
(#77) Identifier 'hide_menu_label' is not in camel case. (camelcase)
(#77) Identifier 'string_array' is not in camel case. (camelcase)
(#77) ["hide_menu_label"] is better written in dot notation. (dot-notation)
(#77) Expected space or tab after '//' in comment. (spaced-comment)
(#78) Identifier 'btn_hide_show_custommenuitems' is not in camel case. (camelcase)
(#86) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#87) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#87) Unexpected space before function parentheses. (space-before-function-paren)
(#90) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#91) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#92) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#93) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#93) Identifier 'hide_menu_label' is not in camel case. (camelcase)
(#98) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#99) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#100) Identifier 'element_show_hide' is not in camel case. (camelcase)
(#100) Identifier 'show_menu_label' is not in camel case. (camelcase)
(#108) Comments should not begin with a lowercase character. (capitalized-comments)
(#109) Identifier 'btn_ecm_customusermenuitems' is not in camel case. (camelcase)
(#109) Identifier 'string_array' is not in camel case. (camelcase)
(#109) ["manage_menu_label_2"] is better written in dot notation. (dot-notation)
(#110) Identifier 'show_menu_label_2' is not in camel case. (camelcase)
(#110) Identifier 'string_array' is not in camel case. (camelcase)
(#110) ["show_menu_label_2"] is better written in dot notation. (dot-notation)
(#111) Identifier 'hide_menu_label_2' is not in camel case. (camelcase)
(#111) Identifier 'string_array' is not in camel case. (camelcase)
(#111) ["hide_menu_label_2"] is better written in dot notation. (dot-notation)
(#112) Identifier 'btn_hide_show_customusermenuitems' is not in camel case. (camelcase)
(#121) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#122) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#122) Unexpected space before function parentheses. (space-before-function-paren)
(#125) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#126) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#127) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#128) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#128) Identifier 'hide_menu_label_2' is not in camel case. (camelcase)
(#133) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#134) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#135) Identifier 'element_show_hide_2' is not in camel case. (camelcase)
(#135) Identifier 'show_menu_label_2' is not in camel case. (camelcase)
local/easycustmenu/amd/src/menu_items.js
(#28) There should be no space after '{'. (@babel/object-curly-spacing)
(#28) There should be no space before '}'. (@babel/object-curly-spacing)
(#30) Comments should not begin with a lowercase character. (capitalized-comments)
(#40) Identifier 'check_invalid_depth' is not in camel case. (camelcase)
(#45) Comments should not begin with a lowercase character. (capitalized-comments)
(#46) Unexpected space before function parentheses. (space-before-function-paren)
(#48) Identifier 'parent_id' is not in camel case. (camelcase)
(#49) Identifier 'parent_depth' is not in camel case. (camelcase)
(#49) Identifier 'parent_id' is not in camel case. (camelcase)
(#55) Comments should not begin with a lowercase character. (capitalized-comments)
(#57) Unexpected space before function parentheses. (space-before-function-paren)
(#58) Comments should not begin with a lowercase character. (capitalized-comments)
(#75) Identifier 'ajax_save_menu_items' is not in camel case. (camelcase)
(#75) Identifier 'reorder_items' is not in camel case. (camelcase)
(#80) Identifier 'reorder_items' is not in camel case. (camelcase)
(#84) Unexpected space before function parentheses. (space-before-function-paren)
(#87) Comments should not begin with a lowercase character. (capitalized-comments)
(#92) Unexpected space before function parentheses. (space-before-function-paren)
(#94) Unexpected space before function parentheses. (space-before-function-paren)
(#100) Comments should not begin with a lowercase character. (capitalized-comments)
(#103) Identifier 'get_reorder_items' is not in camel case. (camelcase)
(#104) Identifier 'reorder_items' is not in camel case. (camelcase)
(#107) Unexpected space before function parentheses. (space-before-function-paren)
(#121) Identifier 'reorder_items' is not in camel case. (camelcase)
(#122) Identifier 'menu_order' is not in camel case. (camelcase)
(#129) Identifier 'reorder_items' is not in camel case. (camelcase)
(#137) Identifier 'menu_item_reorder' is not in camel case. (camelcase)
(#140) Identifier 'child_arrow' is not in camel case. (camelcase)
(#141) Identifier 'child_indentation' is not in camel case. (camelcase)
(#155) Unexpected space before function parentheses. (space-before-function-paren)
(#162) Expected to return a value at the end of function. (consistent-return)
(#162) Unexpected space before function parentheses. (space-before-function-paren)
(#185) Unexpected space before function parentheses. (space-before-function-paren)
(#188) Identifier 'end_x' is not in camel case. (camelcase)
(#189) Identifier 'start_x' is not in camel case. (camelcase)
(#192) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#200) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#203) Identifier 'end_x' is not in camel case. (camelcase)
(#203) Identifier 'start_x' is not in camel case. (camelcase)
(#204) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#205) Identifier 'end_x' is not in camel case. (camelcase)
(#205) Identifier 'start_x' is not in camel case. (camelcase)
(#206) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#212) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#214) Identifier 'child_indentation_icon' is not in camel case. (camelcase)
(#215) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#216) Identifier 'new_itemDepth' is not in camel case. (camelcase)
(#217) Identifier 'child_indentation_icon' is not in camel case. (camelcase)
(#217) Identifier 'child_indentation' is not in camel case. (camelcase)
(#219) Identifier 'child_indentation_icon' is not in camel case. (camelcase)
(#219) Identifier 'child_arrow' is not in camel case. (camelcase)
(#233) Comments should not begin with a lowercase character. (capitalized-comments)
(#234) Unexpected space before function parentheses. (space-before-function-paren)
(#238) Identifier 'reorder_items' is not in camel case. (camelcase)
(#239) Unexpected space before function parentheses. (space-before-function-paren)
(#247) Comments should not begin with a lowercase character. (capitalized-comments)
(#248) Identifier 'invalid_depth' is not in camel case. (camelcase)
(#249) Identifier 'invalid_depth' is not in camel case. (camelcase)
(#253) Comments should not begin with a lowercase character. (capitalized-comments)
(#266) Identifier 'context_role_filter' is not in camel case. (camelcase)
(#279) There should be no space after '{'. (@babel/object-curly-spacing)
(#279) There should be no space before '}'. (@babel/object-curly-spacing)

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(4 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

local/easycustmenu/classes/handler/easycustmenu_handler.php
(#310) Phpdocs for function easycustmenu_handler::get_ecm_menu_items_table has incomplete parameters list
local/easycustmenu/classes/helper.php
(#79) Phpdocs for function helper::get_ecm_context_roles has incomplete parameters list
(#173) Phpdocs for function helper::get_menu_role_name has incomplete parameters list
local/easycustmenu/db/upgrade.php
(#269) Phpdocs for function local_easycustmenu_save_menu_data has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(1 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 1 warnings)

This section shows problems detected in mustache templates [More info]

local/easycustmenu/templates/menu_items_table.mustache
(#1) Example context missing.

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]