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

(0 errors, 0 warnings)

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


Javascript coding style problems

(23 errors, 173 warnings)

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

question/type/gapfill/dragdrop.js
(#25) '$' is defined but never used. (no-unused-vars)
(#27) 'jqui' is defined but never used. (no-unused-vars)
(#34) 'ui' is defined but never used. (no-unused-vars)
(#37) 'ui' is defined but never used. (no-unused-vars)
question/type/gapfill/jquery/jquery-ui.touch-punch.js
(#1) Expected space or tab after '/*' in comment. (spaced-comment)
(#11) Line 11 exceeds the maximum line length of 132. (max-len)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Missing JSDoc comment. (require-jsdoc)
(#11) A space is required after ','. (comma-spacing)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) This line has 17 statements. Maximum allowed is 2. (max-statements-per-line)
(#11) Expected space(s) after "if". (keyword-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Unexpected use of comma operator. (no-sequences)
(#11) Requires a space before '}'. (block-spacing)
(#11) Missing semicolon. (semi)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Requires a space before '}'. (block-spacing)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Expected space(s) before "if". (keyword-spacing)
(#11) Expected space(s) after "if". (keyword-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) Unexpected use of comma operator. (no-sequences)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Requires a space after '{'. (block-spacing)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) A space is required after ','. (comma-spacing)
(#11) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Missing semicolon. (semi)
(#11) Requires a space before '}'. (block-spacing)
(#11) Unexpected use of comma operator. (no-sequences)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing semicolon. (semi)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Requires a space before '}'. (block-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space before '}'. (block-spacing)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Missing semicolon. (semi)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Missing space before value for key 'touchstart'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing space before value for key 'touchmove'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing space before value for key 'touchend'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Unexpected use of comma operator. (no-sequences)
(#11) Requires a space before '}'. (block-spacing)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Missing semicolon. (semi)
(#11) A space is required after ','. (comma-spacing)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Requires a space after '{'. (block-spacing)
(#11) Statement inside of curly braces should be on next line. (brace-style)
(#11) Missing space before opening brace. (space-before-blocks)
(#11) Infix operators must be spaced. (space-infix-ops)
(#11) Missing whitespace after semicolon. (semi-spacing)
(#11) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#11) Missing space before value for key 'touchstart'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing space before value for key 'touchmove'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing space before value for key 'touchend'. (key-spacing)
(#11) A space is required after ','. (comma-spacing)
(#11) Unexpected use of comma operator. (no-sequences)
(#11) A space is required after ','. (comma-spacing)
(#11) Missing semicolon. (semi)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Requires a space before '}'. (block-spacing)
(#11) Requires a space before '}'. (block-spacing)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Missing semicolon. (semi)
(#11) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#11) Requires a space before '}'. (block-spacing)
(#11) 'jQuery' is not defined. (no-undef)
question/type/gapfill/questionedit.js
(#39) Missing JSDoc comment. (require-jsdoc)
(#50) Identifier 'gaptext_nodelim' is not in camel case. (camelcase)
(#65) Identifier 'gaptext_nodelim' is not in camel case. (camelcase)
(#69) Identifier 'gaptext_nodelim' is not in camel case. (camelcase)
(#74) Identifier 'get_itemsettings' is not in camel case. (camelcase)
(#77) Comments should not begin with a lowercase character (capitalized-comments)
(#90) Identifier 'update_json' is not in camel case. (camelcase)
(#118) Identifier 'atto_islive' is not in camel case. (camelcase)
(#124) Identifier 'atto_islive' is not in camel case. (camelcase)
(#170) Comments should not begin with a lowercase character (capitalized-comments)
(#191) Comments should not begin with a lowercase character (capitalized-comments)
(#193) 'jqui' is defined but never used. (no-unused-vars)
(#223) Missing JSDoc comment. (require-jsdoc)
(#241) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#250) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#269) Blocks are nested too deeply (5). (max-depth)
(#274) Blocks are nested too deeply (6). (max-depth)
(#276) Blocks are nested too deeply (7). (max-depth)
(#277) Blocks are nested too deeply (8). (max-depth)
(#284) Blocks are nested too deeply (7). (max-depth)
(#287) Blocks are nested too deeply (7). (max-depth)
(#306) Missing JSDoc comment. (require-jsdoc)
(#306) Expected to return a value at the end of function 'copyStyles'. (consistent-return)
(#319) Unnecessary escape character: \-. (no-useless-escape)
(#341) Blocks are nested too deeply (5). (max-depth)

CSS problems

(1 errors, 1 warnings)

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

question/type/gapfill/styles.css
(#148) Expected "#ffff00" to be "#ff0" (color-hex-length)
(#9) Expected a trailing semicolon (declaration-block-trailing-semicolon)

PHPDocs style problems

(42 errors, 15 warnings)

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

question/type/gapfill/backup/moodle2/restore_qtype_gapfill_plugin.class.php
(#63) Not recommended phpdocs tag @global used
(#91) Not recommended phpdocs tag @global used
(#139) Not recommended phpdocs tag @global used
question/type/gapfill/import_examples.php
(#66) Not recommended phpdocs tag @global used
(#87) Not recommended phpdocs tag @global used
question/type/gapfill/lib.php
(#38) Not recommended phpdocs tag @global used
(#38) Not recommended phpdocs tag @global used
question/type/gapfill/question.php
(#53) Variable qtype_gapfill_question::$shuffledanswers is not documented
(#54) Variable qtype_gapfill_question::$correctfeedback is not documented
(#55) Variable qtype_gapfill_question::$noduplicates is not documented
(#56) Variable qtype_gapfill_question::$disableregex is not documented
(#57) Variable qtype_gapfill_question::$fixedgapsize is not documented
(#70) Variable qtype_gapfill_question::$incorrectfeedback is not documented
(#71) Variable qtype_gapfill_question::$correctfeedbackformat is not documented
(#72) Variable qtype_gapfill_question::$partiallycorrectfeedbackformat is not documented
(#73) Variable qtype_gapfill_question::$incorrectfeedbackformat is not documented
(#81) Variable qtype_gapfill_question::$gapcount is not documented
(#83) Variable qtype_gapfill_question::$wronganswers is not documented
(#86) Variable qtype_gapfill_question::$casesensitive is not documented
(#91) Variable qtype_gapfill_question::$blankregex is not documented
(#97) Variable qtype_gapfill_question::$delimitchars is not documented
(#113) Variable qtype_gapfill_question::$allanswers is not documented
(#17) No one-line description found in phpdocs for file
(#27) No one-line description found in phpdocs for class qtype_gapfill_question
question/type/gapfill/questiontype.php
(#20) Package qtype_ga[fo;; is not valid
(#29) No one-line description found in phpdocs for class qtype_gapfill
(#286) There is no description in phpdocs for function update_question_answers
(#456) There is no description in phpdocs for function import_from_xml
(#63) Phpdocs for function qtype_gapfill::get_question_options has incomplete parameters list
(#76) Phpdocs for function qtype_gapfill::initialise_question_answers has incomplete parameters list
(#115) Phpdocs for function qtype_gapfill::get_itemsettings has incomplete parameters list
(#128) Phpdocs for function qtype_gapfill::initialise_question_instance has incomplete parameters list
(#205) Phpdocs for function qtype_gapfill::get_gaps has incomplete parameters list
(#222) Phpdocs for function qtype_gapfill::save_question_options has incomplete parameters list
(#289) Phpdocs for function qtype_gapfill::update_question_answers has incomplete parameters list
(#330) Phpdocs for function qtype_gapfill::get_answer_fields has incomplete parameters list
(#385) Phpdocs for function qtype_gapfill::update_item_settings has incomplete parameters list
(#416) Phpdocs for function qtype_gapfill::make_hint has incomplete parameters list
(#458) Phpdocs for function qtype_gapfill::import_from_xml has incomplete parameters list
(#29) Class qtype_gapfill does not have @license tag
(#62) Not recommended phpdocs tag @global used
(#114) Not recommended phpdocs tag @global used
(#225) Not recommended phpdocs tag @global used
(#251) Not recommended phpdocs tag @global used
(#288) Not recommended phpdocs tag @global used
(#384) Not recommended phpdocs tag @global used
(#491) Not recommended phpdocs tag @global used
(#416) Invalid inline phpdocs tag @param found
question/type/gapfill/tests/behat/behat_qtype_gapfill.php
(#17) No one-line description found in phpdocs for file
(#40) Phpdocs for function behat_qtype_gapfill::drop_xpath has incomplete parameters list
question/type/gapfill/tests/helper.php
(#20) Package qtype is not valid
(#26) Class qtype_gapfill_test_helper is not documented
question/type/gapfill/tests/questiontype_test.php
(#20) Package qtype_gpfill is not valid
(#39) Variable qtype_gapfill_test::$includecoverage is not documented
(#53) Not recommended phpdocs tag @global used
question/type/gapfill/tests/walkthrough_test.php
(#17) No one-line description found in phpdocs for file
(#31) No one-line description found in phpdocs for class qtype_gapfill_walkthrough_test

Update savepoints problems

(1 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

question/type/gapfill/db/upgrade.php
version 2006082505 is missing corresponding savepoint call

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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

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]