Prechecker results: error


PHP lint problems

(1 errors, 0 warnings)

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

course/format/mindmap/mind_map_generator/lib.php
BOM character found

PHP coding style problems

(14 errors, 14 warnings)

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

course/format/mindmap/format.php
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) This comment is 69% valid code; is this commented out code?
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/mindmap/lib.php
(#136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#145) Inline comments must start with a capital letter, digit or 3-dots sequence
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Visibility must be declared on method "ajax_section_move"
(#295) Expected 1 space before "+"; 0 found
(#295) Expected 1 space after "+"; 0 found
(#328) This comment is 43% valid code; is this commented out code?
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#333) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/mindmap/mind_map_generator/lib.php
(#1) The first thing in a PHP file must be the <?php tag.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#170) Opening brace must be the last content on the line
(#352) Opening brace must be the last content on the line
(#383) Opening brace must be the last content on the line
(#525) Opening brace must be the last content on the line
(#525) This comment is 42% valid code; is this commented out code?
(#540) Opening brace must be the last content on the line
(#614) Opening brace must be the last content on the line
(#880) Opening brace must be the last content on the line
(#891) Opening brace must be the last content on the line
course/format/mindmap/mind_map_generator/specialcharacters.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
course/format/mindmap/renderer.php
(#47) Line exceeds 132 characters; contains 136 characters
(#48) Line exceeds 132 characters; contains 139 characters

Javascript coding style problems

(34 errors, 184 warnings)

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

course/format/mindmap/format.js
(#19) Identifier 'get_config' is not in camel case. (camelcase)
(#21) Identifier 'container_node' is not in camel case. (camelcase)
(#21) Extra space after key 'container_node'. (key-spacing)
(#22) Extra space after key 'container_class'. (key-spacing)
(#22) Identifier 'container_class' is not in camel case. (camelcase)
(#23) Extra space after key 'section_node'. (key-spacing)
(#23) Identifier 'section_node' is not in camel case. (camelcase)
(#24) Extra space after key 'section_class'. (key-spacing)
(#24) Identifier 'section_class' is not in camel case. (camelcase)
(#26) Missing semicolon. (semi)
(#28) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#36) Identifier 'swap_sections' is not in camel case. (camelcase)
(#38) Extra space after key 'COURSECONTENT'. (key-spacing)
(#39) Extra space after key 'SECTIONADDMENUS'. (key-spacing)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#45) Missing semicolon. (semi)
(#47) Expected JSDoc for 'response' but found 'sectionfrom'. (valid-jsdoc)
(#47) Expected JSDoc for 'sectionlist' but found 'response'. (valid-jsdoc)
(#47) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#47) Expected JSDoc for 'sectionfrom' but found 'sectionto'. (valid-jsdoc)
(#56) Identifier 'process_sections' is not in camel case. (camelcase)
(#58) Extra space after key 'SECTIONNAME'. (key-spacing)
(#61) Extra space after key 'SECTIONLEFTSIDE'. (key-spacing)
(#77) Infix operators must be spaced. (space-infix-ops)
(#82) Infix operators must be spaced. (space-infix-ops)
(#87) Missing semicolon. (semi)
course/format/mindmap/freeplane_java_applet/deployJava.js
(#1) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#60) Missing JSDoc comment. (require-jsdoc)
(#64) Unexpected console statement. (no-console)
(#65) Unexpected console statement. (no-console)
(#67) Unexpected alert. (no-alert)
(#70) Missing JSDoc comment. (require-jsdoc)
(#95) Missing JSDoc comment. (require-jsdoc)
(#103) Missing JSDoc comment. (require-jsdoc)
(#113) Missing JSDoc comment. (require-jsdoc)
(#122) Missing JSDoc comment. (require-jsdoc)
(#125) Missing JSDoc comment. (require-jsdoc)
(#125) 'i' is defined but never used (no-unused-vars)
(#128) Missing JSDoc comment. (require-jsdoc)
(#161) Function 'getJREs' has a complexity of 22. (complexity)
(#161) Unexpected space before function parentheses. (space-before-function-paren)
(#166) 'q' used outside of binding context. (block-scoped-var)
(#166) 'q' used outside of binding context. (block-scoped-var)
(#166) 'q' used outside of binding context. (block-scoped-var)
(#167) 'q' used outside of binding context. (block-scoped-var)
(#167) 'q' used outside of binding context. (block-scoped-var)
(#178) Blocks are nested too deeply (5). (max-depth)
(#181) Blocks are nested too deeply (6). (max-depth)
(#184) Blocks are nested too deeply (7). (max-depth)
(#197) Blocks are nested too deeply (5). (max-depth)
(#200) Blocks are nested too deeply (6). (max-depth)
(#203) Blocks are nested too deeply (7). (max-depth)
(#206) Blocks are nested too deeply (8). (max-depth)
(#209) Blocks are nested too deeply (9). (max-depth)
(#210) Blocks are nested too deeply (10). (max-depth)
(#213) Blocks are nested too deeply (11). (max-depth)
(#216) Blocks are nested too deeply (12). (max-depth)
(#219) Blocks are nested too deeply (13). (max-depth)
(#235) 'q' used outside of binding context. (block-scoped-var)
(#235) 'q' is already defined (no-redeclare)
(#235) 'q' used outside of binding context. (block-scoped-var)
(#235) 'q' used outside of binding context. (block-scoped-var)
(#236) 'q' used outside of binding context. (block-scoped-var)
(#241) Unexpected space before function parentheses. (space-before-function-paren)
(#242) 'o' is defined but never used (no-unused-vars)
(#261) Unexpected space before function parentheses. (space-before-function-paren)
(#270) Unexpected space before function parentheses. (space-before-function-paren)
(#277) Unexpected space before function parentheses. (space-before-function-paren)
(#298) Implied eval. Consider passing a function instead of a string. (no-implied-eval)
(#309) Line 309 exceeds the maximum line length of 132. (max-len)
(#316) Unexpected space before function parentheses. (space-before-function-paren)
(#344) Unexpected space before function parentheses. (space-before-function-paren)
(#381) Unexpected space before function parentheses. (space-before-function-paren)
(#389) 't' used outside of binding context. (block-scoped-var)
(#389) 't' used outside of binding context. (block-scoped-var)
(#389) 't' used outside of binding context. (block-scoped-var)
(#390) 't' used outside of binding context. (block-scoped-var)
(#390) 't' used outside of binding context. (block-scoped-var)
(#391) 't' used outside of binding context. (block-scoped-var)
(#412) 't' is already defined (no-redeclare)
(#412) 't' used outside of binding context. (block-scoped-var)
(#412) 't' used outside of binding context. (block-scoped-var)
(#412) 't' used outside of binding context. (block-scoped-var)
(#413) 't' used outside of binding context. (block-scoped-var)
(#421) Unexpected alert. (no-alert)
(#425) Unexpected space before function parentheses. (space-before-function-paren)
(#444) Unexpected space before function parentheses. (space-before-function-paren)
(#456) Expected to return a value at the end of this function. (consistent-return)
(#456) Unexpected space before function parentheses. (space-before-function-paren)
(#457) 'o' is defined but never used (no-unused-vars)
(#474) Line 474 exceeds the maximum line length of 132. (max-len)
(#477) Line 477 exceeds the maximum line length of 132. (max-len)
(#494) Unexpected space before function parentheses. (space-before-function-paren)
(#494) 'p' is defined but never used (no-unused-vars)
(#498) Script URL is a form of eval. (no-script-url)
(#499) Line 499 exceeds the maximum line length of 132. (max-len)
(#501) Unexpected space before function parentheses. (space-before-function-paren)
(#505) Line 505 exceeds the maximum line length of 132. (max-len)
(#505) Script URL is a form of eval. (no-script-url)
(#506) Line 506 exceeds the maximum line length of 132. (max-len)
(#508) Unexpected space before function parentheses. (space-before-function-paren)
(#512) Unexpected space before function parentheses. (space-before-function-paren)
(#520) Unexpected space before function parentheses. (space-before-function-paren)
(#526) Unexpected space before function parentheses. (space-before-function-paren)
(#532) Unexpected space before function parentheses. (space-before-function-paren)
(#539) Unexpected space before function parentheses. (space-before-function-paren)
(#545) Unexpected space before function parentheses. (space-before-function-paren)
(#548) Unexpected space before function parentheses. (space-before-function-paren)
(#553) Empty block statement. (no-empty)
(#559) Unexpected space before function parentheses. (space-before-function-paren)
(#564) Unexpected space before function parentheses. (space-before-function-paren)
(#572) Unexpected space before function parentheses. (space-before-function-paren)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#581) 'q' used outside of binding context. (block-scoped-var)
(#582) 'q' used outside of binding context. (block-scoped-var)
(#582) 'q' used outside of binding context. (block-scoped-var)
(#582) 'q' used outside of binding context. (block-scoped-var)
(#582) 'q' used outside of binding context. (block-scoped-var)
(#583) 'q' used outside of binding context. (block-scoped-var)
(#583) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' is already defined (no-redeclare)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#589) 'q' used outside of binding context. (block-scoped-var)
(#590) 'q' used outside of binding context. (block-scoped-var)
(#590) 'q' used outside of binding context. (block-scoped-var)
(#590) 'q' used outside of binding context. (block-scoped-var)
(#590) 'q' used outside of binding context. (block-scoped-var)
(#593) Blocks are nested too deeply (5). (max-depth)
(#593) 'q' used outside of binding context. (block-scoped-var)
(#593) 'q' used outside of binding context. (block-scoped-var)
(#593) 'q' used outside of binding context. (block-scoped-var)
(#593) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' is already defined (no-redeclare)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#600) 'q' used outside of binding context. (block-scoped-var)
(#601) 'q' used outside of binding context. (block-scoped-var)
(#601) 'q' used outside of binding context. (block-scoped-var)
(#601) 'q' used outside of binding context. (block-scoped-var)
(#601) 'q' used outside of binding context. (block-scoped-var)
(#615) Unexpected space before function parentheses. (space-before-function-paren)
(#631) Blocks are nested too deeply (5). (max-depth)
(#635) Blocks are nested too deeply (6). (max-depth)
(#639) Blocks are nested too deeply (7). (max-depth)
(#643) Blocks are nested too deeply (8). (max-depth)
(#647) Blocks are nested too deeply (9). (max-depth)
(#665) Unexpected space before function parentheses. (space-before-function-paren)
(#667) 'ActiveXObject' is not defined. (no-undef)
(#672) 'ActiveXObject' is not defined. (no-undef)
(#677) Unexpected space before function parentheses. (space-before-function-paren)
(#680) 'oClientCaps' is not defined. (no-undef)
(#690) Unexpected space before function parentheses. (space-before-function-paren)
(#696) 's' is not defined. (no-undef)
(#697) 's' is not defined. (no-undef)
(#706) Unexpected space before function parentheses. (space-before-function-paren)
(#712) 's' is not defined. (no-undef)
(#713) 's' is not defined. (no-undef)
(#718) 's' is not defined. (no-undef)
(#720) Blocks are nested too deeply (5). (max-depth)
(#732) Unexpected space before function parentheses. (space-before-function-paren)
(#733) Line 733 exceeds the maximum line length of 132. (max-len)
(#736) Unexpected space before function parentheses. (space-before-function-paren)
(#736) 'o' is defined but never used (no-unused-vars)
(#736) Unexpected empty function. (no-empty-function)
(#738) Unexpected space before function parentheses. (space-before-function-paren)
(#739) Line 739 exceeds the maximum line length of 132. (max-len)
(#742) Unexpected space before function parentheses. (space-before-function-paren)
(#745) 'q' used outside of binding context. (block-scoped-var)
(#745) 'q' used outside of binding context. (block-scoped-var)
(#745) 'q' used outside of binding context. (block-scoped-var)
(#746) 'q' used outside of binding context. (block-scoped-var)
(#746) 'q' used outside of binding context. (block-scoped-var)
(#748) 'q' used outside of binding context. (block-scoped-var)
(#748) 'q' is already defined (no-redeclare)
(#748) 'q' used outside of binding context. (block-scoped-var)
(#748) 'q' used outside of binding context. (block-scoped-var)
(#749) 'q' used outside of binding context. (block-scoped-var)
(#749) 'q' used outside of binding context. (block-scoped-var)
(#774) Unexpected space before function parentheses. (space-before-function-paren)
(#778) Unexpected space before function parentheses. (space-before-function-paren)
(#794) Unexpected space before function parentheses. (space-before-function-paren)
(#797) Line 797 exceeds the maximum line length of 132. (max-len)
(#804) Unexpected space before function parentheses. (space-before-function-paren)
(#814) Unexpected space before function parentheses. (space-before-function-paren)
(#817) 'p' used outside of binding context. (block-scoped-var)
(#817) 'p' used outside of binding context. (block-scoped-var)
(#817) 'p' used outside of binding context. (block-scoped-var)
(#818) 'p' used outside of binding context. (block-scoped-var)
(#819) 'p' used outside of binding context. (block-scoped-var)
(#820) Line 820 exceeds the maximum line length of 132. (max-len)
(#826) 'p' is already defined (no-redeclare)
(#826) 'p' used outside of binding context. (block-scoped-var)
(#826) 'p' used outside of binding context. (block-scoped-var)
(#826) 'p' used outside of binding context. (block-scoped-var)
(#827) 'p' used outside of binding context. (block-scoped-var)
(#828) Blocks are nested too deeply (5). (max-depth)
(#828) 'p' used outside of binding context. (block-scoped-var)
(#829) Line 829 exceeds the maximum line length of 132. (max-len)
(#843) Empty block statement. (no-empty)
(#849) Empty block statement. (no-empty)
(#855) Empty block statement. (no-empty)
(#858) Use ‘===’ to compare with ‘null’. (no-eq-null)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(56 errors, 1 warnings)

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

course/format/mindmap/format.php
(#17) No one-line description found in phpdocs for file
course/format/mindmap/lang/en/format_mindmap.php
(#17) No one-line description found in phpdocs for file
course/format/mindmap/lang/pl/format_mindmap.php
(#17) No one-line description found in phpdocs for file
course/format/mindmap/lib.php
(#17) No one-line description found in phpdocs for file
(#32) Package format_topics is not valid
course/format/mindmap/mind_map_generator/file.php
(#17) No one-line description found in phpdocs for file
course/format/mindmap/mind_map_generator/lib.php
(#2) Empty line found after PHP open tag
(#1) File-level phpdocs block is not found
(#63) Function format_mindmap_create_file is not documented
(#121) Function format_mindmap_print_section is not documented
(#170) Function format_mindmap_pamfs is not documented
(#182) Function format_mindmap_print_module is not documented
(#231) Function format_mindmap_print_fa is not documented
(#335) Function format_mindmap_print_book_chapter is not documented
(#352) Function format_mindmap_check_if_visited is not documented
(#370) Function format_mindmap_get_link_to_module is not documented
(#383) Function format_mindmap_get_lesson_dependency is not documented
(#403) Function format_mindmap_print_lesson_pages is not documented
(#525) Function format_mindmap_array_iunique is not documented
(#540) Function format_mindmap_print_lesson_page is not documented
(#562) Function format_mindmap_print_conditional_availability_arrows is not documented
(#603) Function format_mindmap_print_mod_icon is not documented
(#614) Function format_mindmap_grade_icon is not documented
(#731) Function format_mindmap_get_particular_module_time_constraints is not documented
(#832) Function format_mindmap_time_to_dhm is not documented
(#851) Function format_mindmap_print_grade_node is not documented
(#867) Function format_mindmap_print_feedback_node is not documented
(#880) Function format_mindmap_change_chars is not documented
(#891) Function format_mindmap_fold_item is not documented
(#903) Function format_mindmap_print_page is not documented
(#935) Function format_mindmap_escape_single_quote is not documented
(#63) Package is not specified for function format_mindmap_create_file. It is also not specified in file-level phpdocs
(#121) Package is not specified for function format_mindmap_print_section. It is also not specified in file-level phpdocs
(#170) Package is not specified for function format_mindmap_pamfs. It is also not specified in file-level phpdocs
(#182) Package is not specified for function format_mindmap_print_module. It is also not specified in file-level phpdocs
(#231) Package is not specified for function format_mindmap_print_fa. It is also not specified in file-level phpdocs
(#335) Package is not specified for function format_mindmap_print_book_chapter. It is also not specified in file-level phpdocs
(#352) Package is not specified for function format_mindmap_check_if_visited. It is also not specified in file-level phpdocs
(#370) Package is not specified for function format_mindmap_get_link_to_module. It is also not specified in file-level phpdocs
(#383) Package is not specified for function format_mindmap_get_lesson_dependency. It is also not specified in file-level phpdocs
(#403) Package is not specified for function format_mindmap_print_lesson_pages. It is also not specified in file-level phpdocs
(#525) Package is not specified for function format_mindmap_array_iunique. It is also not specified in file-level phpdocs
(#540) Package is not specified for function format_mindmap_print_lesson_page. It is also not specified in file-level phpdocs
(#562) Package is not specified for function format_mindmap_print_conditional_availability_arrows. It is also not specified in file-level phpdocs
(#603) Package is not specified for function format_mindmap_print_mod_icon. It is also not specified in file-level phpdocs
(#614) Package is not specified for function format_mindmap_grade_icon. It is also not specified in file-level phpdocs
(#731) Package is not specified for function format_mindmap_get_particular_module_time_constraints. It is also not specified in file-level phpdocs
(#832) Package is not specified for function format_mindmap_time_to_dhm. It is also not specified in file-level phpdocs
(#851) Package is not specified for function format_mindmap_print_grade_node. It is also not specified in file-level phpdocs
(#867) Package is not specified for function format_mindmap_print_feedback_node. It is also not specified in file-level phpdocs
(#880) Package is not specified for function format_mindmap_change_chars. It is also not specified in file-level phpdocs
(#891) Package is not specified for function format_mindmap_fold_item. It is also not specified in file-level phpdocs
(#903) Package is not specified for function format_mindmap_print_page. It is also not specified in file-level phpdocs
(#935) Package is not specified for function format_mindmap_escape_single_quote. It is also not specified in file-level phpdocs
course/format/mindmap/mind_map_generator/specialcharacters.php
(#17) No one-line description found in phpdocs for file
course/format/mindmap/renderer.php
(#20) Package format_topics is not valid
course/format/mindmap/version.php
(#17) No one-line description found in phpdocs for file

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

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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