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

(1 errors, 0 warnings)

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

theme/eguru/settings.php
(#85) Line exceeds maximum limit of 180 characters; contains 917 characters

Javascript coding style problems

(34 errors, 15 warnings)

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

theme/eguru/javascript/slick.js
(#23) 'module' is not defined. (no-undef)
(#36) Missing JSDoc comment. (require-jsdoc)
(#206) Expected to return a value at the end of this function. (consistent-return)
(#543) Blocks are nested too deeply (5). (max-depth)
(#644) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#666) Line 666 exceeds the maximum line length of 132. (max-len)
(#714) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#715) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#752) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#1047) Expected to return a value at the end of this function. (consistent-return)
(#1230) Missing JSDoc comment. (require-jsdoc)
(#1232) Unexpected 'this'. (no-invalid-this)
(#1233) Unexpected 'this'. (no-invalid-this)
(#1489) Expected to return a value at the end of this function. (consistent-return)
(#1744) Line 1744 exceeds the maximum line length of 132. (max-len)
(#1747) Line 1747 exceeds the maximum line length of 132. (max-len)
(#1770) Line 1770 exceeds the maximum line length of 132. (max-len)
(#1772) Line 1772 exceeds the maximum line length of 132. (max-len)
(#1818) Unexpected 'this'. (no-invalid-this)
(#1863) Function 'anonymous' has a complexity of 23. (complexity)
(#1865) 'oldSlide' is defined but never used. (no-unused-vars)
(#1865) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#1892) Line 1892 exceeds the maximum line length of 132. (max-len)
(#1904) Line 1904 exceeds the maximum line length of 132. (max-len)
(#1995) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#2027) Expected to return a value at the end of this function. (consistent-return)
(#2027) 'event' is defined but never used. (no-unused-vars)
(#2048) Line 2048 exceeds the maximum line length of 132. (max-len)
(#2056) Line 2056 exceeds the maximum line length of 132. (max-len)
(#2082) Line 2082 exceeds the maximum line length of 132. (max-len)
(#2110) Function 'anonymous' has a complexity of 21. (complexity)
(#2110) Expected to return a value at the end of this function. (consistent-return)
(#2113) 'edgeWasHit' is defined but never used. (no-unused-vars)
(#2138) Expected a return value. (consistent-return)
(#2155) Line 2155 exceeds the maximum line length of 132. (max-len)
(#2183) Expected to return a value at the end of this function. (consistent-return)
(#2250) 'centerOffset' is defined but never used. (no-unused-vars)
(#2278) Line 2278 exceeds the maximum line length of 132. (max-len)
theme/eguru/javascript/theme.js
(#23) '$' is not defined. (no-undef)
(#24) '$' is not defined. (no-undef)
(#27) '$' is not defined. (no-undef)
(#30) '$' is not defined. (no-undef)
(#35) '$' is not defined. (no-undef)
(#36) '$' is not defined. (no-undef)
(#40) '$' is not defined. (no-undef)
(#41) '$' is not defined. (no-undef)
(#44) '$' is not defined. (no-undef)
(#46) '$' is not defined. (no-undef)
(#51) '$' is not defined. (no-undef)

CSS problems

(29 errors, 1 warnings)

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

theme/eguru/scss/preset/eguru.scss
(#5458) Expected empty line before at-rule (at-rule-empty-line-before)
(#1503) Unexpected !important (declaration-no-important)
(#1779) Unexpected !important (declaration-no-important)
(#1780) Unexpected !important (declaration-no-important)
(#2005) Unexpected !important (declaration-no-important)
(#2165) Unexpected !important (declaration-no-important)
(#4103) Expected single space after "," in a single-line function (function-comma-space-after)
(#58) Unexpected data URI (function-url-data-uris)
(#4085) Expected line length to be no more than 132 characters (max-line-length)
theme/eguru/style/font-awesome.css
(#100) Expected empty line before at-rule (at-rule-empty-line-before)
(#110) Expected empty line before at-rule (at-rule-empty-line-before)
(#150) Unexpected composition (selector-root-no-composition)
theme/eguru/style/slick.css
(#2) Expected single space before "{" (block-opening-brace-space-before)
(#23) Expected single space before "{" (block-opening-brace-space-before)
(#33) Expected single space before "{" (block-opening-brace-space-before)
(#37) Expected single space before "{" (block-opening-brace-space-before)
(#44) Expected single space before "{" (block-opening-brace-space-before)
(#53) Expected single space before "{" (block-opening-brace-space-before)
(#62) Expected single space before "{" (block-opening-brace-space-before)
(#68) Expected single space before "{" (block-opening-brace-space-before)
(#72) Expected single space before "{" (block-opening-brace-space-before)
(#77) Expected single space before "{" (block-opening-brace-space-before)
(#85) Expected single space before "{" (block-opening-brace-space-before)
(#89) Expected single space before "{" (block-opening-brace-space-before)
(#93) Expected single space before "{" (block-opening-brace-space-before)
(#97) Expected single space before "{" (block-opening-brace-space-before)
(#101) Expected single space before "{" (block-opening-brace-space-before)
(#105) Expected single space before "{" (block-opening-brace-space-before)
(#109) Expected single space before "{" (block-opening-brace-space-before)
(#40) Unexpected duplicate "cursor" (declaration-block-no-duplicate-properties)

PHPDocs style problems

(1 errors, 0 warnings)

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

theme/eguru/lib.php
(#490) Phpdocs for function theme_eguru_course_trim_char 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, 0 warnings)

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

Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 43 warnings)

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

theme/eguru/templates/columns1.mustache
(#1) HTML Validation info, line 15: The “banner” role is unnecessary for element “header”. ( <header id="header" role="banner" class="pos-f-t navbar navbar-full navbar-light bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 43: Bad value “” for attribute “action” on element “form”: Must be non-empty. ( <form action="" method="get"> )
(#1) HTML Validation error, line 67: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" width="183" height="67" alt="Eguru"> )
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/drawer'], function(mod) { ), Line: 3 Column: 48
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( mod.init(); ), Line: 4 Column: 16
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( }); ), Line: 5 Column: 4
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 6 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 7 Column: 33
theme/eguru/templates/columns2.mustache
(#1) HTML Validation info, line 15: The “banner” role is unnecessary for element “header”. ( <header id="header" role="banner" class="pos-f-t navbar navbar-full navbar-light bg-faded navbar-static-top moodle-has-zindex"> )
(#1) HTML Validation error, line 43: Bad value “” for attribute “action” on element “form”: Must be non-empty. ( <form action="" method="get"> )
(#1) HTML Validation error, line 67: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" width="183" height="67" alt="Eguru"> )
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/drawer'], function(mod) { ), Line: 3 Column: 48
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( mod.init(); ), Line: 4 Column: 16
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( }); ), Line: 5 Column: 4
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 6 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 7 Column: 33
theme/eguru/templates/custom_menu_item.mustache
(#1) Example context missing.
theme/eguru/templates/footer.mustache
(#1) Example context missing.
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/drawer'], function(mod) { ), Line: 3 Column: 48
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( mod.init(); ), Line: 4 Column: 16
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( }); ), Line: 5 Column: 4
theme/eguru/templates/header.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 2: The “banner” role is unnecessary for element “header”. (ad><body><header id="header" role="banner" class="pos-f-t navbar navbar-full navbar-light bg-faded navbar-static-top moodle-has-zindex"> <di)
(#1) HTML Validation error, line 30: Bad value “” for attribute “action” on element “form”: Must be non-empty. ( <form action="" method="get"> )
(#1) HTML Validation error, line 54: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img src="" width="183" height="67" alt="Eguru"> )
(#1) HTML Validation error, line 8: The “aria-controls” attribute must point to an element in the same document. ( <button aria-expanded="false" aria-controls="nav-drawer" type="button" class="btn pull-xs-left m-r-1 btn-secondary" data-action="toggle-drawer" data-side="left" data-preference="drawer-open-nav"> )
theme/eguru/templates/login.mustache
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33
theme/eguru/templates/login_form.mustache
(#1) HTML Validation error, line 87: Stray end tag “div”. ( </div></div><div)
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [no-unused-vars]: 'Y' is defined but never used. ( require(['jquery', 'core/yui'], function($, Y) { ), Line: 2 Column: 49
(#1) ESLint warning [no-empty-function]: Unexpected empty function. ( require(['jquery', 'core/yui'], function($, Y) { ), Line: 2 Column: 52
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['jquery', 'core/yui'], function($, Y) { ), Line: 2 Column: 53
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( }) ), Line: 3 Column: 7
(#1) ESLint error [semi]: Missing semicolon. ( }) ), Line: 3 Column: 7
theme/eguru/templates/maintenance.mustache
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33