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

(12 errors, 32 warnings)

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

question/type/shortanssimilarity/classes/output/mobile.php
(#48) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
(#51) There should be a comma after the last array item in a multi-line array.
question/type/shortanssimilarity/classes/privacy/provider.php
(#112) There should be a comma after the last array item in a multi-line array.
question/type/shortanssimilarity/db/mobile.php
(#42) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
(#44) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
question/type/shortanssimilarity/edit_shortanssimilarity_form.php
(#87) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
question/type/shortanssimilarity/lib.php
(#39) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
question/type/shortanssimilarity/question.php
(#48) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#267) Short array syntax must be used to define arrays
(#268) Short array syntax must be used to define arrays
(#271) There should be a comma after the last array item in a multi-line array.
(#355) Short array syntax must be used to define arrays
(#402) Short array syntax must be used to define arrays
(#424) Short array syntax must be used to define arrays
(#438) There should be a comma after the last array item in a multi-line array.
(#447) Short array syntax must be used to define arrays
question/type/shortanssimilarity/questiontype.php
(#71) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#148) There should be a comma after the last array item in a multi-line array.
(#181) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
question/type/shortanssimilarity/renderer.php
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays

Javascript coding style problems

(11 errors, 5 warnings)

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

question/type/shortanssimilarity/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/shortanssimilarity/mobile/mobile.js
(#31) Unexpected console statement. (no-console)
(#37) 'questiontext' is assigned a value but never used. (no-unused-vars)
(#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

(1 errors, 0 warnings)

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

question/type/shortanssimilarity/mobile/styles_app.css
(#2) Unexpected empty block (block-no-empty)

PHPDocs style problems

(5 errors, 0 warnings)

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

question/type/shortanssimilarity/lib.php
(#49) Phpdocs for function qtype_shortanssimilarity_call_bridge has incomplete parameters list
question/type/shortanssimilarity/question.php
(#87) Inline phpdocs tag {@link question_attempt} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#90) Inline phpdocs tag {@link get_num_variants()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#306) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#396) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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]