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

(2 errors, 33 warnings)

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

question/type/answersselect/question.php
(#351) Inline comments must end in full-stops, exclamation marks, or question marks
(#355) Inline comments must end in full-stops, exclamation marks, or question marks
(#356) Expected 1 space before "-"; 0 found
(#356) Expected 1 space after "-"; 0 found
question/type/answersselect/questiontype.php
(#318) Possible useless method overriding detected
question/type/answersselect/tests/question_test.php
(#41) PHPUnit testcase name "qtype_answersselect_question_test" does not match file name "question_test"
(#41) PHPUnit class "qtype_answersselect_question_test" does not have any namespace. It is recommended to add it to the "qtype_answersselect" namespace, using more levels if needed, in order to match the code being tested
(#43) Test method test_replace_char_at() is missing any coverage information, own or at class level
(#47) Test method test_grade_responses_right_right() is missing any coverage information, own or at class level
(#60) Test method test_grade_responses_right() is missing any coverage information, own or at class level
(#73) Test method test_grade_responses_wrong_wrong() is missing any coverage information, own or at class level
(#86) Test method test_grade_responses_right_wrong_wrong() is missing any coverage information, own or at class level
(#100) Test method test_grade_responses_right_wrong() is missing any coverage information, own or at class level
(#113) Test method test_grade_responses_right_right_wrong() is missing any coverage information, own or at class level
(#127) Test method test_grade_responses_right_right_wrong_wrong() is missing any coverage information, own or at class level
question/type/answersselect/tests/questiontype_test.php
(#41) PHPUnit testcase name "qtype_answersselect_test" does not match file name "questiontype_test"
(#41) PHPUnit class "qtype_answersselect_test" does not have any namespace. It is recommended to add it to the "qtype_answersselect" namespace, using more levels if needed, in order to match the code being tested
(#62) Test method test_name() is missing any coverage information, own or at class level
(#66) Test method test_initialise_question_instance() is missing any coverage information, own or at class level
(#79) Test method test_can_analyse_responses() is missing any coverage information, own or at class level
(#83) Test method test_get_possible_responses() is missing any coverage information, own or at class level
(#101) Test method test_get_random_guess_score() is missing any coverage information, own or at class level
(#121) Test method test_xml_import() is missing any coverage information, own or at class level
(#241) Test method test_xml_import_legacy() is missing any coverage information, own or at class level
(#373) Test method test_xml_export() is missing any coverage information, own or at class level
question/type/answersselect/tests/walkthrough_test.php
(#42) PHPUnit testcase name "qtype_answersselect_walkthrough_test" does not match file name "walkthrough_test"
(#42) PHPUnit class "qtype_answersselect_walkthrough_test" does not have any namespace. It is recommended to add it to the "qtype_answersselect" namespace, using more levels if needed, in order to match the code being tested
(#44) Test method test_shows_standard_instruction_yes() is missing any coverage information, own or at class level
(#62) Test method test_shows_standard_instruction_no() is missing any coverage information, own or at class level
(#80) Test method test_interactive_behaviour() is missing any coverage information, own or at class level
(#227) Test method test_interactive_behaviour2() is missing any coverage information, own or at class level
(#292) Test method test_interactive_clear_wrong() is missing any coverage information, own or at class level
(#407) Test method test_interactive_bug_11263() is missing any coverage information, own or at class level
(#499) Test method test_interactive_regrade_changing_num_tries_leaving_open() is missing any coverage information, own or at class level
(#535) Test method test_interactive_regrade_changing_num_tries_finished() is missing any coverage information, own or at class level

Javascript coding style problems

(2 errors, 0 warnings)

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

question/type/answersselect/mobile/answersselect.js
(#69) Trailing spaces not allowed. (no-trailing-spaces)
(#80) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)

CSS problems

(0 errors, 1 warnings)

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

question/type/answersselect/styles.css
(#71) Unexpected unit (length-zero-no-unit)

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]