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

(23 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/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

(5 errors, 0 warnings)

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

theme/academi/javascript/theme.js
(#29) 'msgsrc' is not defined. (no-undef)
(#30) 'msgsrc' is not defined. (no-undef)
(#40) '$this' is not defined. (no-undef)
(#42) '$this' is not defined. (no-undef)
(#49) 'jQuery' is not defined. (no-undef)

CSS problems

(94 errors, 76 warnings)

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

theme/academi/scss/preset/theme.scss
(#958) Expected empty line before at-rule (at-rule-empty-line-before)
(#969) Expected empty line before at-rule (at-rule-empty-line-before)
(#1043) Expected empty line before at-rule (at-rule-empty-line-before)
(#1221) Expected empty line before at-rule (at-rule-empty-line-before)
(#1234) Expected empty line before at-rule (at-rule-empty-line-before)
(#1239) Expected empty line before at-rule (at-rule-empty-line-before)
(#1259) Expected empty line before at-rule (at-rule-empty-line-before)
(#1333) Expected empty line before at-rule (at-rule-empty-line-before)
(#1478) Expected empty line before at-rule (at-rule-empty-line-before)
(#1483) Expected empty line before at-rule (at-rule-empty-line-before)
(#2365) Expected empty line before at-rule (at-rule-empty-line-before)
(#2603) Expected empty line before at-rule (at-rule-empty-line-before)
(#2644) Expected empty line before at-rule (at-rule-empty-line-before)
(#2706) Expected empty line before at-rule (at-rule-empty-line-before)
(#2836) Expected empty line before at-rule (at-rule-empty-line-before)
(#2875) Expected empty line before at-rule (at-rule-empty-line-before)
(#3128) Expected empty line before at-rule (at-rule-empty-line-before)
(#3168) Expected empty line before at-rule (at-rule-empty-line-before)
(#3176) Expected empty line before at-rule (at-rule-empty-line-before)
(#3662) Expected empty line before at-rule (at-rule-empty-line-before)
(#3690) Expected empty line before at-rule (at-rule-empty-line-before)
(#3783) Expected empty line before at-rule (at-rule-empty-line-before)
(#3788) Expected empty line before at-rule (at-rule-empty-line-before)
(#204) Expected single space before "{" (block-opening-brace-space-before)
(#3761) Expected single space before "{" (block-opening-brace-space-before)
(#1610) Unexpected duplicate "background" (declaration-block-no-duplicate-properties)
(#1611) Unexpected duplicate "border" (declaration-block-no-duplicate-properties)
(#1613) Unexpected duplicate "text-shadow" (declaration-block-no-duplicate-properties)
(#1761) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1777) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1784) Unexpected duplicate "width" (declaration-block-no-duplicate-properties)
(#1788) Unexpected duplicate "width" (declaration-block-no-duplicate-properties)
(#1799) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1813) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1827) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1841) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1855) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1869) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1883) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1897) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1911) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1925) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1939) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1953) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1967) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1981) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#1995) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#3212) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#2781) Unexpected shorthand "padding" after "padding-top" (declaration-block-no-shorthand-property-overrides)
(#2781) Unexpected shorthand "padding" after "padding-left" (declaration-block-no-shorthand-property-overrides)
(#3213) Unexpected shorthand "background" after "background-color" (declaration-block-no-shorthand-property-overrides)
(#1284) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1288) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1302) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1306) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1321) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1325) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1554) Unexpected !important (declaration-no-important)
(#2756) Unexpected !important (declaration-no-important)
(#493) Expected indentation of 8 spaces (indentation)
(#500) Expected indentation of 8 spaces (indentation)
(#720) Expected indentation of 12 spaces (indentation)
(#721) Expected indentation of 12 spaces (indentation)
(#724) Expected indentation of 12 spaces (indentation)
(#722) Expected indentation of 16 spaces (indentation)
(#723) Expected indentation of 16 spaces (indentation)
(#1276) Expected indentation of 12 spaces (indentation)
(#1290) Expected indentation of 12 spaces (indentation)
(#1277) Expected indentation of 16 spaces (indentation)
(#1278) Expected indentation of 16 spaces (indentation)
(#1279) Expected indentation of 16 spaces (indentation)
(#1280) Expected indentation of 16 spaces (indentation)
(#1281) Expected indentation of 16 spaces (indentation)
(#1282) Expected indentation of 16 spaces (indentation)
(#1285) Expected indentation of 16 spaces (indentation)
(#1283) Expected indentation of 20 spaces (indentation)
(#1284) Expected indentation of 20 spaces (indentation)
(#1286) Expected indentation of 16 spaces (indentation)
(#1289) Expected indentation of 16 spaces (indentation)
(#1287) Expected indentation of 20 spaces (indentation)
(#1288) Expected indentation of 20 spaces (indentation)
(#1293) Expected indentation of 16 spaces (indentation)
(#1308) Expected indentation of 16 spaces (indentation)
(#1294) Expected indentation of 20 spaces (indentation)
(#1295) Expected indentation of 20 spaces (indentation)
(#1296) Expected indentation of 20 spaces (indentation)
(#1297) Expected indentation of 20 spaces (indentation)
(#1298) Expected indentation of 20 spaces (indentation)
(#1299) Expected indentation of 20 spaces (indentation)
(#1300) Expected indentation of 20 spaces (indentation)
(#322) Expected line length to be no more than 132 characters (max-line-length)
(#330) Expected line length to be no more than 132 characters (max-line-length)
(#350) Expected line length to be no more than 132 characters (max-line-length)
(#409) Expected line length to be no more than 132 characters (max-line-length)
(#420) Expected line length to be no more than 132 characters (max-line-length)
(#424) Expected line length to be no more than 132 characters (max-line-length)
(#429) Expected line length to be no more than 132 characters (max-line-length)
(#446) Expected line length to be no more than 132 characters (max-line-length)
(#1521) Expected line length to be no more than 132 characters (max-line-length)
(#1542) Expected line length to be no more than 132 characters (max-line-length)
(#1586) Expected line length to be no more than 132 characters (max-line-length)
(#1601) Expected line length to be no more than 132 characters (max-line-length)
(#1608) Expected line length to be no more than 132 characters (max-line-length)
(#1612) Expected line length to be no more than 132 characters (max-line-length)
(#1627) Expected line length to be no more than 132 characters (max-line-length)
(#1633) Expected line length to be no more than 132 characters (max-line-length)
(#1644) Expected line length to be no more than 132 characters (max-line-length)
(#1670) Expected line length to be no more than 132 characters (max-line-length)
(#1706) Expected line length to be no more than 132 characters (max-line-length)
(#1710) Expected line length to be no more than 132 characters (max-line-length)
(#1714) Expected line length to be no more than 132 characters (max-line-length)
(#1722) Expected line length to be no more than 132 characters (max-line-length)
(#1729) Expected line length to be no more than 132 characters (max-line-length)
(#1742) Expected line length to be no more than 132 characters (max-line-length)
(#1746) Expected line length to be no more than 132 characters (max-line-length)
(#1762) Expected line length to be no more than 132 characters (max-line-length)
(#1773) Expected line length to be no more than 132 characters (max-line-length)
(#1778) Expected line length to be no more than 132 characters (max-line-length)
(#1795) Expected line length to be no more than 132 characters (max-line-length)
(#1800) Expected line length to be no more than 132 characters (max-line-length)
(#1809) Expected line length to be no more than 132 characters (max-line-length)
(#1814) Expected line length to be no more than 132 characters (max-line-length)
(#1823) Expected line length to be no more than 132 characters (max-line-length)
(#1828) Expected line length to be no more than 132 characters (max-line-length)
(#1837) Expected line length to be no more than 132 characters (max-line-length)
(#1842) Expected line length to be no more than 132 characters (max-line-length)
(#1851) Expected line length to be no more than 132 characters (max-line-length)
(#1856) Expected line length to be no more than 132 characters (max-line-length)
(#1865) Expected line length to be no more than 132 characters (max-line-length)
(#1870) Expected line length to be no more than 132 characters (max-line-length)
(#1879) Expected line length to be no more than 132 characters (max-line-length)
(#1884) Expected line length to be no more than 132 characters (max-line-length)
(#1893) Expected line length to be no more than 132 characters (max-line-length)
(#1898) Expected line length to be no more than 132 characters (max-line-length)
(#1907) Expected line length to be no more than 132 characters (max-line-length)
(#1912) Expected line length to be no more than 132 characters (max-line-length)
(#1921) Expected line length to be no more than 132 characters (max-line-length)
(#1926) Expected line length to be no more than 132 characters (max-line-length)
(#1935) Expected line length to be no more than 132 characters (max-line-length)
(#1940) Expected line length to be no more than 132 characters (max-line-length)
(#1949) Expected line length to be no more than 132 characters (max-line-length)
(#1954) Expected line length to be no more than 132 characters (max-line-length)
(#1962) Expected line length to be no more than 132 characters (max-line-length)
(#1968) Expected line length to be no more than 132 characters (max-line-length)
(#1976) Expected line length to be no more than 132 characters (max-line-length)
(#1981) Expected line length to be no more than 132 characters (max-line-length)
(#1990) Expected line length to be no more than 132 characters (max-line-length)
(#1995) Expected line length to be no more than 132 characters (max-line-length)
(#2004) Expected line length to be no more than 132 characters (max-line-length)
(#2011) Expected line length to be no more than 132 characters (max-line-length)
(#2023) Expected line length to be no more than 132 characters (max-line-length)
(#2032) Expected line length to be no more than 132 characters (max-line-length)
(#2039) Expected line length to be no more than 132 characters (max-line-length)
(#2051) Expected line length to be no more than 132 characters (max-line-length)
(#2068) Expected line length to be no more than 132 characters (max-line-length)
(#2075) Expected line length to be no more than 132 characters (max-line-length)
(#2087) Expected line length to be no more than 132 characters (max-line-length)
(#2255) Expected line length to be no more than 132 characters (max-line-length)
(#2502) Expected line length to be no more than 132 characters (max-line-length)
(#3240) Expected line length to be no more than 132 characters (max-line-length)
(#3282) Expected line length to be no more than 132 characters (max-line-length)
(#3289) Expected line length to be no more than 132 characters (max-line-length)
(#3305) Expected line length to be no more than 132 characters (max-line-length)
(#3313) Expected line length to be no more than 132 characters (max-line-length)
(#3333) Expected line length to be no more than 132 characters (max-line-length)
(#3366) Expected line length to be no more than 132 characters (max-line-length)
(#923) Expected single space after ":" (media-feature-colon-space-after)
(#958) Expected single space after ":" (media-feature-colon-space-after)
(#1234) Expected single space after ":" (media-feature-colon-space-after)
(#1234) Expected single space after ":" (media-feature-colon-space-after)

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
(#360) 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]

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, 16 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) 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) 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"> )