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

(5 errors, 43 warnings)

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

question/type/kprime/backup/moodle2/backup_qtype_kprime_plugin.class.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/backup/moodle2/restore_qtype_kprime_plugin.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/classes/output/mobile.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/classes/privacy/provider.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/db/upgrade.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/edit_kprime_form.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#33) "require_once" must be immediately followed by an open parenthesis
(#116) Line exceeds 132 characters; contains 134 characters
(#196) Line exceeds 132 characters; contains 136 characters
(#243) Line exceeds 132 characters; contains 133 characters
question/type/kprime/grading/qtype_kprime_grading.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/lib.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/question.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/kprime/tests/question_test.php
(#41) PHPUnit testcase name "qtype_kprime_question_test" does not match file name "question_test"
(#41) PHPUnit class "qtype_kprime_question_test" does not have any namespace. It is recommended to add it to the "qtype_kprime" namespace, using more levels if needed, in order to match the code being tested
(#144) Test method test_get_expected_data() is missing any coverage information, own or at class level
(#154) Test method test_is_complete_response() is missing any coverage information, own or at class level
(#172) Test method test_is_gradable_response() is missing any coverage information, own or at class level
(#212) Test method test_get_order() is missing any coverage information, own or at class level
(#226) Test method test_is_correct() is missing any coverage information, own or at class level
(#241) Test method test_is_same_response() is missing any coverage information, own or at class level
(#276) Test method test_grading() is missing any coverage information, own or at class level
(#286) Test method test_summarise_response() is missing any coverage information, own or at class level
(#297) Test method test_classify_response() is missing any coverage information, own or at class level
(#316) Test method test_make_html_inline() is missing any coverage information, own or at class level
(#331) Test method test_get_hint() is missing any coverage information, own or at class level
(#341) Test method test_compute_final_grade_subpoints() is missing any coverage information, own or at class level
(#374) Test method test_compute_final_grade_kprime() is missing any coverage information, own or at class level
(#432) Test method test_compute_final_grade_kprimeonezero() is missing any coverage information, own or at class level
(#466) Test method test_grade_response_subpoints() is missing any coverage information, own or at class level
(#482) Test method test_grade_response_kprime() is missing any coverage information, own or at class level
(#501) Test method test_grade_response_kprimeonezero() is missing any coverage information, own or at class level
question/type/kprime/tests/questiontype_test.php
(#44) PHPUnit testcase name "qtype_kprime_test" does not match file name "questiontype_test"
(#44) PHPUnit class "qtype_kprime_test" does not have any namespace. It is recommended to add it to the "qtype_kprime" namespace, using more levels if needed, in order to match the code being tested
(#57) Test method test_name() is missing any coverage information, own or at class level
(#160) Test method test_can_analyse_responses() is missing any coverage information, own or at class level
(#167) Test method test_get_random_guess_score_kprime() is missing any coverage information, own or at class level
(#176) Test method test_get_random_guess_score_kprimeonezero() is missing any coverage information, own or at class level
(#185) Test method test_get_random_guess_score_subpoints() is missing any coverage information, own or at class level
(#193) Test method test_get_possible_responses_subpoints() is missing any coverage information, own or at class level
(#232) Test method test_question_saving_question_one() is missing any coverage information, own or at class level
(#297) Test method test_get_question_options() is missing any coverage information, own or at class level
question/type/kprime/tests/walkthrough_test.php
(#43) PHPUnit testcase name "qtype_kprime_walkthrough_test" does not match file name "walkthrough_test"
(#43) PHPUnit class "qtype_kprime_walkthrough_test" does not have any namespace. It is recommended to add it to the "qtype_kprime" namespace, using more levels if needed, in order to match the code being tested
(#144) Test method test_deferredfeedback_feedback_kprime() is missing any coverage information, own or at class level

Javascript coding style problems

(3 errors, 1 warnings)

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

question/type/kprime/mobile/kprime.js
(#55) 'i' is defined but never used. (no-unused-vars)
(#64) Do not nest ternary expressions. (no-nested-ternary)
(#66) Missing semicolon. (semi)
(#88) 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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [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]