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

(1 errors, 4 warnings)

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

mod/quizgame/db/install.php
(#33) Expected MOODLE_INTERNAL check or config.php inclusion
mod/quizgame/db/uninstall.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion
mod/quizgame/grade.php
(#26) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
mod/quizgame/renderer.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
(#25) Visibility must be declared on method "render_game"

Javascript coding style problems

(13 errors, 92 warnings)

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

mod/quizgame/amd/src/quizgame.js
(#47) 'playing' is defined but never used. (no-unused-vars)
(#62) Unexpected space before function parentheses. (space-before-function-paren)
(#66) Missing JSDoc comment. (require-jsdoc)
(#74) Missing JSDoc comment. (require-jsdoc)
(#86) Missing JSDoc comment. (require-jsdoc)
(#93) Missing JSDoc comment. (require-jsdoc)
(#112) Missing JSDoc comment. (require-jsdoc)
(#119) Missing JSDoc comment. (require-jsdoc)
(#130) Missing JSDoc comment. (require-jsdoc)
(#136) Missing JSDoc comment. (require-jsdoc)
(#144) 'questions' is not defined. (no-undef)
(#144) 'questions' is not defined. (no-undef)
(#152) Missing JSDoc comment. (require-jsdoc)
(#152) 'e' is defined but never used. (no-unused-vars)
(#154) 'questions' is not defined. (no-undef)
(#173) Missing JSDoc comment. (require-jsdoc)
(#177) Missing JSDoc comment. (require-jsdoc)
(#191) Missing JSDoc comment. (require-jsdoc)
(#225) Missing JSDoc comment. (require-jsdoc)
(#227) 'questions' is not defined. (no-undef)
(#231) 'questions' is not defined. (no-undef)
(#233) Missing JSDoc comment. (require-jsdoc)
(#240) Line 240 exceeds the maximum line length of 132. (max-len)
(#255) Line 255 exceeds the maximum line length of 132. (max-len)
(#256) Line 256 exceeds the maximum line length of 132. (max-len)
(#266) Missing JSDoc comment. (require-jsdoc)
(#273) 'i' used outside of binding context. (block-scoped-var)
(#273) 'i' used outside of binding context. (block-scoped-var)
(#273) 'i' used outside of binding context. (block-scoped-var)
(#274) 'i' used outside of binding context. (block-scoped-var)
(#281) Line 281 exceeds the maximum line length of 132. (max-len)
(#288) Line 288 exceeds the maximum line length of 132. (max-len)
(#292) Missing JSDoc comment. (require-jsdoc)
(#296) 'i' used outside of binding context. (block-scoped-var)
(#296) 'i' used outside of binding context. (block-scoped-var)
(#296) 'i' used outside of binding context. (block-scoped-var)
(#297) 'i' used outside of binding context. (block-scoped-var)
(#298) 'i' used outside of binding context. (block-scoped-var)
(#299) 'i' used outside of binding context. (block-scoped-var)
(#300) 'i' used outside of binding context. (block-scoped-var)
(#303) 'i' used outside of binding context. (block-scoped-var)
(#303) 'i' used outside of binding context. (block-scoped-var)
(#303) 'i' used outside of binding context. (block-scoped-var)
(#304) 'i' used outside of binding context. (block-scoped-var)
(#305) 'i' used outside of binding context. (block-scoped-var)
(#306) 'i' used outside of binding context. (block-scoped-var)
(#308) 'i' used outside of binding context. (block-scoped-var)
(#309) 'i' used outside of binding context. (block-scoped-var)
(#310) 'i' used outside of binding context. (block-scoped-var)
(#315) Missing JSDoc comment. (require-jsdoc)
(#315) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#322) Unexpected space before function parentheses. (space-before-function-paren)
(#325) Unexpected space before function parentheses. (space-before-function-paren)
(#328) Unexpected space before function parentheses. (space-before-function-paren)
(#334) Unexpected space before function parentheses. (space-before-function-paren)
(#342) Missing JSDoc comment. (require-jsdoc)
(#354) Unexpected space before function parentheses. (space-before-function-paren)
(#361) Unexpected space before function parentheses. (space-before-function-paren)
(#369) Unexpected space before function parentheses. (space-before-function-paren)
(#372) Unexpected space before function parentheses. (space-before-function-paren)
(#375) Unexpected space before function parentheses. (space-before-function-paren)
(#379) Missing JSDoc comment. (require-jsdoc)
(#387) Unexpected space before function parentheses. (space-before-function-paren)
(#416) Unexpected space before function parentheses. (space-before-function-paren)
(#428) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#440) Missing JSDoc comment. (require-jsdoc)
(#444) Unexpected space before function parentheses. (space-before-function-paren)
(#450) Missing JSDoc comment. (require-jsdoc)
(#465) Unexpected space before function parentheses. (space-before-function-paren)
(#513) Unexpected space before function parentheses. (space-before-function-paren)
(#527) 'shot' is defined but never used. (no-unused-vars)
(#527) Unexpected empty function. (no-empty-function)
(#530) Missing JSDoc comment. (require-jsdoc)
(#540) Unexpected space before function parentheses. (space-before-function-paren)
(#559) Missing JSDoc comment. (require-jsdoc)
(#624) Missing JSDoc comment. (require-jsdoc)
(#631) Unexpected space before function parentheses. (space-before-function-paren)
(#641) Unexpected space before function parentheses. (space-before-function-paren)
(#648) Missing JSDoc comment. (require-jsdoc)
(#659) Unexpected space before function parentheses. (space-before-function-paren)
(#672) Unexpected space before function parentheses. (space-before-function-paren)
(#675) Unexpected space before function parentheses. (space-before-function-paren)
(#681) Missing JSDoc comment. (require-jsdoc)
(#690) Unexpected space before function parentheses. (space-before-function-paren)
(#696) Unexpected space before function parentheses. (space-before-function-paren)
(#702) Missing JSDoc comment. (require-jsdoc)
(#706) Missing JSDoc comment. (require-jsdoc)
(#706) Identifier 'collide_ordered' is not in camel case. (camelcase)
(#706) Expected to return a value at the end of this function. (consistent-return)
(#728) Missing JSDoc comment. (require-jsdoc)
(#734) Missing JSDoc comment. (require-jsdoc)
(#744) Missing JSDoc comment. (require-jsdoc)
(#753) Missing JSDoc comment. (require-jsdoc)
(#759) Missing JSDoc comment. (require-jsdoc)
(#776) Missing JSDoc comment. (require-jsdoc)
(#786) Missing JSDoc comment. (require-jsdoc)
(#800) Missing JSDoc comment. (require-jsdoc)
(#806) Missing JSDoc comment. (require-jsdoc)
(#811) Missing JSDoc comment. (require-jsdoc)
(#812) There should be no spaces inside this paren. (space-in-parens)
(#822) Missing JSDoc comment. (require-jsdoc)
(#830) Missing JSDoc comment. (require-jsdoc)
(#835) Missing JSDoc comment. (require-jsdoc)
(#836) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#851) Missing JSDoc comment. (require-jsdoc)

CSS problems

(3 errors, 0 warnings)

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

mod/quizgame/styles.css
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#6) Expected single space before "{" (block-opening-brace-space-before)
(#3) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)

PHPDocs style problems

(3 errors, 0 warnings)

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

mod/quizgame/renderer.php
(#17) File-level phpdocs block is not found
(#17) Class mod_quizgame_renderer is not documented
(#17) Package is not specified for class mod_quizgame_renderer. It is also not specified in file-level phpdocs

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, 1 warnings)

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

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

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]