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

(40 errors, 5 warnings)

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

mod/scorm/report/numbas/classes/interaction.php
(#31) Member variable "N" must be all lower-case
(#36) Visibility must be declared on method "__construct"
(#36) Variable "N" must be all lower-case
(#37) Variable "N" must be all lower-case
(#37) Variable "N" must be all lower-case
mod/scorm/report/numbas/classes/part.php
(#33) Whitespace found at end of line
(#37) Member variable "student_answer" must not contain underscores.
(#40) Member variable "correct_answer" must not contain underscores.
(#48) Visibility must be declared on method "__construct"
mod/scorm/report/numbas/classes/question.php
(#33) Visibility must be declared on method "__construct"
mod/scorm/report/numbas/classes/report.php
(#94) Variable "re_interaction" must not contain underscores.
(#94) Line exceeds 132 characters; contains 146 characters
(#95) Variable "suspend_data" must not contain underscores.
(#97) Variable "re_interaction" must not contain underscores.
(#107) Variable "suspend_data" must not contain underscores.
(#107) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#127) Expected 1 space before "!=="; 0 found
(#127) Expected 1 space after "!=="; 0 found
(#133) Expected 1 space before "!=="; 0 found
(#133) Expected 1 space after "!=="; 0 found
(#140) Variable "element_map" must not contain underscores.
(#149) Variable "element_map" must not contain underscores.
(#162) Expected 1 space before "=="; 0 found
(#162) Expected 1 space after "=="; 0 found
(#178) Line exceeds 132 characters; contains 135 characters
(#181) Expected 1 space before "=="; 0 found
(#181) Expected 1 space after "=="; 0 found
(#184) Commas (,) must be followed by white space.
(#184) Line exceeds 132 characters; contains 145 characters
(#191) Variable "part_type_names" must not contain underscores.
(#206) Variable "suspend_data" must not contain underscores.
(#210) Expected 1 space before "+"; 0 found
(#210) Expected 1 space after "+"; 0 found
(#212) Expected 1 space after ".="; 2 found
(#235) Variable "suspend_data" must not contain underscores.
(#270) Expected 1 space before "=="; 0 found
(#270) Expected 1 space after "=="; 0 found
(#277) Variable "part_type_names" must not contain underscores.
(#278) Variable "part_type_names" must not contain underscores.
(#303) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#306) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#349) Line exceeds 132 characters; contains 141 characters
mod/scorm/report/numbas/lang/en/scormreport_numbas.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/scorm/report/numbas/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(15 errors, 2 warnings)

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

mod/scorm/report/numbas/classes/interaction.php
(#18) Package scormreport is not valid
(#29) Class interaction is not documented
(#36) Function interaction::__construct is not documented
mod/scorm/report/numbas/classes/part.php
(#18) Package scormreport is not valid
(#29) Class part is not documented
(#48) Function part::__construct is not documented
mod/scorm/report/numbas/classes/question.php
(#18) Package scormreport is not valid
(#29) Class question is not documented
(#33) Function question::__construct is not documented
mod/scorm/report/numbas/classes/report.php
(#33) Class report is not documented
(#72) Function report::view_attempt is not documented
mod/scorm/report/numbas/lang/en/scormreport_numbas.php
(#6) Package scormreport is not valid
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block does not have @copyright tag
mod/scorm/report/numbas/version.php
(#5) Package scormreport is not valid
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block does not have @copyright tag

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [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]