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

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


Javascript coding style problems

(21 errors, 22 warnings)

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

theme/moove/amd/src/metismenu.js
(#4) Missing JSDoc comment. (require-jsdoc)
(#4) Unexpected space before function parentheses. (space-before-function-paren)
(#4) Statement inside of curly braces should be on next line. (brace-style)
(#4) ["default"] is better written in dot notation. (dot-notation)
(#4) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#6) '$' is already defined. (no-redeclare)
(#8) Missing JSDoc comment. (require-jsdoc)
(#23) Missing JSDoc comment. (require-jsdoc)
(#25) Use ‘===’ to compare with ‘null’. (no-eq-null)
(#29) Don't make functions within a loop. (no-loop-func)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#34) Don't make functions within a loop. (no-loop-func)
(#34) Unexpected space before function parentheses. (space-before-function-paren)
(#42) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#42) Unexpected space before function parentheses. (space-before-function-paren)
(#54) Missing JSDoc comment. (require-jsdoc)
(#68) Missing JSDoc comment. (require-jsdoc)
(#69) Unexpected 'this'. (no-invalid-this)
(#72) Unexpected 'this'. (no-invalid-this)
(#72) Unexpected space before function parentheses. (space-before-function-paren)
(#75) Unexpected space before function parentheses. (space-before-function-paren)
(#80) Unexpected 'this'. (no-invalid-this)
(#83) Missing JSDoc comment. (require-jsdoc)
(#93) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#93) Unexpected space before function parentheses. (space-before-function-paren)
(#118) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#118) Unexpected space before function parentheses. (space-before-function-paren)
(#119) Missing JSDoc comment. (require-jsdoc)
(#131) Line 131 exceeds the maximum line length of 132. (max-len)
(#132) Line 132 exceeds the maximum line length of 132. (max-len)
(#133) Line 133 exceeds the maximum line length of 132. (max-len)
(#133) Unexpected space before function parentheses. (space-before-function-paren)
(#134) Unexpected 'this'. (no-invalid-this)
(#183) Line 183 exceeds the maximum line length of 132. (max-len)
(#194) Line 194 exceeds the maximum line length of 132. (max-len)
(#221) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#222) Line 222 exceeds the maximum line length of 132. (max-len)
(#253) Line 253 exceeds the maximum line length of 132. (max-len)
(#260) Unexpected space before function parentheses. (space-before-function-paren)
(#261) Unexpected 'this'. (no-invalid-this)
(#267) Unexpected 'this'. (no-invalid-this)
(#271) Unexpected 'this'. (no-invalid-this)
(#292) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(1 errors, 0 warnings)

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

theme/moove/classes/output/core/course_renderer.php
(#308) Phpdocs for function course_renderer::get_course_summary_image has incomplete parameters list

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

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

Task "eslint:amd" failed. Use --force to continue.
Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 101 warnings)

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

theme/moove/templates/columns2.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 79: Element “i” is missing one or more of the following attributes: “role”. ( <i id="sidepreopen-control" aria-expanded="false" aria-controls="sidepre-blocks" data-action="toggle-drawer" data-side="right" data-preference="sidepre-open" title="[[ showhideblocks, theme_moove ]]"> )
(#1) HTML Validation info, line 92: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/core/custom_menu_item.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="nav-item"><a cla)
theme/moove/templates/core/login.mustache
(#1) HTML Validation error, line 19: The “align” attribute on the “hr” element is obsolete. Use CSS instead. ( <hr align="left" /> )
theme/moove/templates/core/navbar.mustache
(#1) HTML Validation info, line 2: The “navigation” role is unnecessary for element “nav”. (ad><body><nav role="navigation"> <)
theme/moove/templates/core/popover_region.mustache
(#1) HTML Validation error, line 4: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="popover-region collapsed " data-region="popover-region"> <)
(#1) HTML Validation info, line 23: Empty heading. ( <h3 class="popover-region-header-text" data-region="popover-region-header-text"></h3>)
theme/moove/templates/core_calendar/month_detailed.mustache
(#1) HTML Validation info, line 13: Empty heading. ( <h2 class="current"></h2>)
(#1) HTML Validation error, line 28: Row 1 of a row group established by a “thead” element has no cells beginning on it. ( <tr> </tr> )
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail() or return ( transitionPromise.then(function() { ), Line: 29 Column: 13
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail() or return ( transitionPromise.then(function() { ), Line: 33 Column: 13
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail() or return ( transitionPromise.then(function() { ), Line: 38 Column: 9
theme/moove/templates/course_cover.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 86: Element “i” is missing one or more of the following attributes: “role”. ( <i id="sidepreopen-control" aria-expanded="false" aria-controls="sidepre-blocks" data-action="toggle-drawer" data-side="right" data-preference="sidepre-open" title="[[ showhideblocks, theme_moove ]]"> )
(#1) HTML Validation info, line 99: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/custom_menu_footer.mustache
(#1) Template produced no content
theme/moove/templates/footer.mustache
(#1) HTML Validation info, line 6: Empty heading. ( <h4></h4>)
theme/moove/templates/frontpage.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 80: Element “i” is missing one or more of the following attributes: “role”. ( <i id="sidepreopen-control" aria-expanded="false" aria-controls="sidepre-blocks" data-action="toggle-drawer" data-side="right" data-preference="sidepre-open" title="[[ showhideblocks, theme_moove ]]"> )
(#1) HTML Validation info, line 93: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/frontpage_faq.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 1: This document appears to be written in English. Consider adding “lang="en"” (or variant) to the “html” start tag. (TYPE html><head><title)
theme/moove/templates/frontpage_guest.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation info, line 68: The “form” role is unnecessary for element “form”. ( <form class="signup-form" action="/login/index.php" method="POST" role="form"> )
(#1) HTML Validation error, line 100: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 100: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img src="" /> )
(#1) HTML Validation info, line 101: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 102: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 112: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 112: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img src="" /> )
(#1) HTML Validation info, line 113: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 114: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 124: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 124: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img src="" /> )
(#1) HTML Validation info, line 125: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 126: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 136: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 136: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img src="" /> )
(#1) HTML Validation info, line 137: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 138: Empty heading. ( <h3></h3>)
(#1) HTML Validation info, line 164: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/frontpage_login.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: The “form” role is unnecessary for element “form”. (</h3> <form class="signup-form" action="/login/index.php" method="POST" role="form"> )
theme/moove/templates/frontpage_numbers.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content
theme/moove/templates/frontpage_sponsorsclients.mustache
(#1) Example context missing (@template section not found.)
theme/moove/templates/header.mustache
(#1) HTML Validation info, line 2: The “banner” role is unnecessary for element “header”. (ad><body><header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
theme/moove/templates/inc_end.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Stray end tag “div”. (d><body></div><!-- E)
(#1) HTML Validation info, line 9: Empty heading. ( <h4></h4>)
(#1) HTML Validation error, line 53: Stray end tag “body”. (</html></body></html)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/inc_start.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”. (<html ><head)
(#1) HTML Validation error, line 4: Element “title” must not be empty. ( <title></title> <)
(#1) HTML Validation error, line 5: Bad value “” for attribute “href” on element “link”: Must be non-empty. (itle> <link rel="shortcut icon" href="" /> )
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 54: End of file seen and there were open elements. ( </header>)
(#1) HTML Validation error, line 16: Unclosed element “div”. (<body ><div id="page-wrapper"> )
theme/moove/templates/incourse.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation info, line 85: Empty heading. ( <h4></h4>)
theme/moove/templates/message_popup/message_popover.mustache
(#1) HTML Validation error, line 4: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="popover-region collapsed popover-region-messages" id="nav-message-popover-container" data-userid="3" data-region="popover-region"> <)
(#1) ESLint warning [no-redeclare]: 'controller' is already defined. ( var controller = new controller(container); ), Line: 4 Column: 9
(#1) ESLint warning [new-cap]: A constructor name should not start with a lowercase letter. ( var controller = new controller(container); ), Line: 4 Column: 26
theme/moove/templates/message_popup/notification_popover.mustache
(#1) HTML Validation error, line 4: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="popover-region collapsed popover-region-notifications" id="nav-notification-popover-container" data-userid="3" data-region="popover-region"> <)
(#1) ESLint warning [no-redeclare]: 'controller' is already defined. ( var controller = new controller(container); ), Line: 4 Column: 9
(#1) ESLint warning [new-cap]: A constructor name should not start with a lowercase letter. ( var controller = new controller(container); ), Line: 4 Column: 26
theme/moove/templates/mod_forum/forum_post_email_htmlemail.mustache
(#1) HTML Validation error, line 4: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (><body><style>@medi)
(#1) HTML Validation error, line 16: The “width” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 16: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 16: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 16: The “bgcolor” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 16: The “border” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 20: The “width” attribute on the “td” element is obsolete. Use CSS instead. ( <td></td> <td style="display: block !important;max-width: 600px !important;margin: 0 auto !important;clear: both !important;" width="600"> )
(#1) HTML Validation error, line 22: The “width” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 22: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 22: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 63: The “width” attribute on the “table” element is obsolete. Use CSS instead. ( <table width="100%"> )
theme/moove/templates/mod_forum/forum_post_email_htmlemail_body.mustache
(#1) HTML Validation error, line 3: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><style>@medi)
(#1) HTML Validation error, line 15: The “width” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 15: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 15: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 15: The “bgcolor” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 15: The “border” attribute on the “table” element is obsolete. Use CSS instead. (</style><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f6f6" style="font-family: Arial, sans-serif;"> <)
(#1) HTML Validation error, line 19: The “width” attribute on the “td” element is obsolete. Use CSS instead. ( <td></td> <td style="display: block !important;max-width: 600px !important;margin: 0 auto !important;clear: both !important;" width="600"> )
(#1) HTML Validation error, line 21: The “width” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 21: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 21: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. ( <table class="main" width="100%" cellpadding="0" cellspacing="0" style="background: #fff;border: 1px solid #e9e9e9;border-radius: 3px;"> )
(#1) HTML Validation error, line 62: The “width” attribute on the “table” element is obsolete. Use CSS instead. ( <table width="100%"> )
theme/moove/templates/mydashboard.mustache
(#1) HTML Validation info, line 20: The “banner” role is unnecessary for element “header”. ( <header role="banner" class="pos-f-t navbar navbar-full bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 79: Element “i” is missing one or more of the following attributes: “role”. ( <i id="sidepreopen-control" aria-expanded="false" aria-controls="sidepre-blocks" data-action="toggle-drawer" data-side="right" data-preference="sidepre-open" title="[[ showhideblocks, theme_moove ]]"> )
(#1) HTML Validation info, line 92: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/mydashboard_admin.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 10: Empty heading. ( <h3></h3>)
(#1) HTML Validation info, line 38: Empty heading. ( <h3></h3>)
(#1) HTML Validation info, line 52: Empty heading. ( <h3></h3>)
theme/moove/templates/slideshow.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content