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

(28 errors, 1 warnings)

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

theme/klass/lang/ar/theme_klass.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#71) Whitespace found at end of line within string
(#72) Whitespace found at end of line within string
(#73) Whitespace found at end of line within string
(#74) Whitespace found at end of line within string
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
theme/klass/lang/en/theme_klass.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#72) Whitespace found at end of line within string
(#73) Whitespace found at end of line within string
(#74) Whitespace found at end of line within string
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
theme/klass/layout/columns3.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/klass/layout/secure.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/klass/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#208) This comment is 43% valid code; is this commented out code?
(#310) Inline doc block comments are not allowed; use "// Comment." instead
(#382) Inline doc block comments are not allowed; use "// Comment." instead

Javascript coding style problems

(15 errors, 21 warnings)

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

theme/klass/javascript/bootstrap-carousel.js
(#21) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#21) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#31) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#32) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#43) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#49) ',' should be placed last. (comma-style)
(#60) Expected no return value. (consistent-return)
(#66) Expected no return value. (consistent-return)
(#69) Expected no return value. (consistent-return)
(#72) ',' should be placed last. (comma-style)
(#81) ',' should be placed last. (comma-style)
(#85) Expected no return value. (consistent-return)
(#85) Missing semicolon. (semi)
(#88) ',' should be placed last. (comma-style)
(#92) Expected no return value. (consistent-return)
(#95) ',' should be placed last. (comma-style)
(#106) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#120) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#142) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#144) Expected no return value. (consistent-return)
(#153) Unexpected 'this'. (no-invalid-this)
(#157) Unexpected 'this'. (no-invalid-this)
(#162) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#165) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#182) Unexpected 'this'. (no-invalid-this)
theme/klass/javascript/bootstrap-transition.js
(#20) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#20) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#27) Expected to return a value at the end of this function. (consistent-return)
(#30) Extra space after key 'WebkitTransition'. (key-spacing)
(#31) Extra space after key 'MozTransition'. (key-spacing)
(#32) Extra space after key 'OTransition'. (key-spacing)
(#33) Extra space after key 'msTransition'. (key-spacing)
(#34) Extra space after key 'transition'. (key-spacing)
theme/klass/javascript/theme.js
(#24) Expected to return a value at the end of this function. (consistent-return)
(#26) Empty block statement. (no-empty)
(#57) 'jQuery' is not defined. (no-undef)

CSS problems

(9 errors, 1 warnings)

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

theme/klass/scss/preset/theme.scss
(#1432) Unexpected !important (declaration-no-important)
(#1767) Unexpected !important (declaration-no-important)
(#1770) Unexpected !important (declaration-no-important)
(#4572) Unexpected !important (declaration-no-important)
(#4576) Unexpected !important (declaration-no-important)
(#57) Expected line length to be no more than 132 characters (max-line-length)
(#205) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#208) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#219) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#222) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)

PHPDocs style problems

(9 errors, 0 warnings)

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

theme/klass/lib.php
(#82) Phpdocs for function theme_klass_process_css has incomplete parameters list
(#104) Phpdocs for function theme_klass_set_logo has incomplete parameters list
(#182) Phpdocs for function theme_klass_send_unmodified has incomplete parameters list
(#200) Phpdocs for function theme_klass_send_cached_css has incomplete parameters list
(#294) Phpdocs for function theme_klass_pre_css_set_fontwww has incomplete parameters list
(#318) Phpdocs for function get_logo_url has incomplete parameters list
(#341) Phpdocs for function theme_klass_render_slideimg has incomplete parameters list
(#359) Phpdocs for function theme_klass_get_setting has incomplete parameters list
theme/klass/renderers/course_renderer.php
(#214) Phpdocs for function theme_klass_core_course_renderer::coursecat_coursebox 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, 33 warnings)

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

theme/klass/templates/columns1.mustache
(#1) HTML Validation info, line 14: The “banner” role is unnecessary for element “header”. (er"> <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 127: End tag for “body” seen, but there were unclosed elements. (footer></body></htm)
(#1) HTML Validation error, line 12: Unclosed element “div”. (<body ><div id="page-wrapper"> )
(#1) HTML Validation error, line 19: 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"><span )
(#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/klass/templates/columns2.mustache
(#1) HTML Validation info, line 16: 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 134: End of file seen and there were open elements. (</footer>)
(#1) HTML Validation error, line 12: Unclosed element “div”. (<body ><div id="page-wrapper"> )
(#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/klass/templates/custom_menu_item.mustache
(#1) Example context missing (@template section not found.)
theme/klass/templates/footer.mustache
(#1) Example context missing (@template section not found.)
(#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/klass/templates/header.mustache
(#1) Example context missing (@template section not found.)
(#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"> )
(#1) HTML Validation error, line 71: End tag for “body” seen, but there were unclosed elements. ( </div></body></html)
(#1) HTML Validation error, line 41: Unclosed element “div”. (/header><div class="header-main"> )
(#1) HTML Validation error, line 7: 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"><span )
theme/klass/templates/maintenance.mustache
(#1) HTML Validation error, line 42: Stray doctype. (></html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html)
(#1) HTML Validation error, line 43: Stray start tag “html”. (nal.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head)
(#1) HTML Validation error, line 44: Stray start tag “head”. (9/xhtml"><head><meta)
(#1) HTML Validation error, line 44: Cannot recover after last error. Any further errors will be ignored. (9/xhtml"><head><meta)