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

(2 errors, 2 warnings)

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

theme/klass/renderers/course_renderer.php
(#43) Line exceeds 132 characters; contains 172 characters
(#79) Line exceeds maximum limit of 180 characters; contains 439 characters
(#125) Line exceeds 132 characters; contains 172 characters
(#154) Line exceeds maximum limit of 180 characters; contains 446 characters

Javascript coding style problems

(15 errors, 19 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) Method 'to' expected no return value. (consistent-return)
(#66) Method 'to' expected no return value. (consistent-return)
(#69) Method 'to' expected no return value. (consistent-return)
(#72) ',' should be placed last. (comma-style)
(#81) ',' should be placed last. (comma-style)
(#85) Method 'next' expected no return value. (consistent-return)
(#85) Missing semicolon. (semi)
(#88) ',' should be placed last. (comma-style)
(#92) Method 'prev' 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) Method 'slide' expected no return value. (consistent-return)
(#153) Unexpected 'this'. (no-invalid-this)
(#157) Unexpected 'this'. (no-invalid-this)
(#161) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#164) 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 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
(#51) 'jQuery' is not defined. (no-undef)

CSS problems

(21 errors, 2 warnings)

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

theme/klass/style/custom.css
(#1) Unknown word (CssSyntaxError)
theme/klass/style/theme.css
(#3255) Unexpected empty block (block-no-empty)
(#4196) Unexpected empty block (block-no-empty)
(#144) Unexpected !important (declaration-no-important)
(#145) Unexpected !important (declaration-no-important)
(#1662) Unexpected !important (declaration-no-important)
(#1765) Unexpected !important (declaration-no-important)
(#4218) Unexpected !important (declaration-no-important)
(#4219) Unexpected !important (declaration-no-important)
(#4344) Unexpected !important (declaration-no-important)
(#4348) Unexpected !important (declaration-no-important)
(#4487) Unexpected !important (declaration-no-important)
(#4679) Unexpected !important (declaration-no-important)
(#4717) Unexpected !important (declaration-no-important)
(#4722) Unexpected !important (declaration-no-important)
(#4725) Unexpected !important (declaration-no-important)
(#4728) Unexpected !important (declaration-no-important)
(#4763) Unexpected !important (declaration-no-important)
(#4766) Unexpected !important (declaration-no-important)
(#4772) Unexpected !important (declaration-no-important)
(#4776) Unexpected !important (declaration-no-important)
(#4740) Expected line length to be no more than 132 characters (max-line-length)
(#4746) Expected line length to be no more than 132 characters (max-line-length)

PHPDocs style problems

(5 errors, 0 warnings)

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

theme/klass/classes/privacy/provider.php
(#26) Class provider is not documented
theme/klass/db/install.php
(#32) Function xmldb_theme_klass_install is not documented
(#17) No one-line description found in phpdocs for file
(#18) Package theme_enlight is not valid
theme/klass/lib.php
(#382) Function theme_klass_lang is not documented

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 "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 15 warnings)

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

theme/klass/templates/columns1.mustache
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/klass/templates/columns2.mustache
(#1) HTML Validation error, line 16: Bad value “banner” for attribute “role” on element “nav”. ( <nav id="header" role="banner" class="fixed-top navbar navbar-light bg-faded navbar-expand moodle-has-zindex"> )
(#1) HTML Validation error, line 30: 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 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/klass/templates/footer.mustache
(#1) Example context missing (@template section not found.)
theme/klass/templates/header.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Bad value “banner” for attribute “role” on element “nav”. (d><body><nav id="header" role="banner" class="fixed-top navbar navbar-light bg-faded navbar-expand moodle-has-zindex"> )
(#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"> )
(#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 nav-link float-sm-left mr-1 btn-secondary" data-action="toggle-drawer" data-side="left" data-preference="drawer-open-nav"><img s)
theme/klass/templates/login.mustache
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/klass/templates/maintenance.mustache
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/klass/templates/navbar.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “banner” for attribute “role” on element “nav”. (ad><body><nav id="header" role="banner" class="fixed-top navbar navbar-light bg-faded navbar-expand moodle-has-zindex"> )
(#1) HTML Validation error, line 16: 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 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 nav-link float-sm-left mr-1 btn-secondary" data-action="toggle-drawer" data-side="left" data-preference="drawer-open-nav"><img s)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]