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

(4 errors, 0 warnings)

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

theme/moove/classes/util/extras.php
(#43) Phpdocs for function extras::user_courses_with_progress has incomplete parameters list
(#100) Phpdocs for function extras::get_course_summary_image has incomplete parameters list
(#161) Phpdocs for function extras::get_user_competency_plans has incomplete parameters list
(#228) Phpdocs for function extras::get_mypublic_headerbuttons 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]

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

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(1 errors, 104 warnings)

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

theme/moove/templates/breadcrumb.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
theme/moove/templates/columns2.mustache
(#1) HTML Validation error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation error, line 73: 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 89: 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_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: 5
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail() or return ( transitionPromise.then(function() { ), Line: 33 Column: 5
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail() or return ( transitionPromise.then(function() { ), Line: 38 Column: 5
theme/moove/templates/core_course/activity_navigation.mustache
(#1) HTML Validation error, line 11: Bad value “” for attribute “id” on element “form”: An ID must not be the empty string. (s=""> <form method="post" action="#" class="form-inline" id=""> )
(#1) ESLint warning [consistent-return]: Expected to return a value at the end of function. ( $('#url_select_test').change(function() { ), Line: 3 Column: 42
(#1) ESLint error [no-trailing-spaces]: Trailing spaces not allowed. ( ), Line: 10 Column: 1
theme/moove/templates/course_cover.mustache
(#1) HTML Validation error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#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 96: 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 7: Empty heading. ( <h4></h4>)
theme/moove/templates/frontpage.mustache
(#1) HTML Validation error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation error, line 74: 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 90: 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 error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation info, line 60: 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 93: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 93: 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 94: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 95: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 105: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 105: 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 106: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 107: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 117: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 117: 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 118: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 119: Empty heading. ( <h3></h3>)
(#1) HTML Validation error, line 129: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" /> )
(#1) HTML Validation error, line 129: 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 130: Empty heading. ( <h2></h2>)
(#1) HTML Validation info, line 131: Empty heading. ( <h3></h3>)
(#1) HTML Validation info, line 160: 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 error, line 17: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
theme/moove/templates/inc_end.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 5: Stray end tag “div”. (y> </div><!-- E)
(#1) HTML Validation info, line 12: Empty heading. ( <h4></h4>)
(#1) HTML Validation error, line 51: 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 error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation error, line 47: End of file seen and there were open elements. (per"> )
(#1) HTML Validation error, line 45: Unclosed element “div”. (></nav><div id="page-wrapper"> )
theme/moove/templates/incourse.mustache
(#1) HTML Validation error, line 35: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) ( <div class="d-none d-lg-block"> )
(#1) HTML Validation info, line 81: Empty heading. ( <h4></h4>)
theme/moove/templates/message_popup/notification_popover.mustache
(#1) HTML Validation error, line 32: Attribute “alt” not allowed on element “i” at this point. (mal-icon"><i class="slicon-check" alt="[[ markallread ]]"></i></)
(#1) HTML Validation error, line 43: Attribute “alt” not allowed on element “i” at this point. ( <i class="slicon-settings" alt="[[ notificationpreferences, message ]]"></i> )
(#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.) (dy> <style> )
(#1) HTML Validation error, line 16: The “width” attribute on the “table” element is obsolete. Use CSS instead. (yle> <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. (yle> <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. (yle> <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. (yle> <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. (yle> <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.) (ody> <style> )
(#1) HTML Validation error, line 15: The “width” attribute on the “table” element is obsolete. Use CSS instead. (yle> <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. (yle> <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. (yle> <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. (yle> <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. (yle> <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 error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation error, line 73: 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 89: 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/mypublic.mustache
(#1) HTML Validation error, line 31: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div class="d-none d-lg-block"> )
(#1) HTML Validation error, line 100: 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 116: Empty heading. ( <h4></h4>)
(#1) ESLint error [semi]: Missing semicolon. ( } ), Line: 20 Column: 10
theme/moove/templates/slideshow.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content