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

(206 errors, 114 warnings)

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

question/format/hotpot/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#4) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#6) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
question/format/hotpot/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Variable "REGEX" must be all lower-case
(#46) Variable "REGEX" must be all lower-case
(#49) Variable "questiontext_LIKE" must be all lower-case
(#49) Variable "questiontext_LIKE" must not contain underscores.
(#50) Variable "questiontext_LIKE" must be all lower-case
(#50) Variable "questiontext_LIKE" must not contain underscores.
(#50) Line exceeds 132 characters; contains 135 characters
question/format/hotpot/format.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Visibility must be declared on method "provide_import"
(#49) Expected 1 space before opening brace; found 2
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Visibility must be declared on method "readquestions"
(#72) Expected 1 space before opening brace; found 2
(#73) 3 slashes comments are not allowed; use "// Comment." instead
(#74) 3 slashes comments are not allowed; use "// Comment." instead
(#75) 3 slashes comments are not allowed; use "// Comment." instead
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Expected 1 space before "+"; 0 found
(#82) Expected 1 space after "+"; 0 found
(#84) Closing brace must be on a line by itself
(#85) Closing brace must be on a line by itself
(#86) Closing brace must be on a line by itself
(#87) Closing brace must be on a line by itself
(#88) Closing brace must be on a line by itself
(#92) Expected 1 space before "=="; 0 found
(#92) Expected 1 space after "=="; 0 found
(#109) Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4; $glue should be the first parameter and $pieces the second
(#111) Inline comments must start with a capital letter, digit or 3-dots sequence
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Inline comments must start with a capital letter, digit or 3-dots sequence
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Closing brace must be on a line by itself
(#118) Closing brace must be on a line by itself
(#119) Closing brace must be on a line by itself
(#120) Closing brace must be on a line by itself
(#121) Closing brace must be on a line by itself
(#124) Expected 1 space before "=="; 0 found
(#124) Expected 1 space after "=="; 0 found
(#138) Visibility must be declared on method "process_jcloze"
(#138) Expected 1 space before opening brace; found 2
(#139) Inline comments must start with a capital letter, digit or 3-dots sequence
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Variable "gap_count" must not contain underscores.
(#149) Inline comments must start with a capital letter, digit or 3-dots sequence
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#154) Inline comments must start with a capital letter, digit or 3-dots sequence
(#154) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Expected 1 space before ">"; 0 found
(#158) Expected 1 space after ">"; 0 found
(#169) Inline comments must start with a capital letter, digit or 3-dots sequence
(#169) Inline comments must end in full-stops, exclamation marks, or question marks
(#171) Line exceeds 132 characters; contains 136 characters
(#175) Inline comments must start with a capital letter, digit or 3-dots sequence
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#187) Variable "open_text" must not contain underscores.
(#188) Variable "open_text" must not contain underscores.
(#191) Inline comments must start with a capital letter, digit or 3-dots sequence
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#192) Variable "gap_marker" must not contain underscores.
(#193) Variable "question_record" must not contain underscores.
(#194) Variable "question_record" must not contain underscores.
(#196) Inline comments must start with a capital letter, digit or 3-dots sequence
(#196) Inline comments must end in full-stops, exclamation marks, or question marks
(#197) Variable "gap_count" must not contain underscores.
(#198) Variable "gap_marker" must not contain underscores.
(#198) Expected 1 space before "+"; 0 found
(#198) Expected 1 space after "+"; 0 found
(#200) Inline comments must start with a capital letter, digit or 3-dots sequence
(#200) Inline comments must end in full-stops, exclamation marks, or question marks
(#202) Inline comments must start with a capital letter, digit or 3-dots sequence
(#202) Inline comments must end in full-stops, exclamation marks, or question marks
(#203) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#210) Expected 1 space before "=="; 0 found
(#210) Expected 1 space after "=="; 0 found
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
(#215) Expected 1 space before "=>"; 0 found
(#215) Expected 1 space after "=>"; 0 found
(#215) Expected 1 space before "=>"; 0 found
(#215) Expected 1 space after "=>"; 0 found
(#216) Expected 1 space before "=>"; 0 found
(#216) Expected 1 space after "=>"; 0 found
(#216) Expected 1 space before "=>"; 0 found
(#216) Expected 1 space after "=>"; 0 found
(#219) Inline comments must start with a capital letter, digit or 3-dots sequence
(#219) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) Expected 1 space before "="; 0 found
(#225) Expected 1 space after "="; 0 found
(#225) Variable "question_record" must not contain underscores.
(#228) Line exceeds 132 characters; contains 137 characters
(#235) Expected 1 space before "=="; 0 found
(#235) Expected 1 space after "=="; 0 found
(#245) Expected 1 space before "=="; 0 found
(#245) Expected 1 space after "=="; 0 found
(#245) Expected 1 space before "=="; 0 found
(#245) Expected 1 space after "=="; 0 found
(#249) Expected 1 space before "="; 0 found
(#249) Expected 1 space after "="; 0 found
(#249) Variable "question_record" must not contain underscores.
(#254) Inline comments must start with a capital letter, digit or 3-dots sequence
(#254) Inline comments must end in full-stops, exclamation marks, or question marks
(#254) This comment is 42% valid code; is this commented out code?
(#256) Inline comments must start with a capital letter, digit or 3-dots sequence
(#256) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Inline comments must start with a capital letter, digit or 3-dots sequence
(#265) Inline comments must end in full-stops, exclamation marks, or question marks
(#273) Variable "gap_marker" must not contain underscores.
(#275) Variable "gap_marker" must not contain underscores.
(#277) Variable "gap_marker" must not contain underscores.
(#287) Inline comments must start with a capital letter, digit or 3-dots sequence
(#287) Inline comments must end in full-stops, exclamation marks, or question marks
(#288) Variable "gap_count" must not contain underscores.
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#289) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Inline comments must start with a capital letter, digit or 3-dots sequence
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) Empty ELSE statement detected
(#294) Inline comments must start with a capital letter, digit or 3-dots sequence
(#295) Inline comments must end in full-stops, exclamation marks, or question marks
(#308) Visibility must be declared on method "hotpot_jcloze_wordlist"
(#313) Expected 1 space before "="; 0 found
(#313) Expected 1 space after "="; 0 found
(#316) Expected 1 space before "="; 0 found
(#316) Expected 1 space after "="; 0 found
(#340) Visibility must be declared on method "process_jcross"
(#340) Expected 1 space before opening brace; found 2
(#341) Inline comments must start with a capital letter, digit or 3-dots sequence
(#341) Inline comments must end in full-stops, exclamation marks, or question marks
(#365) Expected 1 space before "=>"; 0 found
(#365) Expected 1 space after "=>"; 0 found
(#365) Expected 1 space before "=>"; 0 found
(#365) Expected 1 space after "=>"; 0 found
(#379) Visibility must be declared on method "process_jmatch"
(#379) Expected 1 space before opening brace; found 2
(#380) Inline comments must start with a capital letter, digit or 3-dots sequence
(#380) Inline comments must end in full-stops, exclamation marks, or question marks
(#382) Variable "match_count" must not contain underscores.
(#384) Inline comments must start with a capital letter, digit or 3-dots sequence
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#389) Inline comments must start with a capital letter, digit or 3-dots sequence
(#389) Inline comments must end in full-stops, exclamation marks, or question marks
(#393) Expected 1 space before ">"; 0 found
(#393) Expected 1 space after ">"; 0 found
(#395) Expected 1 space before "=>"; 0 found
(#395) Expected 1 space after "=>"; 0 found
(#395) Expected 1 space before "=>"; 0 found
(#395) Expected 1 space after "=>"; 0 found
(#396) Expected 1 space before "=>"; 0 found
(#396) Expected 1 space after "=>"; 0 found
(#396) Expected 1 space before "=>"; 0 found
(#396) Expected 1 space after "=>"; 0 found
(#397) Expected 1 space before "=>"; 0 found
(#397) Expected 1 space after "=>"; 0 found
(#397) Expected 1 space before "=>"; 0 found
(#397) Expected 1 space after "=>"; 0 found
(#410) Variable "match_count" must not contain underscores.
(#419) Variable "match_count" must not contain underscores.
(#419) Inline comments must end in full-stops, exclamation marks, or question marks
(#420) Inline comments must end in full-stops, exclamation marks, or question marks
(#432) Visibility must be declared on method "process_jmix"
(#432) Expected 1 space before opening brace; found 2
(#433) Inline comments must start with a capital letter, digit or 3-dots sequence
(#433) Inline comments must end in full-stops, exclamation marks, or question marks
(#435) Variable "segment_count" must not contain underscores.
(#437) Inline comments must start with a capital letter, digit or 3-dots sequence
(#437) Inline comments must end in full-stops, exclamation marks, or question marks
(#442) Inline comments must start with a capital letter, digit or 3-dots sequence
(#442) Inline comments must end in full-stops, exclamation marks, or question marks
(#446) Expected 1 space before ">"; 0 found
(#446) Expected 1 space after ">"; 0 found
(#456) Variable "segment_count" must not contain underscores.
(#472) Expected 1 space before "=>"; 0 found
(#472) Expected 1 space after "=>"; 0 found
(#472) Expected 1 space before "=>"; 0 found
(#472) Expected 1 space after "=>"; 0 found
(#476) Variable "segment_count" must not contain underscores.
(#476) Inline comments must end in full-stops, exclamation marks, or question marks
(#477) Inline comments must end in full-stops, exclamation marks, or question marks
(#489) Visibility must be declared on method "process_jquiz"
(#489) Expected 1 space before opening brace; found 2
(#490) Inline comments must start with a capital letter, digit or 3-dots sequence
(#490) Inline comments must end in full-stops, exclamation marks, or question marks
(#493) Inline comments must start with a capital letter, digit or 3-dots sequence
(#493) Inline comments must end in full-stops, exclamation marks, or question marks
(#498) Inline comments must start with a capital letter, digit or 3-dots sequence
(#498) Inline comments must end in full-stops, exclamation marks, or question marks
(#501) Variable "question_record" must not contain underscores.
(#501) Variable "question_record" must not contain underscores.
(#504) Inline comments must end in full-stops, exclamation marks, or question marks
(#505) Inline comments must end in full-stops, exclamation marks, or question marks
(#508) Variable "question_record" must not contain underscores.
(#512) Spaces must be used to indent lines; tabs are not allowed
(#512) Tab found within whitespace
(#512) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) Line indented incorrectly; expected at least 16 spaces, found 4
(#513) Spaces must be used to indent lines; tabs are not allowed
(#513) Tab found within whitespace
(#513) Line indented incorrectly; expected at least 16 spaces, found 4
(#516) Variable "question_record" must not contain underscores.
(#517) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#518) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#519) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#520) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#522) Expected 1 space before "=="; 0 found
(#522) Expected 1 space after "=="; 0 found
(#526) Expected 1 space before "=>"; 0 found
(#526) Expected 1 space after "=>"; 0 found
(#526) Expected 1 space before "=>"; 0 found
(#526) Expected 1 space after "=>"; 0 found
(#527) Expected 1 space before "=>"; 0 found
(#527) Expected 1 space after "=>"; 0 found
(#527) Expected 1 space before "=>"; 0 found
(#527) Expected 1 space after "=>"; 0 found
(#528) Expected 1 space before "=>"; 0 found
(#528) Expected 1 space after "=>"; 0 found
(#528) Expected 1 space before "=>"; 0 found
(#528) Expected 1 space after "=>"; 0 found
(#530) Expected 1 space before "=="; 0 found
(#530) Expected 1 space after "=="; 0 found
(#531) Inline comments must start with a capital letter, digit or 3-dots sequence
(#531) Inline comments must end in full-stops, exclamation marks, or question marks
(#536) Inline comments must start with a capital letter, digit or 3-dots sequence
(#536) Inline comments must end in full-stops, exclamation marks, or question marks
(#537) Variable "question_record" must not contain underscores.
(#539) Inline comments must start with a capital letter, digit or 3-dots sequence
(#539) Inline comments must end in full-stops, exclamation marks, or question marks
(#540) Variable "no_of_correct_answers" must not contain underscores.
(#541) Variable "no_of_incorrect_answers" must not contain underscores.
(#542) Expected 1 space before "=="; 0 found
(#542) Expected 1 space after "=="; 0 found
(#547) Variable "no_of_incorrect_answers" must not contain underscores.
(#549) Variable "no_of_correct_answers" must not contain underscores.
(#560) Variable "correct_answers" must not contain underscores.
(#561) Variable "correct_answers_all_zero" must not contain underscores.
(#564) Expected 1 space before "=="; 0 found
(#564) Expected 1 space after "=="; 0 found
(#565) Inline comments must start with a capital letter, digit or 3-dots sequence
(#565) Inline comments must end in full-stops, exclamation marks, or question marks
(#567) Inline comments must start with a capital letter, digit or 3-dots sequence
(#567) Inline comments must end in full-stops, exclamation marks, or question marks
(#568) Expected 1 space before "/"; 0 found
(#568) Expected 1 space after "/"; 0 found
(#568) Variable "no_of_incorrect_answers" must not contain underscores.
(#570) Expected 1 space before "/"; 0 found
(#570) Expected 1 space after "/"; 0 found
(#570) Variable "no_of_correct_answers" must not contain underscores.
(#573) Inline comments must start with a capital letter, digit or 3-dots sequence
(#573) Inline comments must end in full-stops, exclamation marks, or question marks
(#578) Expected 1 space before "/"; 0 found
(#578) Expected 1 space after "/"; 0 found
(#583) Expected 1 space before "=="; 0 found
(#583) Expected 1 space after "=="; 0 found
(#586) Expected 1 space before "=>"; 0 found
(#586) Expected 1 space after "=>"; 0 found
(#595) Variable "correct_answers_all_zero" must not contain underscores.
(#597) Variable "correct_answers" must not contain underscores.
(#603) Variable "correct_answers_all_zero" must not contain underscores.
(#604) Inline comments must start with a capital letter, digit or 3-dots sequence
(#605) Inline comments must end in full-stops, exclamation marks, or question marks
(#606) Variable "correct_answers" must not contain underscores.
(#610) Inline comments must start with a capital letter, digit or 3-dots sequence
(#610) Inline comments must end in full-stops, exclamation marks, or question marks
(#628) Visibility must be declared on method "hotpot_get_title"
(#628) Variable "append_q_to_title" must not contain underscores.
(#628) Expected 1 space before opening brace; found 2
(#630) Variable "append_q_to_title" must not contain underscores.
(#631) Expected 1 space before "+"; 0 found
(#631) Expected 1 space after "+"; 0 found
(#642) Visibility must be declared on method "hotpot_get_instructions"
(#642) Expected 1 space before opening brace; found 2
(#646) Closing brace must be on a line by itself
(#647) Closing brace must be on a line by itself
(#660) Visibility must be declared on method "hotpot_get_reading"
(#660) Expected 1 space before opening brace; found 2
(#680) Visibility must be declared on method "hotpot_prepare_str"
(#680) Expected 1 space before opening brace; found 2
(#681) Inline comments must start with a capital letter, digit or 3-dots sequence
(#681) Inline comments must end in full-stops, exclamation marks, or question marks
(#684) Inline comments must end in full-stops, exclamation marks, or question marks
(#689) Inline comments must end in full-stops, exclamation marks, or question marks
(#694) Inline comments must end in full-stops, exclamation marks, or question marks
question/format/hotpot/lang/en/qformat_hotpot.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
question/format/hotpot/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) 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

(8 errors, 2 warnings)

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

question/format/hotpot/classes/privacy/provider.php
(#6) Class provider is not documented
(#6) Package is not specified for class provider. It is also not specified in file-level phpdocs
question/format/hotpot/db/upgrade.php
(#20) Package qformat is not valid
question/format/hotpot/format.php
(#2) Empty line found after PHP open tag
(#73) Found comment starting with three or more slashes
(#74) Found comment starting with three or more slashes
(#75) Found comment starting with three or more slashes
(#21) Package questionbank is not valid
question/format/hotpot/lang/en/qformat_hotpot.php
(#2) Empty line found after PHP open tag
question/format/hotpot/version.php
(#20) Package qformat is not valid

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]