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, 0 warnings)

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

question/type/kprime/renderer.php
(#223) global $OUTPUT cannot be used in renderers. Use $this->output.
(#236) global $OUTPUT cannot be used in renderers. Use $this->output.

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

(13 errors, 25 warnings)

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

question/type/kprime/styles.css
(#82) Unknown property: align
(#293) Invalid value for `overflow-wrap` (csstree/validator)
(#80) Expected "#AAA" to be "#aaa" (color-hex-case)
(#90) Expected "#FFF3BF" to be "#fff3bf" (color-hex-case)
(#95) Expected "#FFF3BF" to be "#fff3bf" (color-hex-case)
(#221) Expected "#BBB" to be "#bbb" (color-hex-case)
(#255) Expected "#BBB" to be "#bbb" (color-hex-case)
(#131) Unexpected shorthand "flex" after "flex-grow" (declaration-block-no-shorthand-property-overrides)
(#18) Unexpected !important (declaration-no-important)
(#76) Unexpected !important (declaration-no-important)
(#90) Unexpected !important (declaration-no-important)
(#91) Unexpected !important (declaration-no-important)
(#95) Unexpected !important (declaration-no-important)
(#96) Unexpected !important (declaration-no-important)
(#4) Unexpected unit (length-zero-no-unit)
(#75) Unexpected unit (length-zero-no-unit)
(#101) Unexpected unit (length-zero-no-unit)
(#141) Unexpected unit (length-zero-no-unit)
(#156) Unexpected unit (length-zero-no-unit)
(#162) Unexpected unit (length-zero-no-unit)
(#162) Unexpected unit (length-zero-no-unit)
(#187) Unexpected unit (length-zero-no-unit)
(#196) Unexpected unit (length-zero-no-unit)
(#197) Unexpected unit (length-zero-no-unit)
(#202) Unexpected unit (length-zero-no-unit)
(#212) Unexpected unit (length-zero-no-unit)
(#213) Unexpected unit (length-zero-no-unit)
(#237) Unexpected unit (length-zero-no-unit)
(#238) Unexpected unit (length-zero-no-unit)
(#239) Unexpected unit (length-zero-no-unit)
(#244) Unexpected unit (length-zero-no-unit)
(#245) Unexpected unit (length-zero-no-unit)
(#246) Unexpected unit (length-zero-no-unit)
(#247) Unexpected unit (length-zero-no-unit)
(#154) Unexpected whitespace before ":" (media-feature-colon-space-before)
(#154) Unexpected whitespace after "(" (media-feature-parentheses-space-inside)
(#82) Unexpected unknown property "align" (property-no-unknown)
(#8) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(134 errors, 0 warnings)

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

question/type/kprime/backup/moodle2/backup_qtype_kprime_plugin.class.php
(#17) No one-line description found in phpdocs for file
(#76) Inline phpdocs tag {@link get_components_and_fileareas} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
question/type/kprime/backup/moodle2/restore_qtype_kprime_plugin.class.php
(#207) Function restore_qtype_kprime_plugin::recode_response is not documented
(#17) No one-line description found in phpdocs for file
(#30) No one-line description found in phpdocs for class restore_qtype_kprime_plugin
(#65) Phpdocs for function restore_qtype_kprime_plugin::process_kprime has incomplete parameters list
(#104) Phpdocs for function restore_qtype_kprime_plugin::process_column has incomplete parameters list
(#138) Phpdocs for function restore_qtype_kprime_plugin::process_row has incomplete parameters list
(#172) Phpdocs for function restore_qtype_kprime_plugin::process_weight has incomplete parameters list
question/type/kprime/bin/mig_matrix_to_kprime.php
(#46) Function weight_records_to_array is not documented
(#17) No one-line description found in phpdocs for file
question/type/kprime/classes/output/mobile.php
(#32) Class mobile is not documented
(#33) Function mobile::kprime_view is not documented
(#17) No one-line description found in phpdocs for file
question/type/kprime/classes/privacy/provider.php
(#36) Class provider is not documented
(#38) Function provider::get_reason is not documented
(#17) No one-line description found in phpdocs for file
question/type/kprime/db/mobile.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/db/upgrade.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/edit_kprime_form.php
(#367) Function qtype_kprime_edit_form::get_hint_fields is not documented
(#41) Variable qtype_kprime_edit_form::$numberofrows is not documented
(#43) Variable qtype_kprime_edit_form::$numberofcolumns is not documented
(#17) No one-line description found in phpdocs for file
(#374) Phpdocs for function qtype_kprime_edit_form::data_preprocessing has incomplete parameters list
(#418) Phpdocs for function qtype_kprime_edit_form::validation has incomplete parameters list
question/type/kprime/grading/qtype_kprime_grading.class.php
(#30) Class qtype_kprime_grading is not documented
(#32) Function qtype_kprime_grading::get_name is not documented
(#34) Function qtype_kprime_grading::get_title is not documented
(#36) Function qtype_kprime_grading::grade_question is not documented
(#17) No one-line description found in phpdocs for file
question/type/kprime/grading/qtype_kprime_grading_kprime.class.php
(#33) Class qtype_kprime_grading_kprime is not documented
(#37) Function qtype_kprime_grading_kprime::get_name is not documented
(#41) Function qtype_kprime_grading_kprime::get_title is not documented
(#35) Constant qtype_kprime_grading_kprime::TYPE is not documented
(#17) No one-line description found in phpdocs for file
(#45) Phpdocs for function qtype_kprime_grading_kprime::grade_question has incomplete parameters list
question/type/kprime/grading/qtype_kprime_grading_kprimeonezero.class.php
(#33) Class qtype_kprime_grading_kprimeonezero is not documented
(#37) Function qtype_kprime_grading_kprimeonezero::get_name is not documented
(#41) Function qtype_kprime_grading_kprimeonezero::get_title is not documented
(#35) Constant qtype_kprime_grading_kprimeonezero::TYPE is not documented
(#17) No one-line description found in phpdocs for file
(#45) Phpdocs for function qtype_kprime_grading_kprimeonezero::grade_question has incomplete parameters list
question/type/kprime/grading/qtype_kprime_grading_subpoints.class.php
(#33) Class qtype_kprime_grading_subpoints is not documented
(#37) Function qtype_kprime_grading_subpoints::get_name is not documented
(#41) Function qtype_kprime_grading_subpoints::get_title is not documented
(#35) Constant qtype_kprime_grading_subpoints::TYPE is not documented
(#17) No one-line description found in phpdocs for file
(#45) Phpdocs for function qtype_kprime_grading_subpoints::grade_question has incomplete parameters list
question/type/kprime/lang/de/qtype_kprime.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/lang/en/qtype_kprime.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/lib.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/question.php
(#30) Class qtype_kprime_question is not documented
(#183) Function qtype_kprime_question::is_row_selected is not documented
(#187) Function qtype_kprime_question::get_response is not documented
(#524) Function qtype_kprime_question::get_hint is not documented
(#32) Variable qtype_kprime_question::$rows is not documented
(#34) Variable qtype_kprime_question::$columns is not documented
(#36) Variable qtype_kprime_question::$weights is not documented
(#38) Variable qtype_kprime_question::$scoringmethod is not documented
(#40) Variable qtype_kprime_question::$shuffleanswers is not documented
(#42) Variable qtype_kprime_question::$numberofrows is not documented
(#44) Variable qtype_kprime_question::$numberofcols is not documented
(#46) Variable qtype_kprime_question::$order is not documented
(#48) Variable qtype_kprime_question::$editedquestion is not documented
(#17) No one-line description found in phpdocs for file
(#93) There is no description in phpdocs for function get_order
(#242) There is no description in phpdocs for function get_num_selected_choices
(#52) Phpdocs for function qtype_kprime_question::start_attempt has incomplete parameters list
(#65) Phpdocs for function qtype_kprime_question::apply_attempt_state has incomplete parameters list
(#121) Phpdocs for function qtype_kprime_question::field has incomplete parameters list
(#133) Phpdocs for function qtype_kprime_question::is_answered has incomplete parameters list
(#210) Phpdocs for function qtype_kprime_question::is_gradable_response has incomplete parameters list
(#228) Phpdocs for function qtype_kprime_question::get_validation_error has incomplete parameters list
(#262) Phpdocs for function qtype_kprime_question::summarise_response has incomplete parameters list
(#286) Phpdocs for function qtype_kprime_question::classify_response has incomplete parameters list
(#369) Phpdocs for function qtype_kprime_question::get_correct_response has incomplete parameters list
(#475) Phpdocs for function qtype_kprime_question::make_html_inline has incomplete parameters list
(#532) Phpdocs for function qtype_kprime_question::check_file_access has incomplete parameters list
(#198) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#245) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#262) Inline phpdocs tag {@link grade_response()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#346) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#415) Inline phpdocs tag {@link question_state} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#419) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#436) Inline phpdocs tag {@link question_attempt::get_field_prefix()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
question/type/kprime/questiontype.php
(#72) Function question_hint_kprime::adjust_display_options is not documented
(#317) Function qtype_kprime::save_hints is not documented
(#388) Function qtype_kprime::make_hint is not documented
(#46) Variable question_hint_kprime::$statewhichincorrect is not documented
(#17) No one-line description found in phpdocs for file
(#50) Phpdocs for function question_hint_kprime::__construct has incomplete parameters list
(#83) Phpdocs for function qtype_kprime::set_default_options has incomplete parameters list
(#140) Phpdocs for function qtype_kprime::get_question_options has incomplete parameters list
(#191) Phpdocs for function qtype_kprime::save_question_options has incomplete parameters list
(#410) Phpdocs for function qtype_kprime::delete_question has incomplete parameters list
(#450) Phpdocs for function qtype_kprime::get_random_guess_score has incomplete parameters list
(#468) Phpdocs for function qtype_kprime::get_possible_responses has incomplete parameters list
(#509) Phpdocs for function qtype_kprime::move_files has incomplete parameters list
(#519) Phpdocs for function qtype_kprime::delete_files has incomplete parameters list
(#580) Phpdocs for function qtype_kprime::export_to_xml has incomplete parameters list
(#652) Phpdocs for function qtype_kprime::import_from_xml has incomplete parameters list
(#37) Inline phpdocs tag {@link question_hint} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
question/type/kprime/renderer.php
(#17) No one-line description found in phpdocs for file
(#39) There is no description in phpdocs for function get_input_type
(#47) There is no description in phpdocs for function get_input_name
(#58) There is no description in phpdocs for function get_input_value
(#68) There is no description in phpdocs for function get_input_id
(#85) Phpdocs for function qtype_kprime_renderer::formulation_and_controls has incomplete parameters list
(#270) Phpdocs for function qtype_kprime_renderer::correct_response has incomplete parameters list
question/type/kprime/settings.php
(#17) No one-line description found in phpdocs for file
question/type/kprime/tests/helper.php
(#32) Class qtype_kprime_test_helper is not documented
(#34) Function qtype_kprime_test_helper::get_test_questions is not documented
(#38) Function qtype_kprime_test_helper::get_kprime_question_data_question_one is not documented
(#149) Function qtype_kprime_test_helper::get_kprime_question_form_data_question_one is not documented
(#243) Function qtype_kprime_test_helper::get_kprime_question_data_question_two is not documented
(#354) Function qtype_kprime_test_helper::get_kprime_question_form_data_question_two is not documented
(#449) Function qtype_kprime_test_helper::get_kprime_question_form_data_question_three is not documented
(#544) Function qtype_kprime_test_helper::get_kprime_question_form_data_question_four is not documented
(#17) No one-line description found in phpdocs for file
question/type/kprime/tests/question_test.php
(#37) Function qtype_kprime_question_test::make_a_kprime_question is not documented
(#17) No one-line description found in phpdocs for file
(#32) No one-line description found in phpdocs for class qtype_kprime_question_test
question/type/kprime/tests/questiontype_test.php
(#53) Function qtype_kprime_test::get_test_question_data is not documented
(#191) Function qtype_kprime_test::get_question_saving_which is not documented
(#40) Variable qtype_kprime_test::$qtype is not documented
(#17) No one-line description found in phpdocs for file
(#35) No one-line description found in phpdocs for class qtype_kprime_test
(#195) There is no description in phpdocs for function test_question_saving_question_one
(#195) Phpdocs for function qtype_kprime_test::test_question_saving_question_one has incomplete parameters list
question/type/kprime/tests/walkthrough_test.php
(#39) Function qtype_kprime_walkthrough_test::get_contains_kprime_radio_expectation is not documented
(#46) Function qtype_kprime_walkthrough_test::make_a_kprime_question is not documented
(#17) No one-line description found in phpdocs for file
(#34) No one-line description found in phpdocs for class qtype_kprime_walkthrough_test
question/type/kprime/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]


grunt changes

(1 errors, 1 warnings)

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

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

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

(45 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]

question/type/kprime/tests/behat/04_step_7.feature
(#76) Trailing spaces are not allowed
question/type/kprime/tests/behat/07_step_13.feature
(#20) Trailing spaces are not allowed
(#21) Trailing spaces are not allowed
question/type/kprime/tests/behat/08_step_14.feature
(#20) Trailing spaces are not allowed
question/type/kprime/tests/behat/09_step_17.feature
(#15) Trailing spaces are not allowed
(#32) Trailing spaces are not allowed
(#33) Multiple empty lines are not allowed
(#36) Trailing spaces are not allowed
(#44) Multiple empty lines are not allowed
(#63) Trailing spaces are not allowed
question/type/kprime/tests/behat/10_step_18_19_20.feature
(#15) Trailing spaces are not allowed
(#62) Trailing spaces are not allowed
(#98) Trailing spaces are not allowed
(#109) Trailing spaces are not allowed
(#110) Trailing spaces are not allowed
(#113) Trailing spaces are not allowed
(#130) Trailing spaces are not allowed
(#157) Trailing spaces are not allowed
(#158) Trailing spaces are not allowed
(#161) Trailing spaces are not allowed
(#178) Trailing spaces are not allowed
(#200) Trailing spaces are not allowed
(#217) Trailing spaces are not allowed
question/type/kprime/tests/behat/11_step_21.feature
(#16) Trailing spaces are not allowed
(#17) Trailing spaces are not allowed
(#31) Multiple empty lines are not allowed
(#36) Trailing spaces are not allowed
(#40) Trailing spaces are not allowed
(#70) Trailing spaces are not allowed
(#80) Trailing spaces are not allowed
question/type/kprime/tests/behat/12_step_22.feature
(#16) Trailing spaces are not allowed
(#17) Trailing spaces are not allowed
(#31) Multiple empty lines are not allowed
(#40) Multiple empty lines are not allowed
question/type/kprime/tests/behat/13_step_23.feature
(#132) Trailing spaces are not allowed
question/type/kprime/tests/behat/14_step_24_25.feature
(#57) Trailing spaces are not allowed
(#93) Trailing spaces are not allowed
(#121) Trailing spaces are not allowed
(#249) Trailing spaces are not allowed
(#295) Trailing spaces are not allowed
question/type/kprime/tests/behat/16_step_27.feature
(#19) Trailing spaces are not allowed
(#20) Multiple empty lines are not allowed
(#20) Trailing spaces are not allowed
(#21) Multiple empty lines are not allowed
question/type/kprime/tests/behat/17_step_28_29.feature
(#96) Trailing spaces are not allowed