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

(64 errors, 2 warnings)

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

theme/academi/config.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/lang/ar/theme_academi.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#30) Whitespace found at end of line within string
(#31) Whitespace found at end of line within string
(#32) Whitespace found at end of line within string
(#33) Whitespace found at end of line within string
(#75) 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
(#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
(#84) Whitespace found at end of line within string
theme/academi/lang/en/theme_academi.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
(#75) 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
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Whitespace found at end of line within string
(#103) Whitespace found at end of line within string
(#104) Whitespace found at end of line within string
(#105) Whitespace found at end of line within string
(#106) Whitespace found at end of line within string
(#107) Whitespace found at end of line within string
(#195) Whitespace found at end of line within string
(#196) Whitespace found at end of line within string
(#197) Whitespace found at end of line within string
(#198) Whitespace found at end of line within string
(#199) Whitespace found at end of line within string
(#200) Whitespace found at end of line within string
(#201) Whitespace found at end of line within string
theme/academi/layout/columns1.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/columns2.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/embedded.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/frontpage.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/includes/footer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/includes/header.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/includes/slideshow.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/login.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/maintenance.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/layout/secure.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/renderers.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/renderers/core_renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/renderers/course_renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) This comment is 59% valid code; is this commented out code?
theme/academi/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/academi/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(111 errors, 9 warnings)

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

theme/academi/javascript/bootstrap-transition.js
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#3) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#4) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#5) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#6) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#7) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#8) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#9) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#10) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#11) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#12) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#13) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#14) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#15) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#16) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#17) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#18) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#19) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#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)
(#20) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#21) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#22) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#23) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#24) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#25) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#26) Expected to return a value at the end of function. (consistent-return)
(#26) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#27) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#28) ',' should be placed last. (comma-style)
(#28) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#29) Extra space after key 'WebkitTransition'. (key-spacing)
(#29) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#30) Extra space after key 'MozTransition'. (key-spacing)
(#30) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#31) Extra space after key 'OTransition'. (key-spacing)
(#31) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#32) Extra space after key 'msTransition'. (key-spacing)
(#32) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#33) Extra space after key 'transition'. (key-spacing)
(#33) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#34) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#35) ',' should be placed last. (comma-style)
(#35) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#36) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#37) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#38) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#39) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#40) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#41) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#42) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#43) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#44) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#45) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#46) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
theme/academi/javascript/theme.js
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#3) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#4) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#5) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#6) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#7) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#8) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#9) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#10) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#11) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#12) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#13) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#14) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#15) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#16) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#17) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#18) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#19) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#20) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#21) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#22) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#23) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#24) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#25) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#26) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#27) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#28) Comments should not begin with a lowercase character (capitalized-comments)
(#28) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#29) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#30) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#31) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#32) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#33) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#34) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#35) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#36) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#37) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#38) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#39) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#40) '$this' is not defined. (no-undef)
(#40) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#41) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#42) '$this' is not defined. (no-undef)
(#42) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#43) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#44) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#45) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#46) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#47) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#48) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#49) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#50) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#51) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#52) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#53) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#54) 'addhtml' is not defined. (no-undef)
(#54) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#55) 'addhtml' is not defined. (no-undef)
(#55) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#56) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#57) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#58) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#59) 'jQuery' is not defined. (no-undef)

CSS problems

(44 errors, 0 warnings)

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

theme/academi/scss/preset/theme.scss
(#4002) Expected empty line before at-rule (at-rule-empty-line-before)
(#4244) Expected empty line before at-rule (at-rule-empty-line-before)
(#4255) Expected empty line before at-rule (at-rule-empty-line-before)
(#2105) Expected single space before "{" (block-opening-brace-space-before)
(#4488) Expected single space before "!" (declaration-bang-space-before)
(#3979) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#209) Unexpected !important (declaration-no-important)
(#283) Unexpected !important (declaration-no-important)
(#1687) Unexpected !important (declaration-no-important)
(#2124) Unexpected !important (declaration-no-important)
(#2125) Unexpected !important (declaration-no-important)
(#2320) Unexpected !important (declaration-no-important)
(#2324) Unexpected !important (declaration-no-important)
(#3315) Unexpected !important (declaration-no-important)
(#4396) Unexpected !important (declaration-no-important)
(#4406) Unexpected !important (declaration-no-important)
(#4410) Unexpected !important (declaration-no-important)
(#4417) Unexpected !important (declaration-no-important)
(#4483) Unexpected !important (declaration-no-important)
(#4488) Unexpected !important (declaration-no-important)
(#4497) Unexpected !important (declaration-no-important)
(#4505) Unexpected !important (declaration-no-important)
(#4443) Expected single space after "," in a single-line function (function-comma-space-after)
(#4443) Expected single space after "," in a single-line function (function-comma-space-after)
(#4443) Expected single space after "," in a single-line function (function-comma-space-after)
(#4449) Expected single space after "," in a single-line function (function-comma-space-after)
(#4449) Expected single space after "," in a single-line function (function-comma-space-after)
(#4449) Expected single space after "," in a single-line function (function-comma-space-after)
(#4461) Expected single space after "," in a single-line function (function-comma-space-after)
(#4461) Expected single space after "," in a single-line function (function-comma-space-after)
(#4461) Expected single space after "," in a single-line function (function-comma-space-after)
(#4466) Expected single space after "," in a single-line function (function-comma-space-after)
(#4466) Expected single space after "," in a single-line function (function-comma-space-after)
(#4466) Expected single space after "," in a single-line function (function-comma-space-after)
(#3543) Expected indentation of 12 spaces (indentation)
(#3976) Expected indentation of 20 spaces (indentation)
(#4436) Expected single space after "~" (selector-combinator-space-after)
(#4441) Expected single space after "~" (selector-combinator-space-after)
(#4446) Expected single space after "~" (selector-combinator-space-after)
(#4436) Expected single space before "~" (selector-combinator-space-before)
(#4441) Expected single space before "~" (selector-combinator-space-before)
(#4446) Expected single space before "~" (selector-combinator-space-before)
(#4372) Expected newline after "," (selector-list-comma-newline-after)
theme/academi/style/custom.css
(#3) Unknown word (CssSyntaxError)

PHPDocs style problems

(13 errors, 0 warnings)

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

theme/academi/lib.php
(#31) Phpdocs for function theme_academi_get_pre_scss has incomplete parameters list
(#41) Phpdocs for function theme_academi_get_extra_scss has incomplete parameters list
(#50) Phpdocs for function theme_academi_get_main_scss_content has incomplete parameters list
(#68) Phpdocs for function theme_academi_page_init has incomplete parameters list
(#184) Phpdocs for function theme_academi_send_unmodified has incomplete parameters list
(#203) Phpdocs for function theme_academi_send_cached_css has incomplete parameters list
(#233) Phpdocs for function theme_academi_set_customcss has incomplete parameters list
(#286) Phpdocs for function theme_academi_pre_css_set_fontwww has incomplete parameters list
(#305) Phpdocs for function theme_academi_set_fontwww has incomplete parameters list
(#342) Phpdocs for function theme_academi_render_slideimg has incomplete parameters list
(#361) Phpdocs for function theme_academi_get_setting has incomplete parameters list
theme/academi/renderers/core_renderer.php
(#35) Phpdocs for function theme_academi_core_renderer::custom_menu_render has incomplete parameters list
theme/academi/renderers/course_renderer.php
(#39) Phpdocs for function theme_academi_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]

Problems running grunt
Task "stylelint:scss" 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, 23 warnings)

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

theme/academi/templates/columns1.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/academi/templates/columns2.mustache
(#1) HTML Validation error, line 37: 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) 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/academi/templates/custom_menu_item.mustache
(#1) Example context missing (@template section not found.)
theme/academi/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/academi/templates/header.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 24: 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 9: 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/academi/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
theme/academi/templates/navbar.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 23: 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)