Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(93 errors, 89 warnings)

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

question/type/truefalsewiris/backup/moodle1/lib.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class moodle1_qtype_truefalsewiris_handler
(#24) Missing docblock for function get_question_subpaths
(#25) Short array syntax must be used to define arrays
(#29) There should be a comma after the last array item in a multi-line array.
(#33) Missing docblock for function process_question
(#58) Short array syntax must be used to define arrays
(#61) Missing docblock for function wrsqz_get_cas_for_computations
(#89) Missing docblock for function wrsqz_hidden_initial_cas_value
question/type/truefalsewiris/backup/moodle2/backup_qtype_truefalsewiris_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for class backup_qtype_truefalsewiris_plugin
(#19) Missing docblock for function define_question_plugin_structure
(#28) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
question/type/truefalsewiris/backup/moodle2/restore_qtype_truefalsewiris_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for class restore_qtype_truefalsewiris_plugin
(#19) Missing docblock for function define_question_plugin_structure
(#21) Short array syntax must be used to define arrays
(#39) Missing docblock for function process_qtype_wq_truefalsewiris
(#64) Missing docblock for function decode_html_entities
question/type/truefalsewiris/classes/privacy/provider.php
(#28) Missing docblock for class provider
question/type/truefalsewiris/edit_truefalsewiris_form.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class qtype_truefalsewiris_edit_form
(#24) Missing member variable doc comment
(#26) Missing docblock for function definition_inner
(#38) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#80) Missing docblock for function qtype
question/type/truefalsewiris/lang/ca/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/de/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/el/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/en/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/es/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/fr/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/lang/it/qtype_truefalsewiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_truefalsewiris.php
(#19) The string key "editingtruefalsewiris" is not in the correct order, it should be before "truefalsewiris_help"
(#20) The string key "addingtruefalsewiris" is not in the correct order, it should be before "editingtruefalsewiris"
(#22) The string key "truefalsewirisoverrideanswer_identifier_help" is not in the correct order, it should be before "truefalsewirissummary"
(#23) The string key "truefalsewirisoverrideanswer" is not in the correct order, it should be before "truefalsewirisoverrideanswer_identifier_help"
(#24) Unexpected string end, it should be a line feed after a semicolon
(#25) The string key "truefalsewiris_algorithm" is not in the correct order, it should be before "truefalsewirisoverrideanswer"
(#28) The string key "truefalsewiris_feedback_right_response" is not in the correct order, it should be before "truefalsewiris_feedback_wrong_response"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "pluginname" is not in the correct order, it should be before "truefalsewiris_wiris_variables"
(#35) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#36) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
question/type/truefalsewiris/question.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class qtype_truefalsewiris_question
(#24) Missing member variable doc comment
(#27) You must use "/**" style comments for a member variable comment
(#28) Missing member variable doc comment
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#35) Missing docblock for function join_all_text
(#44) Missing docblock for function start_attempt
(#49) Missing docblock for function apply_attempt_state
(#54) Missing docblock for function set_right_answer
question/type/truefalsewiris/questiontype.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class qtype_truefalsewiris
(#24) Missing docblock for function __construct
(#28) Missing docblock for function create_editing_form
(#35) Missing docblock for function initialise_question_instance
(#47) Missing docblock for function save_question_options
(#56) Short array syntax must be used to define arrays
(#63) Missing docblock for function export_to_xml
(#65) Short array syntax must be used to define arrays
(#80) Missing docblock for function import_from_xml
question/type/truefalsewiris/renderer.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class qtype_truefalsewiris_renderer
(#22) Missing docblock for function __construct
(#26) Missing docblock for function swap_feedbacks
(#36) Missing docblock for function specific_feedback
question/type/truefalsewiris/tests/behat/behat_truefalsewiris_base.php
(#1) DocBlock missing a @package tag for file behat_truefalsewiris_base.php. Expected @package qtype_truefalsewiris
(#16) Missing @copyright tag
(#16) Missing @license tag
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#29) Missing docblock for class behat_truefalsewiris_base
question/type/truefalsewiris/tests/helper.php
(#25) Missing docblock for function get_test_questions
(#26) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
question/type/truefalsewiris/version.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file version.php
(#24) Short array syntax must be used to define arrays
(#25) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(0 errors, 15 warnings)

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

question/type/truefalsewiris/js/tf.js
(#3) Requires a space after '{'. (block-spacing)
(#3) Statement inside of curly braces should be on next line. (brace-style)
(#3) Missing space before opening brace. (space-before-blocks)
(#3) Requires a space before '}'. (block-spacing)
(#3) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#3) Comments should not begin with a lowercase character. (capitalized-comments)
(#7) Missing space before opening brace. (space-before-blocks)
(#11) Missing space before opening brace. (space-before-blocks)
(#12) Missing space before opening brace. (space-before-blocks)
(#14) Expected space(s) before "else". (keyword-spacing)
(#14) Expected space(s) after "else". (keyword-spacing)
(#19) Missing space before opening brace. (space-before-blocks)
(#20) A space is required after ','. (comma-spacing)
(#23) Missing space before opening brace. (space-before-blocks)
(#24) A space is required after ','. (comma-spacing)

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]


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]