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

(0 errors, 152 warnings)

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

mod/moodleoverflow/classes/output/moodleoverflow_email.php
(#465) Method name "_get_discussionlink" should not be prefixed with an underscore to indicate visibility
mod/moodleoverflow/classes/privacy/data_export_helper.php
(#308) This comment is 50% valid code; is this commented out code?
mod/moodleoverflow/classes/ratings.php
(#62) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#67) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#72) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#77) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#99) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#104) Line exceeds 132 characters; contains 142 characters
(#106) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#113) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#132) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#137) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#160) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#202) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#366) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#404) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#465) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#565) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#673) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#805) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/classes/readtracking.php
(#140) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#176) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/db/upgrade.php
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/discussion.php
(#40) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#45) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#50) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#55) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#80) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#104) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#109) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/externallib.php
(#92) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#97) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#102) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#107) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#115) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#121) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#131) Line exceeds 132 characters; contains 139 characters
mod/moodleoverflow/grade.php
(#17) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
mod/moodleoverflow/index.php
(#48) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/lib.php
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#224) This comment is 54% valid code; is this commented out code?
(#455) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1143) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1143) Inline comments must end in full-stops, exclamation marks, or question marks
(#1150) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1150) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/locallib.php
(#112) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#402) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#562) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#627) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#669) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#773) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#780) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#1115) Line exceeds 132 characters; contains 149 characters
(#1271) Inline comments must end in full-stops, exclamation marks, or question marks
(#1871) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1871) Inline comments must end in full-stops, exclamation marks, or question marks
(#1880) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1880) Inline comments must end in full-stops, exclamation marks, or question marks
(#1888) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1888) Inline comments must end in full-stops, exclamation marks, or question marks
(#1891) Line exceeds 132 characters; contains 137 characters
(#1902) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1902) Inline comments must end in full-stops, exclamation marks, or question marks
(#1911) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1911) Inline comments must end in full-stops, exclamation marks, or question marks
(#1914) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1914) Inline comments must end in full-stops, exclamation marks, or question marks
(#1927) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1927) Inline comments must end in full-stops, exclamation marks, or question marks
(#1933) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1933) Inline comments must end in full-stops, exclamation marks, or question marks
(#1936) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1936) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/markposts.php
(#50) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#55) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#60) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#105) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/mod_form.php
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/post.php
(#60) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#68) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#73) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#78) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#84) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#89) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#117) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#122) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#127) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#150) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#175) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#180) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#185) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#190) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#195) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#218) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#223) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#252) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#258) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#264) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#269) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#274) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#279) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#290) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#300) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#317) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#322) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#327) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#332) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#337) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#348) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#361) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#367) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#397) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#413) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#442) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#591) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#598) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#682) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#699) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#705) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/settings.php
(#88) Line exceeds 132 characters; contains 144 characters
(#96) Line exceeds 132 characters; contains 148 characters
(#100) Line exceeds 132 characters; contains 148 characters
(#104) Line exceeds 132 characters; contains 150 characters
(#108) Line exceeds 132 characters; contains 146 characters
mod/moodleoverflow/subscribe.php
(#54) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#87) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#181) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#247) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#257) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#273) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#278) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/tests/privacy_provider_test.php
(#1437) Inline comments must end in full-stops, exclamation marks, or question marks
(#1444) Inline comments must end in full-stops, exclamation marks, or question marks
(#1455) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/tests/subscriptions_test.php
(#995) Inline comments must end in full-stops, exclamation marks, or question marks
(#998) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1068) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1068) This comment is 70% valid code; is this commented out code?
(#1072) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1087) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1087) This comment is 43% valid code; is this commented out code?
(#1151) Inline comments must end in full-stops, exclamation marks, or question marks
(#1154) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1228) Inline comments must start with a capital letter, digit or 3-dots sequence
mod/moodleoverflow/tracking.php
(#38) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#43) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#48) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#101) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#122) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/moodleoverflow/view.php
(#59) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead

Javascript coding style problems

(0 errors, 13 warnings)

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

mod/moodleoverflow/amd/src/functions.js
(#132) Expected catch,fail() or return (promise/catch-or-return)
(#132) Each then() should return a value or throw (promise/always-return)
(#137) Expected catch,fail() or return (promise/catch-or-return)
(#140) Each then() should return a value or throw (promise/always-return)
(#164) Expected catch,fail() or return (promise/catch-or-return)
(#164) Each then() should return a value or throw (promise/always-return)
(#169) Expected catch,fail() or return (promise/catch-or-return)
(#172) Each then() should return a value or throw (promise/always-return)
(#190) Unexpected space before function parentheses. (space-before-function-paren)
(#201) Unexpected space before function parentheses. (space-before-function-paren)
(#247) Expected catch,fail() or return (promise/catch-or-return)
(#260) Expected catch,fail() or return (promise/catch-or-return)
(#272) Expected catch,fail() or return (promise/catch-or-return)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(20 errors, 0 warnings)

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

mod/moodleoverflow/backup/moodle2/restore_moodleoverflow_activity_task.class.php
(#98) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#100) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#154) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#156) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
mod/moodleoverflow/backup/moodle2/restore_moodleoverflow_stepslib.php
(#41) Inline phpdocs tag {@link restore_path_element} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
mod/moodleoverflow/classes/anonymous.php
(#42) Function anonymous::is_post_anonymous is not documented
(#38) Constant anonymous::NOT_ANONYMOUS is not documented
(#39) Constant anonymous::QUESTION_ANONYMOUS is not documented
(#40) Constant anonymous::EVERYTHING_ANONYMOUS is not documented
mod/moodleoverflow/grade.php
(#17) File-level phpdocs block is not found
mod/moodleoverflow/lib.php
(#1109) Phpdocs for function moodleoverflow_get_user_grades has incomplete parameters list
(#1134) Phpdocs for function moodleoverflow_update_grades has incomplete parameters list
(#1165) Phpdocs for function moodleoverflow_grade_item_update has incomplete parameters list
(#80) Inline phpdocs tag {@link plugin_supports()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#351) Inline phpdocs tag {@link file_browser::get_file_info_context_module()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
mod/moodleoverflow/locallib.php
(#1869) Function moodleoverflow_update_user_grade is not documented
(#1877) Function moodleoverflow_update_user_grade_on_db is not documented
(#1906) Function moodleoverflow_update_all_grades_for_cm is not documented
(#1942) Function moodleoverflow_update_all_grades is not documented
mod/moodleoverflow/mod_form.php
(#205) Function mod_moodleoverflow_mod_form::data_postprocessing is not documented

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

This section shows problems detected in mustache templates [More info]

mod/moodleoverflow/templates/email_html.mustache
(#1) HTML Validation error, line 12: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. (></div><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 12: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. (></div><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 12: The “border” attribute on the “table” element is obsolete. Use CSS instead. (></div><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 14: The “width” attribute on the “td” element is obsolete. Use CSS instead. (="header"> <td width="35" valign="top" class="picture left"> )
(#1) HTML Validation error, line 14: The “valign” attribute on the “td” element is obsolete. Use CSS instead. (="header"> <td width="35" valign="top" class="picture left"> )
(#1) HTML Validation error, line 32: The “valign” attribute on the “td” element is obsolete. Use CSS instead. (> <tr> <td class="left side" valign="top"> )
mod/moodleoverflow/templates/email_html_body.mustache
(#1) HTML Validation error, line 2: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. (ad><body><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 2: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. (ad><body><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 2: The “border” attribute on the “table” element is obsolete. Use CSS instead. (ad><body><table border="0" cellpadding="3" cellspacing="0" class="moodleoverflowpost"> <)
(#1) HTML Validation error, line 4: The “width” attribute on the “td” element is obsolete. Use CSS instead. (="header"> <td width="35" valign="top" class="picture left"> )
(#1) HTML Validation error, line 4: The “valign” attribute on the “td” element is obsolete. Use CSS instead. (="header"> <td width="35" valign="top" class="picture left"> )
(#1) HTML Validation error, line 22: The “valign” attribute on the “td” element is obsolete. Use CSS instead. (> <tr> <td class="left side" valign="top"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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