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

(20 errors, 6 warnings)

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

question/behaviour/interactivehints/behaviour.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Inline doc block comments are not allowed; use "// Comment." instead
(#46) Line exceeds 132 characters; contains 153 characters
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) No space found before comment text; expected "// Contains question_with_specific_hints and behaviour_with_hints interfaces for now" but found "//Contains question_with_specific_hints and behaviour_with_hints interfaces for now"
(#57) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) No space found before comment text; expected "// Hint was used" but found "//Hint was used"
(#60) Expected 1 space after "-"; newline found
(#62) Commas (,) must be followed by white space.
(#80) Inline comments must start with a capital letter, digit or 3-dots sequence
(#80) This comment is 50% valid code; is this commented out code?
(#80) Line exceeds maximum limit of 180 characters; contains 184 characters
(#80) No space found before comment text; expected "// $i = count($this->question->hints) + 1 - $this->qa->get_last_behaviour_var('_triesleft');//This is simplier, but not suitable for other sequential hints than moodle ones." but found "//$i = count($this->question->hints) + 1 - $this->qa->get_last_behaviour_var('_triesleft');//This is simplier, but not suitable for other sequential hints than moodle ones."
(#91) Whitespace found at end of line
(#117) No space found before comment text; expected "// Choosen multiple instance hints." but found "//Choosen multiple instance hints."
(#118) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#119) No space found before comment text; expected "// The hint should be rendered." but found "//The hint should be rendered."
question/behaviour/interactivehints/behaviourtype.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
question/behaviour/interactivehints/lang/en/qbehaviour_interactivehints.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
question/behaviour/interactivehints/lang/ru/qbehaviour_interactivehints.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
question/behaviour/interactivehints/renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Line indented incorrectly; expected at least 4 spaces, found 0
(#32) No space found before comment text; expected "// TODO: there seems nothing to do here" but found "//TODO: there seems nothing to do here"
question/behaviour/interactivehints/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(17 errors, 0 warnings)

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

question/behaviour/interactivehints/behaviour.php
(#48) Class qbehaviour_interactivehints is not documented
(#51) Function qbehaviour_interactivehints::is_compatible_question is not documented
(#55) Function qbehaviour_interactivehints::process_submit is not documented
(#49) Constant qbehaviour_interactivehints::IS_ARCHETYPAL is not documented
(#17) No one-line description found in phpdocs for file
(#73) Phpdocs for function qbehaviour_interactivehints::adjust_hintkey has incomplete parameters list
(#90) Phpdocs for function qbehaviour_interactivehints::adjust_hints has incomplete parameters list
(#104) Phpdocs for function qbehaviour_interactivehints::expand_choosen_mi_hints has incomplete parameters list
(#21) Package qbehaviour is not valid
question/behaviour/interactivehints/behaviourtype.php
(#17) File-level phpdocs block is not found
(#29) Function qbehaviour_interactivehints_type::is_archetypal is not documented
question/behaviour/interactivehints/lang/en/qbehaviour_interactivehints.php
(#20) Package qbehaviour is not valid
question/behaviour/interactivehints/lang/ru/qbehaviour_interactivehints.php
(#20) Package qbehaviour is not valid
question/behaviour/interactivehints/renderer.php
(#31) Class qbehaviour_interactivehints_renderer is not documented
(#17) No one-line description found in phpdocs for file
(#21) Package qbehaviour is not valid
question/behaviour/interactivehints/version.php
(#17) No one-line description found in phpdocs for file

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]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]