Prechecker results: error


Overview

(0 errors, 0 warnings)

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


PHP lint problems

(8 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]

public/local/course_checker/classes/checker_helper.php
(#35) PHP Parse error: syntax error, unexpected identifier "ACTIVITIES_WITH_USER_DATA", expecting "=" in /public/local/course_checker/classes/checker_helper.php on line 35
public/local/course_checker/classes/db/model/check.php
(#36) PHP Parse error: syntax error, unexpected identifier "TABLE", expecting "=" in /public/local/course_checker/classes/db/model/check.php on line 36
public/local/course_checker/classes/db/model/check_result.php
(#32) PHP Parse error: syntax error, unexpected identifier "TABLE", expecting "=" in /public/local/course_checker/classes/db/model/check_result.php on line 32
public/local/course_checker/classes/db/model/checker.php
(#36) PHP Parse error: syntax error, unexpected identifier "TABLE", expecting "=" in /public/local/course_checker/classes/db/model/checker.php on line 36
public/local/course_checker/classes/db/model/event.php
(#36) PHP Parse error: syntax error, unexpected identifier "TABLE", expecting "=" in /public/local/course_checker/classes/db/model/event.php on line 36
public/local/course_checker/classes/mod_type_interface.php
(#41) PHP Parse error: syntax error, unexpected identifier "MOD_TYPE_ASSIGN", expecting "=" in /public/local/course_checker/classes/mod_type_interface.php on line 41
public/local/course_checker/classes/notification.php
(#39) PHP Parse error: syntax error, unexpected identifier "FORMAT_PLAIN", expecting "=" in /public/local/course_checker/classes/notification.php on line 39
public/local/course_checker/classes/resolution_link_helper.php
(#42) PHP Parse error: syntax error, unexpected identifier "DIRECT_MOD_NAMES", expecting "=" in /public/local/course_checker/classes/resolution_link_helper.php on line 42

PHP coding style problems

(0 errors, 187 warnings)

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

public/local/course_checker/checker/activedates/lang/de/coursechecker_activedates.php
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "activedates_setting_modules" is not in the correct order, it should be before "privacy:metadata"
(#35) The string key "activedates_noactivedates" is not in the correct order, it should be before "activedates_setting_modules_help"
public/local/course_checker/checker/activedates/lang/en/coursechecker_activedates.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "activedates_setting_modules" is not in the correct order, it should be before "privacy:metadata"
(#36) The string key "activedates_noactivedates" is not in the correct order, it should be before "activedates_setting_modules_help"
public/local/course_checker/checker/blocks/lang/de/coursechecker_blocks.php
(#32) The string key "blocks_setting" is not in the correct order, it should be before "privacy:metadata"
(#35) The string key "blocks_comparison" is not in the correct order, it should be before "blocks_setting_help"
(#37) The string key "blocks_error" is not in the correct order, it should be before "blocks_success"
(#38) The string key "blocks_activity" is not in the correct order, it should be before "blocks_error"
public/local/course_checker/checker/blocks/lang/en/coursechecker_blocks.php
(#32) The string key "blocks_setting" is not in the correct order, it should be before "privacy:metadata"
(#35) The string key "blocks_comparison" is not in the correct order, it should be before "blocks_setting_help"
(#37) The string key "blocks_error" is not in the correct order, it should be before "blocks_success"
(#38) The string key "blocks_activity" is not in the correct order, it should be before "blocks_error"
public/local/course_checker/checker/data/lang/de/coursechecker_data.php
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "data_success" is not in the correct order, it should be before "privacy:metadata"
public/local/course_checker/checker/data/lang/en/coursechecker_data.php
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "data_success" is not in the correct order, it should be before "privacy:metadata"
public/local/course_checker/checker/groups/lang/de/coursechecker_groups.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "groups_deactivated" is not in the correct order, it should be before "privacy:metadata"
(#36) The string key "groups_lessthantwogroups" is not in the correct order, it should be before "groups_missing"
(#38) The string key "groups_activity" is not in the correct order, it should be before "groups_success"
public/local/course_checker/checker/groups/lang/en/coursechecker_groups.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "groups_deactivated" is not in the correct order, it should be before "privacy:metadata"
(#36) The string key "groups_lessthantwogroups" is not in the correct order, it should be before "groups_missing"
(#38) The string key "groups_activity" is not in the correct order, it should be before "groups_success"
public/local/course_checker/checker/links/classes/curl_manager.php
(#57) Line exceeds 132 characters; contains 144 characters
(#205) Line exceeds 132 characters; contains 133 characters
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) Inline comments must start with a capital letter, digit or 3-dots sequence
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
public/local/course_checker/checker/links/lang/de/coursechecker_links.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "course_summary" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "book_chapter" is not in the correct order, it should be before "course_summary"
(#37) The string key "url_code_valid" is not in the correct order, it should be before "wiki_page"
(#37) Unexpected comment found. Auto-fixing will not work after this comment
(#38) The string key "error_code" is not in the correct order, it should be before "url_code_valid"
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#41) The string key "error_httpsecurity" is not in the correct order, it should be before "error_undefined"
(#42) The string key "domain_is_whitelisted" is not in the correct order, it should be before "error_httpsecurity"
(#45) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "timeout_setting" is not in the correct order, it should be before "url_is_whitelisted"
(#48) The string key "connect_timeout_setting" is not in the correct order, it should be before "timeout_setting_desc"
(#52) The string key "url_whitelist_setting" is not in the correct order, it should be before "useragent_setting_desc"
(#54) The string key "domain_whitelist_setting" is not in the correct order, it should be before "url_whitelist_setting_desc"
public/local/course_checker/checker/links/lang/en/coursechecker_links.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "course_summary" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "book_chapter" is not in the correct order, it should be before "course_summary"
(#37) The string key "url_code_valid" is not in the correct order, it should be before "wiki_page"
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "error_code" is not in the correct order, it should be before "url_code_valid"
(#40) Unexpected comment found. Auto-fixing will not work after this comment
(#42) Unexpected comment found. Auto-fixing will not work after this comment
(#44) The string key "error_httpsecurity" is not in the correct order, it should be before "error_undefined"
(#46) The string key "domain_is_whitelisted" is not in the correct order, it should be before "error_httpsecurity"
(#49) Unexpected comment found. Auto-fixing will not work after this comment
(#50) The string key "timeout_setting" is not in the correct order, it should be before "url_is_whitelisted"
(#52) The string key "connect_timeout_setting" is not in the correct order, it should be before "timeout_setting_desc"
(#56) The string key "url_whitelist_setting" is not in the correct order, it should be before "useragent_setting_desc"
(#59) The string key "domain_whitelist_setting" is not in the correct order, it should be before "url_whitelist_setting_desc"
public/local/course_checker/checker/quiz/lang/de/coursechecker_quiz.php
(#33) The string key "quiz_activity" is not in the correct order, it should be before "quiz_grade_sum_success"
public/local/course_checker/checker/quiz/lang/en/coursechecker_quiz.php
(#34) The string key "quiz_activity" is not in the correct order, it should be before "quiz_grade_sum_success"
public/local/course_checker/checker/referencesettings/lang/de/coursechecker_referencesettings.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "referencesettings_failing" is not in the correct order, it should be before "referencesettings_settingismissing"
(#38) The string key "referencesettings_checklist" is not in the correct order, it should be before "referencesettings_success"
(#41) Unexpected comment found. Auto-fixing will not work after this comment
(#42) The string key "referencefilter_comparison" is not in the correct order, it should be before "referencesettings_checklist_help"
(#46) The string key "referencefilter_enabled" is not in the correct order, it should be before "referencefilter_success"
(#51) The string key "referenceformatoptions_enabled" is not in the correct order, it should be before "referenceformatoptions_success"
public/local/course_checker/checker/referencesettings/lang/en/coursechecker_referencesettings.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "referencesettings_failing" is not in the correct order, it should be before "referencesettings_settingismissing"
(#38) The string key "referencesettings_checklist" is not in the correct order, it should be before "referencesettings_success"
(#41) Unexpected comment found. Auto-fixing will not work after this comment
(#42) The string key "referencefilter_comparison" is not in the correct order, it should be before "referencesettings_checklist_help"
(#46) The string key "referencefilter_enabled" is not in the correct order, it should be before "referencefilter_success"
(#51) The string key "referenceformatoptions_enabled" is not in the correct order, it should be before "referenceformatoptions_success"
public/local/course_checker/checker/subheadings/lang/de/coursechecker_subheadings.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#34) The string key "subheadings_iconmissing" is not in the correct order, it should be before "subheadings_wrongfirsthtmltag"
(#35) The string key "subheadings_generalerror" is not in the correct order, it should be before "subheadings_iconmissing"
(#37) The string key "subheadings_labelignored" is not in the correct order, it should be before "subheadings_success"
public/local/course_checker/checker/subheadings/lang/en/coursechecker_subheadings.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#34) The string key "subheadings_iconmissing" is not in the correct order, it should be before "subheadings_wrongfirsthtmltag"
(#35) The string key "subheadings_generalerror" is not in the correct order, it should be before "subheadings_iconmissing"
(#37) The string key "subheadings_labelignored" is not in the correct order, it should be before "subheadings_success"
public/local/course_checker/checker/userdata/lang/de/coursechecker_userdata.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "userdata_error" is not in the correct order, it should be before "userdata_setting_modules_help"
(#38) The string key "userdata_help" is not in the correct order, it should be before "userdata_success"
public/local/course_checker/checker/userdata/lang/en/coursechecker_userdata.php
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "userdata_error" is not in the correct order, it should be before "userdata_setting_modules_help"
(#38) The string key "userdata_help" is not in the correct order, it should be before "userdata_success"
public/local/course_checker/classes/admin/admin_setting_courseregex.php
(#52) Line exceeds 132 characters; contains 142 characters
public/local/course_checker/classes/admin/admin_setting_linklist.php
(#77) Line exceeds 132 characters; contains 148 characters
public/local/course_checker/classes/db/database_manager.php
(#47) Line exceeds 132 characters; contains 133 characters
public/local/course_checker/classes/output/check.php
(#80) This comment is 44% valid code; is this commented out code?
(#81) Line exceeds 132 characters; contains 165 characters
public/local/course_checker/classes/output/renderer.php
(#80) Line exceeds 132 characters; contains 172 characters
(#87) Line exceeds 132 characters; contains 137 characters
public/local/course_checker/classes/plugininfo/coursechecker.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
public/local/course_checker/classes/resolution_link_helper.php
(#69) Line exceeds 132 characters; contains 143 characters
public/local/course_checker/lang/de/local_course_checker.php
(#31) The string key "settings_name" is not in the correct order, it should be before "subplugintype_coursechecker_plural"
(#32) The string key "plugin_enabled" is not in the correct order, it should be before "settings_name"
(#33) The string key "plugin_disabled" is not in the correct order, it should be before "plugin_enabled"
(#36) The string key "course_checker:view" is not in the correct order, it should be before "settings_referencecourseid"
(#37) The string key "course_checker:runcheck" is not in the correct order, it should be before "course_checker:view"
(#40) Unexpected comment found. Auto-fixing will not work after this comment
(#43) Unexpected comment found. Auto-fixing will not work after this comment
(#44) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "messageprovider_completed" is not in the correct order, it should be before "messageprovider_subject"
(#47) Unexpected comment found. Auto-fixing will not work after this comment
(#49) The string key "messageprovider_singlechecks_completed" is not in the correct order, it should be before "messageprovider_singlechecks_subject"
(#50) The string key "messageprovider_result_label" is not in the correct order, it should be before "messageprovider_singlechecks_completed"
(#51) The string key "messageprovider_greeting" is not in the correct order, it should be before "messageprovider_result_label"
(#52) The string key "messageprovider_following_checks_completed" is not in the correct order, it should be before "messageprovider_greeting"
(#53) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "messageprovider:checker_failed" is not in the correct order, it should be before "messageprovider_following_checks_completed"
(#56) The string key "messageprovider_failed_notification_html" is not in the correct order, it should be before "messageprovider_subject_failed"
(#61) Unexpected comment found. Auto-fixing will not work after this comment
(#62) The string key "checker_last_run" is not in the correct order, it should be before "messageprovider_failed_notification_small"
(#65) The string key "error_checks" is not in the correct order, it should be before "failed_checks"
(#67) The string key "successful_checks" is not in the correct order, it should be before "warning_checks"
(#68) The string key "check_course" is not in the correct order, it should be before "successful_checks"
(#70) The string key "changes_last_check" is not in the correct order, it should be before "check_course_in_progress"
(#71) Unexpected comment found. Auto-fixing will not work after this comment
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#74) The string key "activity" is not in the correct order, it should be before "save_results"
(#76) The string key "action" is not in the correct order, it should be before "last_modified_activity"
(#80) The string key "timestamp" is not in the correct order, it should be before "user"
(#81) The string key "details" is not in the correct order, it should be before "timestamp"
(#82) The string key "created" is not in the correct order, it should be before "details"
(#84) The string key "deleted" is not in the correct order, it should be before "updated"
(#87) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "admin_setting_regex_invalidregex" is not in the correct order, it should be before "unknown"
(#90) The string key "admin_setting_coursesregex" is not in the correct order, it should be before "admin_setting_regex_invalidregex"
(#97) The string key "admin_setting_restrictedint_max" is not in the correct order, it should be before "admin_setting_restrictedint_min"
(#99) Unexpected comment found. Auto-fixing will not work after this comment
(#103) Unexpected comment found. Auto-fixing will not work after this comment
(#108) Unexpected comment found. Auto-fixing will not work after this comment
(#109) The string key "privacy:metadata:local_course_checker_event" is not in the correct order, it should be before "send_notification_task"
(#111) The string key "privacy:metadata:relateduserid" is not in the correct order, it should be before "privacy:metadata:userid"
(#112) The string key "privacy:metadata:checker_id" is not in the correct order, it should be before "privacy:metadata:relateduserid"
(#113) The string key "privacy:metadata:action" is not in the correct order, it should be before "privacy:metadata:checker_id"
(#115) The string key "privacy:metadata:objectid" is not in the correct order, it should be before "privacy:metadata:target"
public/local/course_checker/lang/en/local_course_checker.php
(#31) The string key "settings_name" is not in the correct order, it should be before "subplugintype_coursechecker_plural"
(#32) The string key "plugin_enabled" is not in the correct order, it should be before "settings_name"
(#33) The string key "plugin_disabled" is not in the correct order, it should be before "plugin_enabled"
(#36) The string key "course_checker:view" is not in the correct order, it should be before "settings_referencecourseid"
(#37) The string key "course_checker:runcheck" is not in the correct order, it should be before "course_checker:view"
(#40) Unexpected comment found. Auto-fixing will not work after this comment
(#43) Unexpected comment found. Auto-fixing will not work after this comment
(#44) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "messageprovider_completed" is not in the correct order, it should be before "messageprovider_subject"
(#47) Unexpected comment found. Auto-fixing will not work after this comment
(#49) The string key "messageprovider_singlechecks_completed" is not in the correct order, it should be before "messageprovider_singlechecks_subject"
(#50) The string key "messageprovider_result_label" is not in the correct order, it should be before "messageprovider_singlechecks_completed"
(#51) The string key "messageprovider_greeting" is not in the correct order, it should be before "messageprovider_result_label"
(#52) The string key "messageprovider_following_checks_completed" is not in the correct order, it should be before "messageprovider_greeting"
(#53) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "messageprovider:checker_failed" is not in the correct order, it should be before "messageprovider_following_checks_completed"
(#56) The string key "messageprovider_failed_notification_html" is not in the correct order, it should be before "messageprovider_subject_failed"
(#61) Unexpected comment found. Auto-fixing will not work after this comment
(#62) The string key "checker_last_run" is not in the correct order, it should be before "messageprovider_failed_notification_small"
(#65) The string key "error_checks" is not in the correct order, it should be before "failed_checks"
(#67) The string key "successful_checks" is not in the correct order, it should be before "warning_checks"
(#68) The string key "check_course" is not in the correct order, it should be before "successful_checks"
(#70) The string key "changes_last_check" is not in the correct order, it should be before "check_course_in_progress"
(#71) Unexpected comment found. Auto-fixing will not work after this comment
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#74) The string key "activity" is not in the correct order, it should be before "save_results"
(#76) The string key "action" is not in the correct order, it should be before "last_modified_activity"
(#80) The string key "timestamp" is not in the correct order, it should be before "user"
(#81) The string key "details" is not in the correct order, it should be before "timestamp"
(#82) The string key "created" is not in the correct order, it should be before "details"
(#84) The string key "deleted" is not in the correct order, it should be before "updated"
(#87) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "admin_setting_regex_invalidregex" is not in the correct order, it should be before "unknown"
(#90) The string key "admin_setting_coursesregex" is not in the correct order, it should be before "admin_setting_regex_invalidregex"
(#97) The string key "admin_setting_restrictedint_max" is not in the correct order, it should be before "admin_setting_restrictedint_min"
(#99) Unexpected comment found. Auto-fixing will not work after this comment
(#103) Unexpected comment found. Auto-fixing will not work after this comment
(#108) Unexpected comment found. Auto-fixing will not work after this comment
(#109) The string key "privacy:metadata:local_course_checker_event" is not in the correct order, it should be before "send_notification_task"
(#111) The string key "privacy:metadata:relateduserid" is not in the correct order, it should be before "privacy:metadata:userid"
(#112) The string key "privacy:metadata:checker_id" is not in the correct order, it should be before "privacy:metadata:relateduserid"
(#113) The string key "privacy:metadata:action" is not in the correct order, it should be before "privacy:metadata:checker_id"
(#115) The string key "privacy:metadata:objectid" is not in the correct order, it should be before "privacy:metadata:target"
public/local/course_checker/settings.php
(#37) Line exceeds 132 characters; contains 136 characters

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

(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]