Prechecker results: warning


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

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


Javascript coding style problems

(0 errors, 48 warnings)

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

mod/moodleoverflow/amd/src/functions.js
(#24) Unexpected space before function parentheses. (space-before-function-paren)
(#27) Missing JSDoc parameter type for 'int'. (valid-jsdoc)
(#27) Missing JSDoc parameter type for 'int'. (valid-jsdoc)
(#27) Missing JSDoc for parameter 'event'. (valid-jsdoc)
(#27) Missing JSDoc for parameter 'userid'. (valid-jsdoc)
(#27) Duplicate JSDoc parameter 'int'. (valid-jsdoc)
(#27) Missing JSDoc parameter type for 'int'. (valid-jsdoc)
(#27) Duplicate JSDoc parameter 'int'. (valid-jsdoc)
(#27) Missing JSDoc parameter type for 'int'. (valid-jsdoc)
(#27) Expected JSDoc for 'ratingid' but found 'string'. (valid-jsdoc)
(#27) Expected JSDoc for 'discussionid' but found 'int'. (valid-jsdoc)
(#27) Duplicate JSDoc parameter 'string'. (valid-jsdoc)
(#27) Missing JSDoc parameter type for 'string'. (valid-jsdoc)
(#27) Duplicate JSDoc parameter 'int'. (valid-jsdoc)
(#27) Missing JSDoc parameter type for 'string'. (valid-jsdoc)
(#37) Unexpected space before function parentheses. (space-before-function-paren)
(#40) 'postid' is already defined. (no-redeclare)
(#53) Unexpected space before function parentheses. (space-before-function-paren)
(#62) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#68) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#90) 'd' used outside of binding context. (block-scoped-var)
(#100) 'd' is already defined. (no-redeclare)
(#105) 'success' used outside of binding context. (block-scoped-var)
(#108) Expected to return a value at the end of function. (consistent-return)
(#108) Unexpected space before function parentheses. (space-before-function-paren)
(#110) 'votes' used outside of binding context. (block-scoped-var)
(#111) 'votes' used outside of binding context. (block-scoped-var)
(#112) 'votes' used outside of binding context. (block-scoped-var)
(#114) 'success' used outside of binding context. (block-scoped-var)
(#120) 'success' used outside of binding context. (block-scoped-var)
(#123) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#131) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#135) 'success' used outside of binding context. (block-scoped-var)
(#135) 'success' is already defined. (no-redeclare)
(#136) 'votes' is already defined. (no-redeclare)
(#138) Expected to return a value at the end of function. (consistent-return)
(#138) Unexpected space before function parentheses. (space-before-function-paren)
(#140) 'votes' used outside of binding context. (block-scoped-var)
(#141) 'votes' used outside of binding context. (block-scoped-var)
(#142) 'votes' used outside of binding context. (block-scoped-var)
(#144) 'success' used outside of binding context. (block-scoped-var)
(#150) 'success' used outside of binding context. (block-scoped-var)
(#153) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#171) Unexpected space before function parentheses. (space-before-function-paren)
(#172) Unexpected space before function parentheses. (space-before-function-paren)
(#179) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#187) Unexpected space before function parentheses. (space-before-function-paren)
(#194) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)

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, 13 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"> )
mod/moodleoverflow/templates/email_text.mustache
(#1) HTML Validation info, line 1: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><head><title)