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

(51 errors, 100 warnings)

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

question/type/regexmatch/backup/moodle2/backup_qtype_regexmatch_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
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
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
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
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
question/type/regexmatch/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
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
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"
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"
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
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
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
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
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]

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)
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

(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]