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

(0 errors, 0 warnings)

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


Javascript coding style problems

(82 errors, 184 warnings)

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

mod/realtimequiz/editquestions.js
(#1) Expected space or tab after '/*' in comment. (spaced-comment)
(#1) 'M' is already defined as a built-in global variable. (no-redeclare)
(#2) Identifier 'mod_realtimequiz' is not in camel case. (camelcase)
(#4) Identifier 'init_editpage' is not in camel case. (camelcase)
(#4) Unexpected space before function parentheses. (space-before-function-paren)
(#9) Identifier 'highlight_correct' is not in camel case. (camelcase)
(#9) Unexpected space before function parentheses. (space-before-function-paren)
(#10) Unexpected space before function parentheses. (space-before-function-paren)
(#14) Unexpected 'this'. (no-invalid-this)
(#15) Unexpected 'this'. (no-invalid-this)
(#22) Unexpected 'this'. (no-invalid-this)
(#30) Unexpected space before function parentheses. (space-before-function-paren)
mod/realtimequiz/view_student.js
(#33) Expected space or tab after '/**' in comment. (spaced-comment)
(#36) Identifier 'realtimequiz_maxdebugmessages' is not in camel case. (camelcase)
(#37) Identifier 'realtimequiz_debug_stop' is not in camel case. (camelcase)
(#39) Identifier 'realtimequiz_debugmessage' is not in camel case. (camelcase)
(#39) 'realtimequiz_debugmessage' is defined but never used. (no-unused-vars)
(#40) Identifier 'realtimequiz_maxdebugmessages' is not in camel case. (camelcase)
(#41) Identifier 'realtimequiz_maxdebugmessages' is not in camel case. (camelcase)
(#44) This line has a length of 157. Maximum allowed is 132. (max-len)
(#51) Identifier 'realtimequiz_debug_stopall' is not in camel case. (camelcase)
(#51) 'realtimequiz_debug_stopall' is defined but never used. (no-unused-vars)
(#52) Identifier 'realtimequiz_debug_stop' is not in camel case. (camelcase)
(#56) Expected space or tab after '/**' in comment. (spaced-comment)
(#60) Identifier 'realtimequiz_set_maxanswers' is not in camel case. (camelcase)
(#60) 'realtimequiz_set_maxanswers' is defined but never used. (no-unused-vars)
(#64) Identifier 'realtimequiz_set_quizid' is not in camel case. (camelcase)
(#64) 'realtimequiz_set_quizid' is defined but never used. (no-unused-vars)
(#68) Identifier 'realtimequiz_set_userid' is not in camel case. (camelcase)
(#68) 'realtimequiz_set_userid' is defined but never used. (no-unused-vars)
(#72) Identifier 'realtimequiz_set_sesskey' is not in camel case. (camelcase)
(#72) 'realtimequiz_set_sesskey' is defined but never used. (no-unused-vars)
(#76) Identifier 'realtimequiz_set_image' is not in camel case. (camelcase)
(#76) 'realtimequiz_set_image' is defined but never used. (no-unused-vars)
(#80) Identifier 'realtimequiz_set_text' is not in camel case. (camelcase)
(#80) 'realtimequiz_set_text' is defined but never used. (no-unused-vars)
(#84) Identifier 'realtimequiz_set_coursepage' is not in camel case. (camelcase)
(#84) 'realtimequiz_set_coursepage' is defined but never used. (no-unused-vars)
(#88) Identifier 'realtimequiz_set_siteroot' is not in camel case. (camelcase)
(#88) 'realtimequiz_set_siteroot' is defined but never used. (no-unused-vars)
(#92) Identifier 'realtimequiz_set_running' is not in camel case. (camelcase)
(#92) 'realtimequiz_set_running' is defined but never used. (no-unused-vars)
(#96) Expected space or tab after '/**' in comment. (spaced-comment)
(#99) Identifier 'realtimequiz_init_student_view' is not in camel case. (camelcase)
(#99) 'realtimequiz_init_student_view' is defined but never used. (no-unused-vars)
(#100) ["joinquiz"] is better written in dot notation. (dot-notation)
(#101) ["joininstruct"] is better written in dot notation. (dot-notation)
(#105) Identifier 'realtimequiz_init_question_view' is not in camel case. (camelcase)
(#110) This line has a length of 355. Maximum allowed is 132. (max-len)
(#110) ["waitstudent"] is better written in dot notation. (dot-notation)
(#110) ["clicknext"] is better written in dot notation. (dot-notation)
(#112) 'realtimequiz_update_next_button' is not defined. (no-undef)
(#116) This line has a length of 311. Maximum allowed is 132. (max-len)
(#116) ["waitfirst"] is better written in dot notation. (dot-notation)
(#123) Expected space or tab after '/**' in comment. (spaced-comment)
(#126) Identifier 'realtimequiz_set_status' is not in camel case. (camelcase)
(#130) Identifier 'realtimequiz_set_question_number' is not in camel case. (camelcase)
(#131) ["question"] is better written in dot notation. (dot-notation)
(#135) Identifier 'realtimequiz_set_question_text' is not in camel case. (camelcase)
(#139) Identifier 'realtimequiz_set_question_image' is not in camel case. (camelcase)
(#141) This line has a length of 188. Maximum allowed is 132. (max-len)
(#147) Identifier 'realtimequiz_clear_answers' is not in camel case. (camelcase)
(#152) Identifier 'realtimequiz_set_answer' is not in camel case. (camelcase)
(#154) Unexpected alert. (no-alert)
(#154) ["invalidanswer"] is better written in dot notation. (dot-notation)
(#157) Multiple spaces found before '//ASCII 'A''. (no-multi-spaces)
(#157) Expected space or tab after '//' in comment. (spaced-comment)
(#164) ["blank"] is better written in dot notation. (dot-notation)
(#170) Identifier 'realtimequiz_set_question' is not in camel case. (camelcase)
(#171) Use '===' to compare with null. (no-eq-null)
(#172) Unexpected alert. (no-alert)
(#177) This line has a length of 143. Maximum allowed is 132. (max-len)
(#177) Multiple spaces found before '// If the ques...'. (no-multi-spaces)
(#202) Identifier 'realtimequiz_disable_answer' is not in camel case. (camelcase)
(#206) Identifier 'realtimequiz_set_result' is not in camel case. (camelcase)
(#217) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#218) ["tick"] is better written in dot notation. (dot-notation)
(#218) ["tick"] is better written in dot notation. (dot-notation)
(#220) ["cross"] is better written in dot notation. (dot-notation)
(#220) ["cross"] is better written in dot notation. (dot-notation)
(#231) Identifier 'realtimequiz_show_final_results' is not in camel case. (camelcase)
(#234) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#234) ["finalresults"] is better written in dot notation. (dot-notation)
(#235) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#235) ["classresult"] is better written in dot notation. (dot-notation)
(#235) ["resultcorrect"] is better written in dot notation. (dot-notation)
(#237) This line has a length of 139. Maximum allowed is 132. (max-len)
(#237) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#237) ["yourresult"] is better written in dot notation. (dot-notation)
(#238) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#238) ["resultcorrect"] is better written in dot notation. (dot-notation)
(#240) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#242) 'msg' is already defined. (no-redeclare)
(#242) 'msg' declared on line 234 column 13 is used outside of binding context. (block-scoped-var)
(#242) ["quizfinished"] is better written in dot notation. (dot-notation)
(#244) 'msg' declared on line 234 column 13 is used outside of binding context. (block-scoped-var)
(#244) 'msg' declared on line 242 column 13 is used outside of binding context. (block-scoped-var)
(#247) Comments should not begin with a lowercase character. (capitalized-comments)
(#247) Expected space or tab after '/**' in comment. (spaced-comment)
(#250) Identifier 'realtimequiz_select_choice' is not in camel case. (camelcase)
(#250) 'realtimequiz_select_choice' is defined but never used. (no-unused-vars)
(#252) ["sendinganswer"] is better written in dot notation. (dot-notation)
(#266) Expected space or tab after '/**' in comment. (spaced-comment)
(#269) Identifier 'realtimequiz_start_timer' is not in camel case. (camelcase)
(#272) ["displaynext"] is better written in dot notation. (dot-notation)
(#274) ["timeleft"] is better written in dot notation. (dot-notation)
(#277) Implied eval. Consider passing a function instead of a string. (no-implied-eval)
(#281) Identifier 'realtimequiz_stop_timer' is not in camel case. (camelcase)
(#282) Use '===' to compare with null. (no-eq-null)
(#288) Identifier 'realtimequiz_timer_tick' is not in camel case. (camelcase)
(#296) ["questionfinished"] is better written in dot notation. (dot-notation)
(#311) Expected space or tab after '/**' in comment. (spaced-comment)
(#314) Identifier 'realtimequiz_delayed_request' is not in camel case. (camelcase)
(#315) Use '===' to compare with null. (no-eq-null)
(#323) Identifier 'realtimequiz_create_request' is not in camel case. (camelcase)
(#326) Identifier 'realtimequiz_debug_stop' is not in camel case. (camelcase)
(#331) Use '===' to compare with null. (no-eq-null)
(#347) 'ActiveXObject' is not defined. (no-undef)
(#350) 'ActiveXObject' is not defined. (no-undef)
(#351) Empty block statement. (no-empty)
(#357) Unexpected alert. (no-alert)
(#357) ["httprequestfail"] is better written in dot notation. (dot-notation)
(#358) Function 'realtimequiz_create_request' expected no return value. (consistent-return)
(#360) Unexpected space before function parentheses. (space-before-function-paren)
(#371) Identifier 'realtimequiz_resend_request' is not in camel case. (camelcase)
(#381) Identifier 'realtimequiz_return_course' is not in camel case. (camelcase)
(#383) Unexpected alert. (no-alert)
(#385) Comments should not begin with a lowercase character. (capitalized-comments)
(#385) Expected space or tab after '//' in comment. (spaced-comment)
(#389) Identifier 'node_text' is not in camel case. (camelcase)
(#399) Identifier 'realtimequiz_get_question' is not in camel case. (camelcase)
(#403) Identifier 'realtimequiz_get_results' is not in camel case. (camelcase)
(#404) This line has a length of 133. Maximum allowed is 132. (max-len)
(#407) Identifier 'realtimequiz_post_answer' is not in camel case. (camelcase)
(#408) This line has a length of 187. Maximum allowed is 132. (max-len)
(#411) Identifier 'realtimequiz_join_quiz' is not in camel case. (camelcase)
(#411) 'realtimequiz_join_quiz' is defined but never used. (no-unused-vars)
(#416) Function 'realtimequiz_process_contents' has a complexity of 39. Maximum allowed is 20. (complexity)
(#416) Identifier 'realtimequiz_process_contents' is not in camel case. (camelcase)
(#420) Use '===' to compare with null. (no-eq-null)
(#434) Use '===' to compare with null. (no-eq-null)
(#444) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#445) Expected { after 'if' condition. (curly)
(#447) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#448) Unexpected alert. (no-alert)
(#448) ["noquestion"] is better written in dot notation. (dot-notation)
(#449) Blocks are nested too deeply (6). Maximum allowed is 4. (max-depth)
(#449) Unexpected confirm. (no-alert)
(#449) ["tryagain"] is better written in dot notation. (dot-notation)
(#456) Blocks are nested too deeply (6). Maximum allowed is 4. (max-depth)
(#462) 'realtimequiz_update_next_button' is not defined. (no-undef)
(#466) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#475) Blocks are nested too deeply (6). Maximum allowed is 4. (max-depth)
(#479) Blocks are nested too deeply (7). Maximum allowed is 4. (max-depth)
(#483) Blocks are nested too deeply (6). Maximum allowed is 4. (max-depth)
(#488) ["resultthisquestion"] is better written in dot notation. (dot-notation)
(#490) ["resultoverall"] is better written in dot notation. (dot-notation)
(#492) ["resultcorrect"] is better written in dot notation. (dot-notation)
(#493) Blocks are nested too deeply (7). Maximum allowed is 4. (max-depth)
(#494) This line has a length of 159. Maximum allowed is 132. (max-len)
(#494) ["yourresult"] is better written in dot notation. (dot-notation)
(#495) ["resultcorrect"] is better written in dot notation. (dot-notation)
(#502) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#503) 'realtimequiz_update_next_button' is not defined. (no-undef)
(#503) Multiple spaces found before '// Teacher con...'. (no-multi-spaces)
(#509) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#510) ["answersent"] is better written in dot notation. (dot-notation)
(#516) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#517) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#517) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#518) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#518) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#520) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#522) Identifier 'number_of_students' is not in camel case. (camelcase)
(#523) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#523) Identifier 'number_of_students' is not in camel case. (camelcase)
(#524) Blocks are nested too deeply (6). Maximum allowed is 4. (max-depth)
(#525) This line has a length of 158. Maximum allowed is 132. (max-len)
(#525) ["studentconnected"] is better written in dot notation. (dot-notation)
(#527) This line has a length of 159. Maximum allowed is 132. (max-len)
(#527) ["studentsconnected"] is better written in dot notation. (dot-notation)
(#530) 'waittime' declared on line 533 column 25 is used outside of binding context. (block-scoped-var)
(#533) 'waittime' is already defined. (no-redeclare)
(#533) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#534) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#534) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#535) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#535) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#537) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#540) 'waittime' declared on line 516 column 25 is used outside of binding context. (block-scoped-var)
(#546) ["quiznotrunning"] is better written in dot notation. (dot-notation)
(#553) Unexpected alert. (no-alert)
(#553) ["servererror"] is better written in dot notation. (dot-notation)
(#556) Unexpected alert. (no-alert)
(#556) ["badresponse"] is better written in dot notation. (dot-notation)
(#557) Blocks are nested too deeply (5). Maximum allowed is 4. (max-depth)
(#557) Unexpected confirm. (no-alert)
(#557) ["tryagain"] is better written in dot notation. (dot-notation)
(#578) Unexpected alert. (no-alert)
(#587) Expected space or tab after '//' in comment. (spaced-comment)
(#588) Expected space or tab after '//' in comment. (spaced-comment)
(#590) Expected space or tab after '//' in comment. (spaced-comment)
(#591) Expected space or tab after '//' in comment. (spaced-comment)
mod/realtimequiz/view_teacher.js
(#8) 'realtimequiz' is not defined. (no-undef)
(#10) Identifier 'realtimequiz_first_question' is not in camel case. (camelcase)
(#15) This line has a length of 136. Maximum allowed is 132. (max-len)
(#15) 'realtimequiz_create_request' is not defined. (no-undef)
(#15) 'realtimequiz' is not defined. (no-undef)
(#15) 'realtimequiz' is not defined. (no-undef)
(#16) Expected space or tab after '//' in comment. (spaced-comment)
(#19) Identifier 'realtimequiz_next_question' is not in camel case. (camelcase)
(#21) This line has a length of 177. Maximum allowed is 132. (max-len)
(#21) 'realtimequiz_create_request' is not defined. (no-undef)
(#21) 'realtimequiz' is not defined. (no-undef)
(#21) 'realtimequiz' is not defined. (no-undef)
(#21) 'realtimequiz' is not defined. (no-undef)
(#22) 'realtimequiz' is not defined. (no-undef)
(#22) 'realtimequiz' is not defined. (no-undef)
(#23) Expected space or tab after '//' in comment. (spaced-comment)
(#26) Identifier 'realtimequiz_update_next_button' is not in camel case. (camelcase)
(#27) 'realtimequiz' is not defined. (no-undef)
(#31) This line has a length of 146. Maximum allowed is 132. (max-len)
(#31) 'realtimequiz' is not defined. (no-undef)
(#31) 'realtimequiz' is not defined. (no-undef)
(#34) This line has a length of 175. Maximum allowed is 132. (max-len)
(#34) 'realtimequiz' is not defined. (no-undef)
(#34) ["next"] is better written in dot notation. (dot-notation)
(#38) This line has a length of 191. Maximum allowed is 132. (max-len)
(#38) 'realtimequiz' is not defined. (no-undef)
(#38) ["next"] is better written in dot notation. (dot-notation)
(#42) Identifier 'realtimequiz_start_quiz' is not in camel case. (camelcase)
(#43) 'realtimequiz' is not defined. (no-undef)
(#47) Identifier 'realtimequiz_start_new_quiz' is not in camel case. (camelcase)
(#47) 'realtimequiz_start_new_quiz' is defined but never used. (no-unused-vars)
(#48) Unexpected confirm. (no-alert)
(#48) 'realtimequiz' is not defined. (no-undef)
(#48) ["startnewquizconfirm"] is better written in dot notation. (dot-notation)
(#54) Identifier 'realtimequiz_reconnect_quiz' is not in camel case. (camelcase)
(#54) 'realtimequiz_reconnect_quiz' is defined but never used. (no-unused-vars)
(#55) 'realtimequiz' is not defined. (no-undef)
(#56) 'realtimequiz_create_request' is not defined. (no-undef)
(#56) 'realtimequiz' is not defined. (no-undef)
(#59) Identifier 'realtimequiz_init_teacher_view' is not in camel case. (camelcase)
(#59) 'realtimequiz_init_teacher_view' is defined but never used. (no-unused-vars)
(#60) 'realtimequiz' is not defined. (no-undef)
(#60) Multiple spaces found before '// Set to true...'. (no-multi-spaces)
(#62) 'realtimequiz' is not defined. (no-undef)
(#63) This line has a length of 133. Maximum allowed is 132. (max-len)
(#63) 'realtimequiz' is not defined. (no-undef)
(#63) ["reconnectquiz"] is better written in dot notation. (dot-notation)
(#64) 'realtimequiz' is not defined. (no-undef)
(#64) ["reconnectinstruct"] is better written in dot notation. (dot-notation)
(#65) This line has a length of 215. Maximum allowed is 132. (max-len)
(#65) 'realtimequiz' is not defined. (no-undef)
(#65) ["startnewquiz"] is better written in dot notation. (dot-notation)
(#66) 'realtimequiz' is not defined. (no-undef)
(#66) ["teacherstartnewinstruct"] is better written in dot notation. (dot-notation)
(#68) This line has a length of 208. Maximum allowed is 132. (max-len)
(#68) 'realtimequiz' is not defined. (no-undef)
(#68) ["startquiz"] is better written in dot notation. (dot-notation)
(#69) 'realtimequiz' is not defined. (no-undef)
(#69) ["teacherstartinstruct"] is better written in dot notation. (dot-notation)
(#71) 'realtimequiz' is not defined. (no-undef)
(#71) ["joinquizasstudent"] is better written in dot notation. (dot-notation)
(#72) 'realtimequiz' is not defined. (no-undef)
(#72) ["teacherjoinquizinstruct"] is better written in dot notation. (dot-notation)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


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]


Gherkin .feature problems

(0 errors, 0 warnings)

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