Prechecker results: error


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

(100 errors, 16 warnings)

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

mod/courseboard/backup/moodle2/backup_courseboard_stepslib.php
(#49) Commas (,) must be followed by white space.
mod/courseboard/courseboard_ajax.php
(#18) Whitespace found at end of line
(#20) Whitespace found at end of line
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Whitespace found at end of line
(#92) Variable "messageInfo" must be all lower-case
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) No space found before comment text; expected "// Info for the message function" but found "//Info for the message function"
(#94) Variable "messageInfo" must be all lower-case
(#95) Variable "messageInfo" must be all lower-case
(#96) Variable "messageInfo" must be all lower-case
(#97) Variable "messageInfo" must be all lower-case
(#98) Whitespace found at end of line
(#99) Variable "messageInfo" must be all lower-case
(#188) Whitespace found at end of line
(#231) Expected "if (...) {\n"; found "if(...) {\n"
(#236) Whitespace found at end of line
(#247) Variable "messageInfo" must be all lower-case
(#248) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) No space found before comment text; expected "// Info for the message function" but found "//Info for the message function"
(#249) Variable "messageInfo" must be all lower-case
(#250) Variable "messageInfo" must be all lower-case
(#251) Variable "messageInfo" must be all lower-case
(#252) Variable "messageInfo" must be all lower-case
(#253) Whitespace found at end of line
(#254) Variable "messageInfo" must be all lower-case
(#283) Variable "messageInfo" must be all lower-case
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#284) No space found before comment text; expected "// Info for the message function" but found "//Info for the message function"
(#285) Variable "messageInfo" must be all lower-case
(#286) Variable "messageInfo" must be all lower-case
(#287) Variable "messageInfo" must be all lower-case
(#288) Variable "messageInfo" must be all lower-case
(#289) Whitespace found at end of line
(#290) Variable "messageInfo" must be all lower-case
mod/courseboard/db/access.php
(#61) Whitespace found at end of line
(#71) Whitespace found at end of line
(#76) Whitespace found at end of line
(#81) Whitespace found at end of line
mod/courseboard/db/messages.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
mod/courseboard/db/upgrade.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Whitespace found at end of line
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) 3 slashes comments are not allowed; use "// Comment." instead
mod/courseboard/index.php
(#84) Line exceeds 132 characters; contains 136 characters
mod/courseboard/lib.php
(#33) This comment is 49% valid code; is this commented out code?
(#112) Whitespace found at end of line
(#114) Whitespace found at end of line
(#118) Whitespace found at end of line
(#124) Line exceeds maximum limit of 180 characters; contains 187 characters
(#127) Whitespace found at end of line
(#134) Line exceeds 132 characters; contains 172 characters
(#135) Whitespace found at end of line
(#143) Commas (,) must be followed by white space.
(#144) Line exceeds 132 characters; contains 170 characters
(#145) Whitespace found at end of line
(#152) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#162) Whitespace found at end of line
(#172) Line exceeds 132 characters; contains 145 characters
(#179) Line indented incorrectly; expected at least 4 spaces, found 3
(#179) Commas (,) must be followed by white space.
(#182) Line exceeds maximum limit of 180 characters; contains 189 characters
(#191) Line exceeds 132 characters; contains 179 characters
mod/courseboard/locallib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#40) function name "courseboard_send_eventNotifications" must be lower-case letters only
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 4 spaces, found 1
(#43) Expected "if (...) {\n"; found "if(...){\n"
(#45) Variable "newEventMessage" must be all lower-case
(#47) Variable "newEventMessage" must be all lower-case
(#48) Variable "newEventMessage" must be all lower-case
(#49) Variable "newEventMessage" must be all lower-case
(#50) Variable "newEventMessage" must be all lower-case
(#51) Variable "newEventMessage" must be all lower-case
(#52) Variable "newEventMessage" must be all lower-case
(#53) Variable "newEventMessage" must be all lower-case
(#54) Variable "newEventMessage" must be all lower-case
(#55) Variable "newEventMessage" must be all lower-case
(#56) Variable "newEventMessage" must be all lower-case
(#57) Variable "newEventMessage" must be all lower-case
(#59) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#59) Variable "enrolledUser" must be all lower-case
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 12 spaces, found 9
(#60) Variable "newEventMessage" must be all lower-case
(#60) Variable "enrolledUser" must be all lower-case
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 12 spaces, found 7
(#62) Inline control structures are not allowed
(#62) Variable "enrolledUser" must be all lower-case
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 12 spaces, found 10
(#63) Variable "newEventMessage" must be all lower-case
mod/courseboard/mod_form.php
(#56) Visibility must be declared on method "definition"
mod/courseboard/renderer.php
(#19) Whitespace found at end of line
(#31) Whitespace found at end of line
(#107) Line indented incorrectly; expected at least 12 spaces, found 8
(#123) Whitespace found at end of line
(#124) Whitespace found at end of line
(#147) Expected 1 space before "=>"; 0 found
(#147) Expected 1 space after "=>"; 0 found
(#147) Line exceeds 132 characters; contains 153 characters
(#205) Whitespace found at end of line
(#206) Whitespace found at end of line
(#232) Expected 1 space before "=>"; 0 found
(#232) Expected 1 space after "=>"; 0 found
mod/courseboard/version.php
(#21) Whitespace found at end of line
mod/courseboard/view.php
(#18) Whitespace found at end of line
(#20) Whitespace found at end of line

Javascript coding style problems

(60 errors, 104 warnings)

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

mod/courseboard/script.js
(#14) Missing JSDoc comment. (require-jsdoc)
(#14) Identifier 'courseboard_postInsert' is not in camel case. (camelcase)
(#14) 'courseboard_postInsert' is defined but never used (no-unused-vars)
(#15) '$' is not defined. (no-undef)
(#15) '$' is not defined. (no-undef)
(#16) '$' is not defined. (no-undef)
(#17) '$' is not defined. (no-undef)
(#19) '$' is not defined. (no-undef)
(#21) Missing space before value for key 'url'. (key-spacing)
(#22) Missing space before value for key 'type'. (key-spacing)
(#23) Missing space before value for key 'timeout'. (key-spacing)
(#24) Missing space before value for key 'data'. (key-spacing)
(#24) Extra space after key 'fnc'. (key-spacing)
(#24) There should be no space before ','. (comma-spacing)
(#24) Missing space before value for key 'q'. (key-spacing)
(#24) There should be no space before ','. (comma-spacing)
(#24) Missing space before value for key 's'. (key-spacing)
(#24) Missing space before value for key 'k'. (key-spacing)
(#24) Missing space before value for key 'b'. (key-spacing)
(#24) Missing space before value for key 'r'. (key-spacing)
(#24) Missing space before value for key 'sesskey'. (key-spacing)
(#26) Extra space after key 'beforeSend'. (key-spacing)
(#27) '$' is not defined. (no-undef)
(#28) '$' is not defined. (no-undef)
(#31) Extra space after key 'success'. (key-spacing)
(#31) 'data' is defined but never used (no-unused-vars)
(#37) '$' is not defined. (no-undef)
(#38) '$' is not defined. (no-undef)
(#41) '$' is not defined. (no-undef)
(#61) Missing JSDoc comment. (require-jsdoc)
(#61) 'courseboard_rate' is defined but never used (no-unused-vars)
(#61) Identifier 'courseboard_rate' is not in camel case. (camelcase)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#62) '$' is not defined. (no-undef)
(#88) '$' is not defined. (no-undef)
(#88) Unexpected space between function name and paren. (no-spaced-func)
(#89) Missing space before value for key 'url'. (key-spacing)
(#90) Missing space before value for key 'type'. (key-spacing)
(#91) Missing space before value for key 'timeout'. (key-spacing)
(#92) Missing space before value for key 'data'. (key-spacing)
(#92) Missing space before value for key 'q'. (key-spacing)
(#92) A space is required after ','. (comma-spacing)
(#92) Missing space before value for key 'fnc'. (key-spacing)
(#92) A space is required after ','. (comma-spacing)
(#92) Missing space before value for key 'k'. (key-spacing)
(#92) A space is required after ','. (comma-spacing)
(#92) Missing space before value for key 'r'. (key-spacing)
(#92) Missing space before value for key 'b'. (key-spacing)
(#92) Missing space before value for key 'h'. (key-spacing)
(#92) A space is required after ','. (comma-spacing)
(#92) Missing space before value for key 'sesskey'. (key-spacing)
(#94) Missing space before value for key 'beforeSend'. (key-spacing)
(#95) '$' is not defined. (no-undef)
(#96) '$' is not defined. (no-undef)
(#100) Extra space after key 'success'. (key-spacing)
(#100) Missing space before opening brace. (space-before-blocks)
(#121) Missing JSDoc comment. (require-jsdoc)
(#121) 'courseboard_commInsert' is defined but never used (no-unused-vars)
(#121) Identifier 'courseboard_commInsert' is not in camel case. (camelcase)
(#122) '$' is not defined. (no-undef)
(#122) '$' is not defined. (no-undef)
(#123) '$' is not defined. (no-undef)
(#124) '$' is not defined. (no-undef)
(#126) '$' is not defined. (no-undef)
(#126) Unexpected space between function name and paren. (no-spaced-func)
(#127) Missing space before value for key 'type'. (key-spacing)
(#128) Missing space before value for key 'url'. (key-spacing)
(#129) Missing space before value for key 'timeout'. (key-spacing)
(#130) Missing space before value for key 'data'. (key-spacing)
(#130) Missing space before value for key 'o'. (key-spacing)
(#130) A space is required after ','. (comma-spacing)
(#130) Missing space before value for key 'q'. (key-spacing)
(#130) A space is required after ','. (comma-spacing)
(#130) Missing space before value for key 's'. (key-spacing)
(#130) A space is required after ','. (comma-spacing)
(#130) Missing space before value for key 'fnc'. (key-spacing)
(#130) A space is required after ','. (comma-spacing)
(#130) Missing space before value for key 'k'. (key-spacing)
(#130) Missing space before value for key 'r'. (key-spacing)
(#130) Missing space before value for key 'b'. (key-spacing)
(#130) Missing space before value for key 'sesskey'. (key-spacing)
(#132) Missing space before opening brace. (space-before-blocks)
(#133) '$' is not defined. (no-undef)
(#134) '$' is not defined. (no-undef)
(#136) Missing space before opening brace. (space-before-blocks)
(#140) Expected space(s) after "if". (keyword-spacing)
(#140) '$' is not defined. (no-undef)
(#141) '$' is not defined. (no-undef)
(#141) '$' is not defined. (no-undef)
(#142) '$' is not defined. (no-undef)
(#142) A space is required after ','. (comma-spacing)
(#145) 'commbtnval' is defined but never used (no-unused-vars)
(#145) '$' is not defined. (no-undef)
(#146) '$' is not defined. (no-undef)
(#147) '$' is not defined. (no-undef)
(#147) '$' is not defined. (no-undef)
(#148) '$' is not defined. (no-undef)
(#148) A space is required after ','. (comma-spacing)
(#152) There should be no space before ','. (comma-spacing)
(#157) '$' is not defined. (no-undef)
(#160) '$' is not defined. (no-undef)
(#171) Missing JSDoc comment. (require-jsdoc)
(#171) Identifier 'courseboard_commShow' is not in camel case. (camelcase)
(#171) 'courseboard_commShow' is defined but never used (no-unused-vars)
(#172) '$' is not defined. (no-undef)
(#173) '$' is not defined. (no-undef)
(#174) '$' is not defined. (no-undef)
(#175) '$' is not defined. (no-undef)
(#186) Missing JSDoc comment. (require-jsdoc)
(#186) Identifier 'courseboard_commHide' is not in camel case. (camelcase)
(#186) 'courseboard_commHide' is defined but never used (no-unused-vars)
(#187) '$' is not defined. (no-undef)
(#188) '$' is not defined. (no-undef)
(#189) '$' is not defined. (no-undef)
(#190) '$' is not defined. (no-undef)
(#203) Missing JSDoc comment. (require-jsdoc)
(#203) Identifier 'courseboard_commsRefresh' is not in camel case. (camelcase)
(#204) '$' is not defined. (no-undef)
(#205) Missing space before value for key 'type'. (key-spacing)
(#206) Missing space before value for key 'url'. (key-spacing)
(#207) Missing space before value for key 'timeout'. (key-spacing)
(#208) Missing space before value for key 'data'. (key-spacing)
(#208) Missing space before value for key 'q'. (key-spacing)
(#208) A space is required after ','. (comma-spacing)
(#208) Missing space before value for key 'k'. (key-spacing)
(#208) A space is required after ','. (comma-spacing)
(#208) Missing space before value for key 'r'. (key-spacing)
(#208) A space is required after ','. (comma-spacing)
(#208) Missing space before value for key 'fnc'. (key-spacing)
(#208) Missing space before value for key 'b'. (key-spacing)
(#208) Missing space before value for key 'sesskey'. (key-spacing)
(#210) Missing space before opening brace. (space-before-blocks)
(#212) '$' is not defined. (no-undef)
(#213) '$' is not defined. (no-undef)
(#216) Missing space before opening brace. (space-before-blocks)
(#217) '$' is not defined. (no-undef)
(#217) A space is required after ','. (comma-spacing)
(#217) Missing space before opening brace. (space-before-blocks)
(#218) '$' is not defined. (no-undef)
(#221) '$' is not defined. (no-undef)
(#222) '$' is not defined. (no-undef)
(#239) Missing JSDoc comment. (require-jsdoc)
(#239) Identifier 'courseboard_courseboardRefresh' is not in camel case. (camelcase)
(#240) '$' is not defined. (no-undef)
(#242) '$' is not defined. (no-undef)
(#242) Unexpected space between function name and paren. (no-spaced-func)
(#243) Missing space before value for key 'url'. (key-spacing)
(#244) Missing space before value for key 'type'. (key-spacing)
(#245) Missing space before value for key 'timeout'. (key-spacing)
(#246) Missing space before value for key 'data'. (key-spacing)
(#246) Missing space before value for key 'q'. (key-spacing)
(#246) A space is required after ','. (comma-spacing)
(#246) Missing space before value for key 'fnc'. (key-spacing)
(#246) A space is required after ','. (comma-spacing)
(#246) Missing space before value for key 'k'. (key-spacing)
(#246) Missing space before value for key 'r'. (key-spacing)
(#246) Missing space before value for key 'b'. (key-spacing)
(#246) Missing space before value for key 'sesskey'. (key-spacing)
(#248) Extra space after key 'beforeSend'. (key-spacing)
(#249) '$' is not defined. (no-undef)
(#250) '$' is not defined. (no-undef)
(#254) Extra space after key 'success'. (key-spacing)
(#255) '$' is not defined. (no-undef)
(#256) '$' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(49 errors, 2 warnings)

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

mod/courseboard/backup/moodle2/backup_courseboard_activity_task.class.php
(#17) No one-line description found in phpdocs for file
(#28) No one-line description found in phpdocs for class backup_courseboard_activity_task
(#48) Phpdocs for function backup_courseboard_activity_task::encode_content_links has incomplete parameters list
(#28) Class backup_courseboard_activity_task does not have @copyright tag
(#28) Class backup_courseboard_activity_task does not have @license tag
mod/courseboard/backup/moodle2/backup_courseboard_stepslib.php
(#31) Function backup_courseboard_activity_structure_step::define_structure is not documented
(#17) No one-line description found in phpdocs for file
(#26) Class backup_courseboard_activity_structure_step does not have @copyright tag
(#26) Class backup_courseboard_activity_structure_step does not have @license tag
mod/courseboard/backup/moodle2/restore_courseboard_activity_task.class.php
(#33) Class restore_courseboard_activity_task is not documented
(#17) No one-line description found in phpdocs for file
mod/courseboard/backup/moodle2/restore_courseboard_stepslib.php
(#31) Function restore_courseboard_activity_structure_step::define_structure is not documented
(#48) Function restore_courseboard_activity_structure_step::process_courseboard is not documented
(#63) Function restore_courseboard_activity_structure_step::process_courseboard_post is not documented
(#80) Function restore_courseboard_activity_structure_step::process_courseboard_comment is not documented
(#96) Function restore_courseboard_activity_structure_step::process_courseboard_rating is not documented
(#112) Function restore_courseboard_activity_structure_step::after_execute is not documented
(#17) No one-line description found in phpdocs for file
(#26) Class restore_courseboard_activity_structure_step does not have @copyright tag
(#26) Class restore_courseboard_activity_structure_step does not have @license tag
mod/courseboard/courseboard_ajax.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#21) Not recommended phpdocs tag @version used
mod/courseboard/db/access.php
(#17) File-level phpdocs block is not found
mod/courseboard/db/upgrade.php
(#25) Function xmldb_courseboard_upgrade is not documented
(#31) Found comment starting with three or more slashes
mod/courseboard/index.php
(#17) File-level phpdocs block does not have @copyright tag
mod/courseboard/lang/de/courseboard.php
(#21) Package mod/courseboard is not valid
mod/courseboard/lang/en/courseboard.php
(#21) Package mod/courseboard is not valid
mod/courseboard/lib.php
(#36) Function courseboard_add_instance is not documented
(#17) No one-line description found in phpdocs for file
(#262) There is no description in phpdocs for function courseboard_supports
(#111) Phpdocs for function courseboard_user_outline has incomplete parameters list
(#159) Phpdocs for function courseboard_user_complete has incomplete parameters list
(#201) Phpdocs for function courseboard_print_recent_activity has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
mod/courseboard/locallib.php
(#33) Phpdocs for function courseboard_send_eventNotifications has incomplete parameters list
mod/courseboard/mod_form.php
(#55) Class mod_courseboard_mod_form is not documented
(#56) Function mod_courseboard_mod_form::definition is not documented
(#16) No one-line description found in phpdocs for file
(#16) File-level phpdocs block does not have @copyright tag
(#16) File-level phpdocs block does not have @license tag
(#55) Package is not specified for class mod_courseboard_mod_form. It is also not specified in file-level phpdocs
mod/courseboard/renderer.php
(#28) Class mod_courseboard_renderer is not documented
(#137) Function mod_courseboard_renderer::render_comment is not documented
(#219) Function mod_courseboard_renderer::render_post is not documented
mod/courseboard/version.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
mod/courseboard/view.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#21) Not recommended phpdocs tag @version used

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]