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

(30 errors, 25 warnings)

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

plagiarism/drillbit/ajax.php
(#55) File must end with a newline character
plagiarism/drillbit/classes/drillbit_view.class.php
(#18) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#24) Expected 1 space before opening brace; found 0
(#70) File must end with a newline character
plagiarism/drillbit/classes/forms/drillbit_default_setup_form.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) File must end with a newline character
plagiarism/drillbit/classes/forms/drillbit_setup_form.class.php
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) This comment is 66% valid code; is this commented out code?
(#112) File must end with a newline character
plagiarism/drillbit/classes/observer.php
(#17) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#147) File must end with a newline character
plagiarism/drillbit/classes/privacy/provider.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#211) File must end with a newline character
plagiarism/drillbit/classes/task/send_submissions.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Opening brace should be on the same line as the declaration for class send_submissions
plagiarism/drillbit/classes/task/update_reports.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Opening brace should be on the same line as the declaration for class update_reports
plagiarism/drillbit/db/events.php
(#62) File must end with a newline character
plagiarism/drillbit/db/tasks.php
(#47) File must end with a newline character
plagiarism/drillbit/lib.php
(#24) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#47) Opening brace should be on the same line as the declaration for class plagiarism_plugin_drillbit
(#156) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#477) Inline comments must start with a capital letter, digit or 3-dots sequence
(#477) Inline comments must end in full-stops, exclamation marks, or question marks
(#477) This comment is 75% valid code; is this commented out code?
(#477) No space found before comment text; expected "// dd([$hash, $cm, $name, $value]);" but found "//dd([$hash, $cm, $name, $value]);"
(#551) Inline comments must start with a capital letter, digit or 3-dots sequence
(#551) This comment is 78% valid code; is this commented out code?
(#551) No space found before comment text; expected "// $postdata["assignment_id"] = $folderid;" but found "//$postdata["assignment_id"] = $folderid;"
(#564) Inline comments must start with a capital letter, digit or 3-dots sequence
(#564) Inline comments must end in full-stops, exclamation marks, or question marks
(#564) This comment is 86% valid code; is this commented out code?
(#564) No space found before comment text; expected "// print_r($request);exit;" but found "//print_r($request);exit;"
(#595) Expected "if (...) {\n"; found "if(...) {\n"
(#729) Inline comments must start with a capital letter, digit or 3-dots sequence
(#729) This comment is 78% valid code; is this commented out code?
(#729) No space found before comment text; expected "// $loginparams["submissions_key"] = $folderid;" but found "//$loginparams["submissions_key"] = $folderid;"
(#741) Whitespace found at end of line
(#755) Whitespace found at end of line
(#755) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#836) Expected "if (...) {\n"; found "if(...) {\n"
(#880) Expected "if (...) {\n"; found "if(...) {\n"
(#884) The use of function print_r() is forbidden
plagiarism/drillbit/report_file.php
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) This comment is 86% valid code; is this commented out code?
(#36) No space found before comment text; expected "// print_r($drillbitfile);exit;" but found "//print_r($drillbitfile);exit;"
(#52) Expected "if (...) {\n"; found "if(...) {\n"
(#56) Whitespace found at end of line
(#78) File must end with a newline character
plagiarism/drillbit/vendor/autoload.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) "require_once" must be immediately followed by an open parenthesis

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

(55 errors, 19 warnings)

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

plagiarism/drillbit/ajax.php
(#52) Function drillbit_sandbox is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/classes/drillbit_view.class.php
(#24) Package is not specified for class plagiarism_drillbit_view. It is also not specified in file-level phpdocs
(#24) Class plagiarism_drillbit_view is not documented
(#26) Function plagiarism_drillbit_view::output_header is not documented
(#40) Function plagiarism_drillbit_view::add_elements_to_settings_form is not documented
plagiarism/drillbit/classes/forms/drillbit_default_setup_form.class.php
(#28) Class plagiarismdrillbit_default_setup_form is not documented
(#31) Function plagiarismdrillbit_default_setup_form::definition is not documented
plagiarism/drillbit/classes/forms/drillbit_setup_form.class.php
(#33) Class plagiarism_drillbit_setup_form is not documented
(#34) Function plagiarism_drillbit_setup_form::definition is not documented
(#109) Function plagiarism_drillbit_setup_form::validation is not documented
plagiarism/drillbit/classes/observer.php
(#23) Package is not specified for class plagiarism_drillbit_observer. It is also not specified in file-level phpdocs
(#23) Class plagiarism_drillbit_observer is not documented
(#39) Phpdocs for function plagiarism_drillbit_observer::course_reset has incomplete parameters list
(#108) Phpdocs for function plagiarism_drillbit_observer::coursework_submitted has incomplete parameters list
plagiarism/drillbit/classes/privacy/provider.php
(#35) Class provider is not documented
(#49) Phpdocs for function provider::plagiarism_drillbit_get_metadata has incomplete parameters list
plagiarism/drillbit/classes/task/send_submissions.php
(#36) Function send_submissions::get_name is not documented
(#40) Function send_submissions::execute is not documented
plagiarism/drillbit/classes/task/update_reports.php
(#36) Function update_reports::get_name is not documented
(#40) Function update_reports::execute is not documented
plagiarism/drillbit/db/access.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/db/events.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/db/tasks.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/lang/en/plagiarism_drillbit.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/lib.php
(#46) Class plagiarism_plugin_drillbit is not documented
(#117) Function plagiarism_plugin_drillbit::is_plugin_configured is not documented
(#131) Function plagiarism_plugin_drillbit::get_configs is not documented
(#135) Function plagiarism_plugin_drillbit::get_links is not documented
(#318) Function plagiarism_plugin_drillbit::get_file_results is not documented
(#322) Function plagiarism_plugin_drillbit::get_allowed_modules_for_drillbit is not documented
(#327) Function plagiarism_plugin_drillbit::event_handler is not documented
(#355) Function plagiarism_plugin_drillbit::drillbit_create_new_submission is not documented
(#376) Function plagiarism_plugin_drillbit::is_tutor is not documented
(#380) Function plagiarism_plugin_drillbit::get_tutor_capability is not documented
(#384) Function plagiarism_plugin_drillbit::user_enrolled_on_course is not documented
(#388) Function plagiarism_plugin_drillbit::get_author is not documented
(#399) Function get_email_by_user_id is not documented
(#409) Function plagiarism_drillbit_coursemodule_standard_elements is not documented
(#425) Function plagiarism_drillbit_coursemodule_edit_post_actions is not documented
(#470) Function plagiarism_drillbit_update_cm_post_actions is not documented
(#495) Function plagiarism_drillbit_send_queued_submissions is not documented
(#576) Function plagiarism_drillbit_update_reports is not documented
(#613) Function plagiarism_drillbit_has_access_to_view_report is not documented
(#659) Function plagiarism_drillbit_get_file_headers is not documented
(#668) Function plagiarism_drillbit_update_expired_jwt_token is not documented
(#718) Function plagiarism_drillbit_get_existing_jwt_token is not documented
(#724) Function plagiarism_drillbit_get_login_token is not documented
(#746) Function plagiarism_drillbit_call_external_api is not documented
(#772) Function plagiarism_drillbit_tempfile is not documented
(#812) Function plagiarism_drillbit_get_cm_settings is not documented
(#822) Function plagiarism_drillbit_get_plugin_global_settings is not documented
(#828) Function is_drillbit_pulgin_enabled is not documented
(#832) Function plagiarism_drillbit_update_submissions is not documented
(#875) Function get_report_download_uri is not documented
(#879) Function dd is not documented
(#48) Variable plagiarism_plugin_drillbit::$amdcomponentsloaded is not documented
(#17) No one-line description found in phpdocs for file
(#78) There is no description in phpdocs for function plagiarism_drillbit_admin_config
(#68) Phpdocs for function plagiarism_plugin_drillbit::get_config_settings has incomplete parameters list
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/report_file.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/settings.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag
plagiarism/drillbit/vendor/autoload.php
(#2) Empty line found after PHP open tag
(#5) File-level phpdocs block is not found
plagiarism/drillbit/version.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @license tag

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]