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

(196 errors, 132 warnings)

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

public/question/type/regexmatch/backup/moodle2/backup_qtype_regexmatch_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
public/question/type/regexmatch/backup/moodle2/restore_qtype_regexmatch_plugin.class.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Opening brace must not be followed by a blank line
public/question/type/regexmatch/classes/output/mobile.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Opening brace must not be followed by a blank line
(#47) Expected at least 1 space after "."; 0 found
public/question/type/regexmatch/classes/privacy/provider.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Opening brace must not be followed by a blank line
public/question/type/regexmatch/common/common.php
(#1) Missing docblock for file common.php
(#1) Moodle boilerplate not found
(#1) Opening PHP tag must be on a line by itself
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Multiple artifacts detected.
(#5) Missing docblock for constant QTYPE_REGEXMATCH_COMMON_SEPARATOR_KEY
(#6) Missing docblock for constant QTYPE_REGEXMATCH_COMMON_FEEDBACK_KEY
(#7) Missing docblock for constant QTYPE_REGEXMATCH_COMMON_SIZE_KEY
(#8) Missing docblock for constant QTYPE_REGEXMATCH_COMMON_POINTS_KEY
(#9) Missing docblock for constant QTYPE_REGEXMATCH_COMMON_COMMENT_KEY
(#18) DocBlock missing a @package tag for class qtype_regexmatch_common_regex. Expected @package qtype_regexmatch
(#32) Expected "bool" but found "boolean" for @var tag in member variable comment
(#45) Missing docblock for function __construct
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) The CASE body must start on the line following the statement
(#74) Terminating statement must be on a line by itself
(#74) Closing brace must be on a line by itself
(#74) Each PHP statement must be on a line by itself
(#75) The CASE body must start on the line following the statement
(#75) Terminating statement must be on a line by itself
(#75) Closing brace must be on a line by itself
(#75) Each PHP statement must be on a line by itself
(#76) The CASE body must start on the line following the statement
(#76) Terminating statement must be on a line by itself
(#76) Closing brace must be on a line by itself
(#76) Each PHP statement must be on a line by itself
(#77) The CASE body must start on the line following the statement
(#77) Terminating statement must be on a line by itself
(#77) Closing brace must be on a line by itself
(#77) Each PHP statement must be on a line by itself
(#78) The CASE body must start on the line following the statement
(#78) Terminating statement must be on a line by itself
(#78) Closing brace must be on a line by itself
(#78) Each PHP statement must be on a line by itself
(#79) The CASE body must start on the line following the statement
(#79) Terminating statement must be on a line by itself
(#79) Closing brace must be on a line by itself
(#79) Each PHP statement must be on a line by itself
(#80) The CASE body must start on the line following the statement
(#80) Terminating statement must be on a line by itself
(#80) Closing brace must be on a line by itself
(#80) Each PHP statement must be on a line by itself
(#82) The CASE body must start on the line following the statement
(#82) Terminating statement must be on a line by itself
(#82) Closing brace must be on a line by itself
(#82) Each PHP statement must be on a line by itself
(#83) The CASE body must start on the line following the statement
(#83) Terminating statement must be on a line by itself
(#83) Closing brace must be on a line by itself
(#83) Each PHP statement must be on a line by itself
(#84) The CASE body must start on the line following the statement
(#84) Terminating statement must be on a line by itself
(#84) Closing brace must be on a line by itself
(#84) Each PHP statement must be on a line by itself
(#85) The CASE body must start on the line following the statement
(#85) Terminating statement must be on a line by itself
(#85) Closing brace must be on a line by itself
(#85) Each PHP statement must be on a line by itself
(#86) The CASE body must start on the line following the statement
(#86) Terminating statement must be on a line by itself
(#86) Closing brace must be on a line by itself
(#86) Each PHP statement must be on a line by itself
(#87) The CASE body must start on the line following the statement
(#87) Terminating statement must be on a line by itself
(#87) Closing brace must be on a line by itself
(#87) Each PHP statement must be on a line by itself
(#88) The CASE body must start on the line following the statement
(#88) Terminating statement must be on a line by itself
(#88) Closing brace must be on a line by itself
(#88) Each PHP statement must be on a line by itself
(#97) DocBlock missing a @package tag for class qtype_regexmatch_common_answer. Expected @package qtype_regexmatch
(#97) Each class must be in a file by itself
(#97) Opening brace must not be followed by a blank line
(#124) Missing docblock for function __construct
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Expected "if (...) {\n"; found "if(...) {\n"
(#140) Expected 1 space after IF keyword; 0 found
(#142) Expected "do {\n...} while (...);\n"; found "do {\n...} while(...);\n"
(#143) Expected "if (...) {\n"; found "if(...) {\n"
(#143) Expected 1 space after IF keyword; 0 found
(#147) Blank line found at end of control structure
(#148) Blank line found at start of control structure
(#150) Expected "if (...) {\n"; found "if(...) {\n"
(#150) Expected 1 space after IF keyword; 0 found
(#151) No space found before comment text; expected "// Invalid syntax." but found "//Invalid syntax."
(#152) Short array syntax must be used to define arrays
(#156) Variable "percentMatch" must be all lower-case
(#157) Variable "percentMatch" must be all lower-case
(#158) Variable "percentMatch" must be all lower-case
(#163) Inline comments must end in full-stops, exclamation marks, or question marks
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Inline comments must start with a capital letter, digit or 3-dots sequence
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#171) Inline comments must start with a capital letter, digit or 3-dots sequence
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Blank line found at end of control structure
(#179) Expected 1 space after WHILE keyword; 0 found
(#181) Inline comments must end in full-stops, exclamation marks, or question marks
(#183) Blank line found at end of control structure
(#185) Inline comments must end in full-stops, exclamation marks, or question marks
(#185) No space found before comment text; expected "// Invalid syntax. Maybe it is an old regex" but found "//Invalid syntax. Maybe it is an old regex"
(#186) Short array syntax must be used to define arrays
(#197) Inline comments must end in full-stops, exclamation marks, or question marks
(#199) Expected "if (...) {\n"; found "if(...) {\n"
(#199) Expected 1 space after IF keyword; 0 found
(#201) Inline comments must end in full-stops, exclamation marks, or question marks
(#201) No space found before comment text; expected "// This can safely be ignored" but found "//This can safely be ignored"
(#202) Blank line found at end of control structure
(#204) Inline comments must start with a capital letter, digit or 3-dots sequence
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) Blank line found at end of control structure
(#210) Blank line found at end of control structure
(#212) Inline comments must start with a capital letter, digit or 3-dots sequence
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
(#214) Blank line found at end of control structure
(#216) Inline comments must start with a capital letter, digit or 3-dots sequence
(#216) Inline comments must end in full-stops, exclamation marks, or question marks
(#218) Blank line found at end of control structure
(#220) Expected 1 space after IF keyword; 0 found
(#220) Inline control structures are not allowed
(#221) Expected 1 space after IF keyword; 0 found
(#221) Inline control structures are not allowed
(#233) DocBlock missing a @package tag for function qtype_regexmatch_common_str_starts_with. Expected @package qtype_regexmatch
(#243) DocBlock missing a @package tag for function qtype_regexmatch_common_construct_regex. Expected @package qtype_regexmatch
(#246) Expected 1 space after IF keyword; 0 found
(#246) Inline control structures are not allowed
(#249) Expected 1 space after IF keyword; 0 found
(#249) Inline control structures are not allowed
(#251) Short array syntax must be used to define arrays
(#252) Short array syntax must be used to define arrays
(#256) Expected 1 space after IF keyword; 0 found
(#256) Inline control structures are not allowed
(#258) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#263) Inline comments must start with a capital letter, digit or 3-dots sequence
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) Short array syntax must be used to define arrays
(#268) Short array syntax must be used to define arrays
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#272) Expected 1 space after IF keyword; 0 found
(#272) Inline control structures are not allowed
(#275) Expected 1 space after IF keyword; 0 found
(#275) Inline control structures are not allowed
(#288) DocBlock missing a @package tag for function qtype_regexmatch_common_try_regex. Expected @package qtype_regexmatch
(#288) Line exceeds 132 characters; contains 147 characters
(#292) Expected 1 space after IF keyword; 0 found
(#292) Inline control structures are not allowed
(#292) Expected 0 spaces after opening bracket; 1 found
(#295) Expected "if (...) {\n"; found "if(...) {\n"
(#295) Expected 1 space after IF keyword; 0 found
(#295) Expected 0 spaces after opening bracket; 1 found
(#300) Expected "if (...) {\n"; found "if(...) {\n"
(#300) Expected 1 space after IF keyword; 0 found
(#300) Expected 0 spaces after opening bracket; 1 found
(#307) Expected 1 space after comma in argument list; 2 found
(#307) Expected 1 space between the comma and "$regex". Found: 2 spaces
(#311) Expected 1 space after IF keyword; 0 found
(#311) Inline control structures are not allowed
(#313) Expected "if (...) {\n"; found "if(...) {\n"
(#313) Expected 1 space after IF keyword; 0 found
(#318) Expected "if (...) {\n"; found "if(...) {\n"
(#318) Expected 1 space after IF keyword; 0 found
(#325) Expected 1 space after IF keyword; 0 found
(#325) Inline control structures are not allowed
(#335) Inline comments must end in full-stops, exclamation marks, or question marks
(#336) Expected 1 space after comma in argument list; 2 found
(#336) Expected 1 space between the comma and "$regex". Found: 2 spaces
(#338) Expected "if (...) {\n"; found "if(...) {\n"
(#338) Expected 1 space after IF keyword; 0 found
(#343) Expected 1 newline at end of file; 0 found
public/question/type/regexmatch/db/mobile.php
(#39) 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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
public/question/type/regexmatch/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
public/question/type/regexmatch/edit_regexmatch_form.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Short array syntax must be used to define arrays
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Opening parenthesis of a multi-line function call must be the last content on the line
(#84) Short array syntax must be used to define arrays
(#90) Opening parenthesis of a multi-line function call must be the last content on the line
(#96) Opening parenthesis of a multi-line function call must be the last content on the line
(#99) Short array syntax must be used to define arrays
(#146) Inline comments must start with a capital letter, digit or 3-dots sequence
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Inline comments must start with a capital letter, digit or 3-dots sequence
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) Inline comments must start with a capital letter, digit or 3-dots sequence
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must start with a capital letter, digit or 3-dots sequence
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#176) Inline comments must end in full-stops, exclamation marks, or question marks
(#199) Line exceeds 132 characters; contains 171 characters
(#203) Blank line found at end of control structure
(#205) Blank line found at end of control structure
(#210) Blank line found at end of control structure
(#215) Blank line found at end of control structure
public/question/type/regexmatch/lang/de/qtype_regexmatch.php
(#28) Unexpected comment found. Auto-fixing will not work after this comment
(#30) The use of backticks in strings is not recommended
(#34) The use of backticks in strings is not recommended
(#35) The use of backticks in strings is not recommended
(#36) The use of backticks in strings is not recommended
(#38) The use of backticks in strings is not recommended
(#41) The use of backticks in strings is not recommended
(#42) The use of backticks in strings is not recommended
(#44) The use of backticks in strings is not recommended
(#45) The use of backticks in strings is not recommended
(#47) The use of backticks in strings is not recommended
(#85) The string key "options" is not in the correct order, it should be before "regex_help"
(#86) The string key "default_options" is not in the correct order, it should be before "options"
(#87) Unexpected comment found. Auto-fixing will not work after this comment
(#89) The use of backticks in strings is not recommended
(#96) The use of backticks in strings is not recommended
(#99) The use of backticks in strings is not recommended
(#100) The use of backticks in strings is not recommended
(#106) The use of backticks in strings is not recommended
(#108) The use of backticks in strings is not recommended
(#112) The use of backticks in strings is not recommended
(#113) The use of backticks in strings is not recommended
(#117) The string key "default_options_help" is not in the correct order, it should be before "options_help"
(#117) Unexpected comment found. Auto-fixing will not work after this comment
(#121) The use of backticks in strings is not recommended
(#129) The string key "notenoughregexes" is not in the correct order, it should be before "pleaseenterananswer"
(#130) The string key "fborgradewithoutregex" is not in the correct order, it should be before "notenoughregexes"
(#132) The string key "pluginname_help" is not in the correct order, it should be before "regex-number"
(#137) The string key "dollarroofmustbeescaped" is not in the correct order, it should be before "pluginnamesummary"
(#139) The string key "valerror_illegaloption" is not in the correct order, it should be before "valerror_illegalsyntax"
(#140) The string key "valerror_illegalkeyorder" is not in the correct order, it should be before "valerror_illegaloption"
(#142) The string key "error_unparsable" is not in the correct order, it should be before "valerror_unkownkey"
public/question/type/regexmatch/lang/en/qtype_regexmatch.php
(#28) Unexpected comment found. Auto-fixing will not work after this comment
(#30) The use of backticks in strings is not recommended
(#34) The use of backticks in strings is not recommended
(#35) The use of backticks in strings is not recommended
(#36) The use of backticks in strings is not recommended
(#38) The use of backticks in strings is not recommended
(#41) The use of backticks in strings is not recommended
(#42) The use of backticks in strings is not recommended
(#44) The use of backticks in strings is not recommended
(#46) The use of backticks in strings is not recommended
(#82) The string key "options" is not in the correct order, it should be before "regex_help"
(#83) The string key "default_options" is not in the correct order, it should be before "options"
(#84) Unexpected comment found. Auto-fixing will not work after this comment
(#86) The use of backticks in strings is not recommended
(#92) The use of backticks in strings is not recommended
(#95) The use of backticks in strings is not recommended
(#96) The use of backticks in strings is not recommended
(#100) The use of backticks in strings is not recommended
(#101) The use of backticks in strings is not recommended
(#105) The use of backticks in strings is not recommended
(#106) The use of backticks in strings is not recommended
(#109) The string key "default_options_help" is not in the correct order, it should be before "options_help"
(#109) Unexpected comment found. Auto-fixing will not work after this comment
(#113) The use of backticks in strings is not recommended
(#121) The string key "notenoughregexes" is not in the correct order, it should be before "pleaseenterananswer"
(#122) The string key "fborgradewithoutregex" is not in the correct order, it should be before "notenoughregexes"
(#124) The string key "pluginname_help" is not in the correct order, it should be before "regex-number"
(#129) The string key "dollarroofmustbeescaped" is not in the correct order, it should be before "pluginnamesummary"
(#131) The string key "valerror_illegaloption" is not in the correct order, it should be before "valerror_illegalsyntax"
(#132) The string key "valerror_illegalkeyorder" is not in the correct order, it should be before "valerror_illegaloption"
(#134) The string key "error_unparsable" is not in the correct order, it should be before "valerror_unkownkey"
public/question/type/regexmatch/lib.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Incorrect spacing between argument "$options" and equals sign; expected 1 but found 0
(#44) Incorrect spacing between default value and equals sign for argument "$options"; expected 1 but found 0
(#44) Short array syntax must be used to define arrays
public/question/type/regexmatch/question.php
(#37) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#51) Opening brace must not be followed by a blank line
(#56) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#95) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#95) Only one argument is allowed per line in a multi-line function call
(#95) Only one argument is allowed per line in a multi-line function call
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#103) Short array syntax must be used to define arrays
(#174) Short array syntax must be used to define arrays
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#205) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#205) Multi-line function declarations must define one parameter per line
(#205) Multi-line function declarations must define one parameter per line
(#205) Multi-line function declarations must define one parameter per line
(#206) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#206) Multi-line function declarations must define one parameter per line
(#206) The closing parenthesis of a multi-line function declaration must be on a new line
(#210) Opening parenthesis of a multi-line function call must be the last content on the line
(#210) Only one argument is allowed per line in a multi-line function call
(#210) Only one argument is allowed per line in a multi-line function call
(#210) Only one argument is allowed per line in a multi-line function call
(#211) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#211) Only one argument is allowed per line in a multi-line function call
(#211) Closing parenthesis of a multi-line function call must be on a line by itself
(#214) Expected 1 blank line at end of file; 3 found
public/question/type/regexmatch/questiontype.php
(#40) Opening brace must not be followed by a blank line
(#148) Expected at least 1 space before "."; 0 found
(#148) Expected at least 1 space after "."; 0 found
public/question/type/regexmatch/renderer.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Opening brace must not be followed by a blank line
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) This comment is 50% valid code; is this commented out code?
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Short array syntax must be used to define arrays
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Short array syntax must be used to define arrays
(#102) This comment is 50% valid code; is this commented out code?
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Only one argument is allowed per line in a multi-line function call
public/question/type/regexmatch/version.php
(#38) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(16 errors, 5 warnings)

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

public/question/type/regexmatch/javascript/mobile.js
(#18) Trailing spaces not allowed. (no-trailing-spaces)
(#30) Unexpected console statement. (no-console)
(#36) 'questiontext' is assigned a value but never used. (no-unused-vars)
(#45) Trailing spaces not allowed. (no-trailing-spaces)
(#53) Trailing spaces not allowed. (no-trailing-spaces)
(#62) Unexpected empty arrow function. (no-empty-function)
(#63) Trailing spaces not allowed. (no-trailing-spaces)
(#68) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
public/question/type/regexmatch/mobile/mobile.js
(#19) Trailing spaces not allowed. (no-trailing-spaces)
(#31) Unexpected console statement. (no-console)
(#37) 'questiontext' is assigned a value but never used. (no-unused-vars)
(#47) Trailing spaces not allowed. (no-trailing-spaces)
(#55) Trailing spaces not allowed. (no-trailing-spaces)
(#62) Trailing spaces not allowed. (no-trailing-spaces)
(#63) Trailing spaces not allowed. (no-trailing-spaces)
(#66) Comments should not begin with a lowercase character. (capitalized-comments)
(#66) Expected space or tab after '//' in comment. (spaced-comment)
(#67) Missing semicolon. (semi)
(#71) Comments should not begin with a lowercase character. (capitalized-comments)
(#71) Expected space or tab after '//' in comment. (spaced-comment)
(#76) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(2 errors, 0 warnings)

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

public/question/type/regexmatch/common/common.php
(#131) Phpdocs for function qtype_regexmatch_common_answer::parse has incomplete parameters list
(#192) Phpdocs for function qtype_regexmatch_common_answer::read_key_value_pairs has incomplete parameters list

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]