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

(25 errors, 0 warnings)

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

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/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/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
(#322) Inline doc block comments are not allowed; use "// Comment." instead
(#388) Inline doc block comments are not allowed; use "// Comment." instead
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"
theme/academi/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(33 errors, 36 warnings)

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

theme/academi/javascript/bootstrap-carousel.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 an assignment or function call and instead saw an expression. (no-unused-expressions)
(#28) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#37) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#42) ',' should be placed last. (comma-style)
(#51) Expected no return value. (consistent-return)
(#56) Expected no return value. (consistent-return)
(#58) Expected no return value. (consistent-return)
(#60) ',' should be placed last. (comma-style)
(#68) ',' should be placed last. (comma-style)
(#72) Expected no return value. (consistent-return)
(#74) ',' should be placed last. (comma-style)
(#78) Expected no return value. (consistent-return)
(#80) ',' should be placed last. (comma-style)
(#85) Multiple spaces found before '='. (no-multi-spaces)
(#89) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#100) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#107) Statement inside of curly braces should be on next line. (brace-style)
(#107) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#107) Missing semicolon. (semi)
(#119) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#120) Expected no return value. (consistent-return)
(#127) Unexpected 'this'. (no-invalid-this)
(#131) Unexpected 'this'. (no-invalid-this)
(#144) ',' should be placed last. (comma-style)
(#150) There should be no spaces inside this paren. (space-in-parens)
(#150) There should be no spaces inside this paren. (space-in-parens)
(#151) Unexpected 'this'. (no-invalid-this)
(#151) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#152) Line 152 exceeds the maximum line length of 132. (max-len)
(#152) ',' should be placed last. (comma-style)
(#153) ',' should be placed last. (comma-style)
theme/academi/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)
(#26) Expected to return a value at the end of this function. (consistent-return)
(#28) ',' should be placed last. (comma-style)
(#29) Extra space after key 'WebkitTransition'. (key-spacing)
(#30) Extra space after key 'MozTransition'. (key-spacing)
(#31) Extra space after key 'OTransition'. (key-spacing)
(#32) Extra space after key 'msTransition'. (key-spacing)
(#33) Extra space after key 'transition'. (key-spacing)
(#35) ',' should be placed last. (comma-style)
theme/academi/javascript/theme.js
(#16) Missing JSDoc for parameter '$'. (valid-jsdoc)
(#22) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#23) There should be no spaces inside this paren. (space-in-parens)
(#23) There should be no spaces inside this paren. (space-in-parens)
(#23) Expected to return a value at the end of this function. (consistent-return)
(#24) Identifier 'ctab_obj' is not in camel case. (camelcase)
(#25) Identifier 'ctab_obj' is not in camel case. (camelcase)
(#25) Empty block statement. (no-empty)
(#30) 'img' is not defined. (no-undef)
(#31) 'src' is not defined. (no-undef)
(#31) 'img' is not defined. (no-undef)
(#32) 'img' is not defined. (no-undef)
(#32) 'src' is not defined. (no-undef)
(#33) 'msg' is not defined. (no-undef)
(#34) 'msgsrc' is not defined. (no-undef)
(#34) 'msg' is not defined. (no-undef)
(#35) 'msg' is not defined. (no-undef)
(#35) 'msgsrc' is not defined. (no-undef)
(#36) 'note' is not defined. (no-undef)
(#37) 'notesrc' is not defined. (no-undef)
(#37) 'note' is not defined. (no-undef)
(#38) 'note' is not defined. (no-undef)
(#38) 'notesrc' is not defined. (no-undef)
(#44) Missing space before opening brace. (space-before-blocks)
(#45) '$this' is not defined. (no-undef)
(#47) '$this' is not defined. (no-undef)

CSS problems

(28 errors, 0 warnings)

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

theme/academi/scss/preset/theme.scss
(#941) Expected empty line before at-rule (at-rule-empty-line-before)
(#952) Expected empty line before at-rule (at-rule-empty-line-before)
(#1026) Expected empty line before at-rule (at-rule-empty-line-before)
(#1215) Expected empty line before at-rule (at-rule-empty-line-before)
(#1228) Expected empty line before at-rule (at-rule-empty-line-before)
(#1233) Expected empty line before at-rule (at-rule-empty-line-before)
(#1329) Expected empty line before at-rule (at-rule-empty-line-before)
(#1474) Expected empty line before at-rule (at-rule-empty-line-before)
(#1479) Expected empty line before at-rule (at-rule-empty-line-before)
(#2251) Expected empty line before at-rule (at-rule-empty-line-before)
(#2486) Expected empty line before at-rule (at-rule-empty-line-before)
(#2527) Expected empty line before at-rule (at-rule-empty-line-before)
(#2589) Expected empty line before at-rule (at-rule-empty-line-before)
(#2716) Expected empty line before at-rule (at-rule-empty-line-before)
(#2755) Expected empty line before at-rule (at-rule-empty-line-before)
(#3006) Expected empty line before at-rule (at-rule-empty-line-before)
(#3046) Expected empty line before at-rule (at-rule-empty-line-before)
(#3054) Expected empty line before at-rule (at-rule-empty-line-before)
(#3529) Expected empty line before at-rule (at-rule-empty-line-before)
(#3557) Expected empty line before at-rule (at-rule-empty-line-before)
(#3656) Expected empty line before at-rule (at-rule-empty-line-before)
(#3661) Expected empty line before at-rule (at-rule-empty-line-before)
(#1546) Unexpected !important (declaration-no-important)
(#245) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#248) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#259) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
(#262) Unexpected time value "0s" less than or equal to 100ms (time-no-imperceptible)
theme/academi/style/custom.css
(#3) Unknown word (CssSyntaxError)

PHPDocs style problems

(18 errors, 0 warnings)

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

theme/academi/lib.php
(#84) Function theme_academi_process_css is not documented
(#17) No one-line description found in phpdocs for file
(#30) 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
(#101) Phpdocs for function theme_academi_set_logo has incomplete parameters list
(#185) Phpdocs for function theme_academi_send_unmodified has incomplete parameters list
(#204) Phpdocs for function theme_academi_send_cached_css has incomplete parameters list
(#234) Phpdocs for function theme_academi_set_customcss has incomplete parameters list
(#287) Phpdocs for function theme_academi_pre_css_set_fontwww has incomplete parameters list
(#306) Phpdocs for function theme_academi_set_fontwww has incomplete parameters list
(#346) Phpdocs for function theme_academi_render_slideimg has incomplete parameters list
(#364) Phpdocs for function theme_academi_get_setting has incomplete parameters list
theme/academi/renderers/core_renderer.php
(#17) No one-line description found in phpdocs for file
(#34) Phpdocs for function theme_academi_core_renderer::custom_menu_render has incomplete parameters list
theme/academi/renderers/course_renderer.php
(#18) No one-line description found in phpdocs for file
(#38) 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]

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, 28 warnings)

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

theme/academi/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 114: Bad value “<?php echo new moodle_url('/'); ?>” for attribute “href” on element “a”: Illegal character in path segment: “<” is not allowed. ( <li><a href="<?php echo new moodle_url('/'); ?>"><?php )
(#1) HTML Validation error, line 114: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) ('/'); ?>"><?php ec)
(#1) HTML Validation error, line 115: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation error, line 116: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation error, line 117: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation info, line 123: Empty heading. ( <h2 class="nopadding"></h2>)
(#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.
theme/academi/templates/footer.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 17: Bad value “<?php echo new moodle_url('/'); ?>” for attribute “href” on element “a”: Illegal character in path segment: “<” is not allowed. ( <li><a href="<?php echo new moodle_url('/'); ?>"><?php )
(#1) HTML Validation error, line 17: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) ('/'); ?>"><?php ec)
(#1) HTML Validation error, line 18: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation error, line 19: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation error, line 20: Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.) (="_blank"><?php ec)
(#1) HTML Validation info, line 26: Empty heading. ( <h2 class="nopadding"></h2>)
(#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.
(#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 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"> )