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

(19 errors, 12 warnings)

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

question/type/blocklymoodle/db/upgrade.php
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) 3 slashes comments are not allowed; use "// Comment." instead
(#51) Empty IF statement detected
question/type/blocklymoodle/edit_blocklymoodle_form.php
(#90) This comment is 48% valid code; is this commented out code?
question/type/blocklymoodle/question.php
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) This comment is 100% valid code; is this commented out code?
(#82) No space found before comment text; expected "// ,$response['answerformat']" but found "//,$response['answerformat']"
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
question/type/blocklymoodle/renderer.php
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) This comment is 69% valid code; is this commented out code?
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Line indented incorrectly; expected at least 8 spaces, found 0
(#44) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Line indented incorrectly; expected at least 8 spaces, found 0
(#45) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#46) Expected "if (...) {\n"; found "if(...){\n"
(#51) Line exceeds maximum limit of 180 characters; contains 243 characters
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) This comment is 67% valid code; is this commented out code?
(#57) No space found before comment text; expected "// 'type' => 'text'," but found "//'type' => 'text',"
(#72) Expected 1 space before "=>"; 0 found
(#72) Expected 1 space after "=>"; 0 found
(#72) Line exceeds maximum limit of 180 characters; contains 203 characters
(#78) Expected "} else {\n"; found "}\n else\n {\n"
(#82) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#231) Expected 1 space after "=>"; newline found
(#356) Expected 1 space before "=>"; 0 found

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(86 errors, 0 warnings)

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

question/type/blocklymoodle/backup/moodle2/backup_qtype_blocklymoodle_plugin.class.php
(#17) No one-line description found in phpdocs for file
(#18) Package moodlecore is not valid
question/type/blocklymoodle/backup/moodle2/restore_qtype_blocklymoodle_plugin.class.php
(#17) No one-line description found in phpdocs for file
(#28) No one-line description found in phpdocs for class restore_qtype_blocklymoodle_plugin
(#46) Phpdocs for function restore_qtype_blocklymoodle_plugin::process_blocklymoodle has incomplete parameters list
(#18) Package moodlecore is not valid
question/type/blocklymoodle/db/upgrade.php
(#50) Found comment starting with three or more slashes
(#20) Package qtype is not valid
question/type/blocklymoodle/db/upgradelib.php
(#40) Function qtype_blocklymoodle_qe2_attempt_updater::right_answer is not documented
(#44) Function qtype_blocklymoodle_qe2_attempt_updater::response_summary is not documented
(#52) Function qtype_blocklymoodle_qe2_attempt_updater::was_answered is not documented
(#56) Function qtype_blocklymoodle_qe2_attempt_updater::set_first_step_data_elements is not documented
(#59) Function qtype_blocklymoodle_qe2_attempt_updater::supply_missing_first_step_data is not documented
(#62) Function qtype_blocklymoodle_qe2_attempt_updater::set_data_elements_for_step is not documented
(#30) No one-line description found in phpdocs for class qtype_blocklymoodle_qe2_attempt_updater
(#20) Package qtype is not valid
question/type/blocklymoodle/edit_blocklymoodle_form.php
(#38) Function qtype_blocklymoodle_edit_form::definition_inner is not documented
(#57) Function qtype_blocklymoodle_edit_form::data_preprocessing is not documented
(#85) Function qtype_blocklymoodle_edit_form::validation is not documented
(#109) Function qtype_blocklymoodle_edit_form::qtype is not documented
(#20) Package qtype is not valid
question/type/blocklymoodle/lang/en/qtype_blocklymoodle.php
(#20) Package qtype is not valid
question/type/blocklymoodle/question.php
(#55) Function qtype_blocklymoodle_question::make_behaviour is not documented
(#67) Function qtype_blocklymoodle_question::get_expected_data is not documented
(#80) Function qtype_blocklymoodle_question::summarise_response is not documented
(#89) Function qtype_blocklymoodle_question::get_correct_response is not documented
(#93) Function qtype_blocklymoodle_question::is_complete_response is not documented
(#117) Function qtype_blocklymoodle_question::is_same_response is not documented
(#133) Function qtype_blocklymoodle_question::check_file_access is not documented
(#39) Variable qtype_blocklymoodle_question::$responseformat is not documented
(#40) Variable qtype_blocklymoodle_question::$codelanguage is not documented
(#44) Variable qtype_blocklymoodle_question::$responsefieldlines is not documented
(#45) Variable qtype_blocklymoodle_question::$attachments is not documented
(#50) Variable qtype_blocklymoodle_question::$graderinfo is not documented
(#51) Variable qtype_blocklymoodle_question::$graderinfoformat is not documented
(#52) Variable qtype_blocklymoodle_question::$responsetemplate is not documented
(#53) Variable qtype_blocklymoodle_question::$responsetemplateformat is not documented
(#59) There is no description in phpdocs for function get_format_renderer
(#60) Phpdocs for function qtype_blocklymoodle_question::get_format_renderer has incomplete parameters list
(#20) Package qtype is not valid
question/type/blocklymoodle/questiontype.php
(#39) Function qtype_blocklymoodle::is_manual_graded is not documented
(#43) Function qtype_blocklymoodle::response_file_areas is not documented
(#47) Function qtype_blocklymoodle::get_question_options is not documented
(#54) Function qtype_blocklymoodle::save_question_options is not documented
(#72) Function qtype_blocklymoodle::initialise_question_instance is not documented
(#79) Function qtype_blocklymoodle::delete_question is not documented
(#146) Function qtype_blocklymoodle::move_files is not documented
(#153) Function qtype_blocklymoodle::delete_files is not documented
(#86) There is no description in phpdocs for function response_formats
(#100) There is no description in phpdocs for function response_required_options
(#110) There is no description in phpdocs for function response_sizes
(#121) There is no description in phpdocs for function attachment_options
(#134) There is no description in phpdocs for function attachments_required_options
(#20) Package qtype is not valid
question/type/blocklymoodle/renderer.php
(#37) Function qtype_blocklymoodle_renderer::formulation_and_controls is not documented
(#117) Function qtype_blocklymoodle_renderer::manual_comment is not documented
(#177) Function qtype_blocklymoodle_format_noinline_renderer::class_name is not documented
(#181) Function qtype_blocklymoodle_format_noinline_renderer::response_area_read_only is not documented
(#185) Function qtype_blocklymoodle_format_noinline_renderer::response_area_input is not documented
(#199) Function qtype_blocklymoodle_format_editor_renderer::class_name is not documented
(#203) Function qtype_blocklymoodle_format_editor_renderer::response_area_read_only is not documented
(#208) Function qtype_blocklymoodle_format_editor_renderer::response_area_input is not documented
(#325) Function qtype_blocklymoodle_format_editorfilepicker_renderer::class_name is not documented
(#329) Function qtype_blocklymoodle_format_editorfilepicker_renderer::prepare_response is not documented
(#342) Function qtype_blocklymoodle_format_editorfilepicker_renderer::prepare_response_for_editing is not documented
(#348) Function qtype_blocklymoodle_format_editorfilepicker_renderer::get_editor_options is not documented
(#385) Function qtype_blocklymoodle_format_editorfilepicker_renderer::get_filepicker_options is not documented
(#398) Function qtype_blocklymoodle_format_editorfilepicker_renderer::filepicker_html is not documented
(#436) Function qtype_blocklymoodle_format_plain_renderer::class_name is not documented
(#440) Function qtype_blocklymoodle_format_plain_renderer::response_area_read_only is not documented
(#444) Function qtype_blocklymoodle_format_plain_renderer::response_area_input is not documented
(#462) Function qtype_blocklymoodle_format_monospaced_renderer::class_name is not documented
(#130) No one-line description found in phpdocs for class qtype_blocklymoodle_format_renderer_base
(#168) No one-line description found in phpdocs for class qtype_blocklymoodle_format_noinline_renderer
(#191) No one-line description found in phpdocs for class qtype_blocklymoodle_format_editor_renderer
(#317) No one-line description found in phpdocs for class qtype_blocklymoodle_format_editorfilepicker_renderer
(#418) No one-line description found in phpdocs for class qtype_blocklymoodle_format_plain_renderer
(#453) No one-line description found in phpdocs for class qtype_blocklymoodle_format_monospaced_renderer
(#162) There is no description in phpdocs for function class_name
(#288) There is no description in phpdocs for function get_editor_options
(#297) There is no description in phpdocs for function get_filepicker_options
(#306) There is no description in phpdocs for function filepicker_html
(#426) There is no description in phpdocs for function textarea
(#426) Phpdocs for function qtype_blocklymoodle_format_plain_renderer::textarea has incomplete parameters list
(#20) Package qtype is not valid
question/type/blocklymoodle/version.php
(#20) Package qtype is not valid

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

question/type/blocklymoodle/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2017011806 is missing corresponding savepoint call

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]

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

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]