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

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

mod/moodleoverflow/classes/ratings.php
(#104) Line exceeds 132 characters; contains 142 characters
mod/moodleoverflow/db/upgrade.php
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
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/lib.php
(#192) Inline comments must end in full-stops, exclamation marks, or question marks
(#1136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1136) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
mod/moodleoverflow/locallib.php
(#1074) Line exceeds 132 characters; contains 149 characters
(#1836) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1836) Inline comments must end in full-stops, exclamation marks, or question marks
(#1846) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1846) Inline comments must end in full-stops, exclamation marks, or question marks
(#1854) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1854) Inline comments must end in full-stops, exclamation marks, or question marks
(#1857) Line exceeds 132 characters; contains 137 characters
(#1870) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1870) Inline comments must end in full-stops, exclamation marks, or question marks
(#1879) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1879) Inline comments must end in full-stops, exclamation marks, or question marks
(#1882) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1882) Inline comments must end in full-stops, exclamation marks, or question marks
(#1895) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1895) Inline comments must end in full-stops, exclamation marks, or question marks
(#1898) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1898) Inline comments must end in full-stops, exclamation marks, or question marks
(#1901) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1901) Inline comments must end in full-stops, exclamation marks, or question marks
mod/moodleoverflow/mod_form.php
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
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/tests/subscriptions_test.php
(#995) Inline comments must end in full-stops, exclamation marks, or question marks
(#995) This comment is 55% valid code; is this commented out code?
(#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) Inline comments must end in full-stops, exclamation marks, or question marks
(#1068) This comment is 55% 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 41% valid code; is this commented out code?
(#1151) Inline comments must end in full-stops, exclamation marks, or question marks
(#1151) This comment is 55% valid code; is this commented out code?
(#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

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

(8 errors, 0 warnings)

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

mod/moodleoverflow/grade.php
(#17) File-level phpdocs block is not found
mod/moodleoverflow/lib.php
(#1102) Phpdocs for function moodleoverflow_get_user_grades has incomplete parameters list
(#1127) Phpdocs for function moodleoverflow_update_grades has incomplete parameters list
(#1158) Phpdocs for function moodleoverflow_grade_item_update has incomplete parameters list
mod/moodleoverflow/locallib.php
(#1834) Function moodleoverflow_update_user_grade is not documented
(#1843) Function moodleoverflow_update_user_grade_on_db is not documented
(#1874) Function moodleoverflow_update_all_grades_for_cm is not documented
(#1907) Function moodleoverflow_update_all_grades 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

(1 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]

mod/moodleoverflow/amd/build/functions.min.js
Uncommitted change detected.

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 30: 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 20: The “valign” attribute on the “td” element is obsolete. Use CSS instead. (> <tr> <td class="left side" valign="top"> )