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

(24 errors, 12 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)
(#1048) Expected to return a value at the end of this function. (consistent-return)
(#1231) Missing JSDoc comment. (require-jsdoc)
(#1233) Unexpected 'this'. (no-invalid-this)
(#1234) Unexpected 'this'. (no-invalid-this)
(#1490) Expected to return a value at the end of this function. (consistent-return)
(#1745) Line 1745 exceeds the maximum line length of 132. (max-len)
(#1748) Line 1748 exceeds the maximum line length of 132. (max-len)
(#1771) Line 1771 exceeds the maximum line length of 132. (max-len)
(#1773) Line 1773 exceeds the maximum line length of 132. (max-len)
(#1819) Unexpected 'this'. (no-invalid-this)
(#1864) Function 'anonymous' has a complexity of 23. (complexity)
(#1866) 'oldSlide' is defined but never used. (no-unused-vars)
(#1894) Line 1894 exceeds the maximum line length of 132. (max-len)
(#1906) Line 1906 exceeds the maximum line length of 132. (max-len)
(#2030) Expected to return a value at the end of this function. (consistent-return)
(#2030) 'event' is defined but never used. (no-unused-vars)
(#2051) Line 2051 exceeds the maximum line length of 132. (max-len)
(#2059) Line 2059 exceeds the maximum line length of 132. (max-len)
(#2085) Line 2085 exceeds the maximum line length of 132. (max-len)
(#2113) Function 'anonymous' has a complexity of 21. (complexity)
(#2113) Expected to return a value at the end of this function. (consistent-return)
(#2116) 'edgeWasHit' is defined but never used. (no-unused-vars)
(#2141) Expected a return value. (consistent-return)
(#2158) Line 2158 exceeds the maximum line length of 132. (max-len)
(#2186) Expected to return a value at the end of this function. (consistent-return)
(#2253) 'centerOffset' is defined but never used. (no-unused-vars)
(#2281) Line 2281 exceeds the maximum line length of 132. (max-len)
theme/eguru/javascript/theme.js
(#50) 'jQuery' is not defined. (no-undef)

CSS problems

(36 errors, 1 warnings)

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

theme/eguru/scss/preset/eguru.scss
(#5588) Expected empty line before at-rule (at-rule-empty-line-before)
(#1531) Unexpected !important (declaration-no-important)
(#2039) Unexpected !important (declaration-no-important)
(#2198) Unexpected !important (declaration-no-important)
(#3392) Unexpected !important (declaration-no-important)
(#4161) Expected single space after "," in a single-line function (function-comma-space-after)
(#4161) Expected single space after "," in a single-line function (function-comma-space-after)
(#4162) Expected single space after "," in a single-line function (function-comma-space-after)
(#58) Unexpected data URI (function-url-data-uris)
(#4143) Expected line length to be no more than 132 characters (max-line-length)
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)
(#9) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#19) Expected indentation of 4 spaces (indentation)
(#47) Expected indentation of 4 spaces (indentation)
(#48) Expected indentation of 4 spaces (indentation)
(#49) Expected indentation of 4 spaces (indentation)
(#50) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(7 errors, 0 warnings)

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

theme/eguru/lib.php
(#198) Phpdocs for function theme_eguru_send_unmodified has incomplete parameters list
(#217) Phpdocs for function theme_eguru_send_cached_css has incomplete parameters list
(#341) Phpdocs for function theme_eguru_render_slideimg has incomplete parameters list
(#362) Phpdocs for function theme_eguru_get_setting has incomplete parameters list
(#399) Phpdocs for function theme_eguru_generate_links has incomplete parameters list
(#490) Phpdocs for function theme_eguru_course_trim_char has incomplete parameters list
(#513) Phpdocs for function theme_eguru_lang 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 "stylelint:scss" 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, 35 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
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
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_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