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

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

blocks/course_overview/block_course_overview.php
(#162) Visibility must be declared on method "instance_create"
blocks/course_overview/locallib.php
(#179) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/course_overview/version.php
(#28) Expected 1 space after "="; 2 found

Javascript coding style problems

(3 errors, 4 warnings)

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

blocks/course_overview/amd/src/edit.js
(#26) 'UI' is defined but never used. (no-unused-vars)
(#36) 'ui' is defined but never used. (no-unused-vars)
(#47) Extra space after key 'sesskey'. (key-spacing)
(#48) Extra space after key 'tab'. (key-spacing)
(#49) Extra space after key 'sortorder'. (key-spacing)
blocks/course_overview/amd/src/popup.js
(#26) 'mdlconfig' is defined but never used. (no-unused-vars)
(#43) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(7 errors, 0 warnings)

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

blocks/course_overview/styles.css
(#59) Expected single space before "{" (block-opening-brace-space-before)
(#67) Expected single space before "{" (block-opening-brace-space-before)
(#34) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#35) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#61) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#22) Unexpected !important (declaration-no-important)
(#56) Unexpected !important (declaration-no-important)

PHPDocs style problems

(11 errors, 0 warnings)

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

blocks/course_overview/classes/output/main.php
(#41) Variable main::$config is not documented
(#43) Variable main::$tabs is not documented
(#45) Variable main::$isediting is not documented
(#47) Variable main::$selectedtab is not documented
(#49) Variable main::$sortorder is not documented
(#51) Variable main::$favourites is not documented
(#55) Phpdocs for function main::__construct has incomplete parameters list
(#150) Phpdocs for function main::reorder_select has incomplete parameters list
blocks/course_overview/classes/output/renderer.php
(#17) File-level phpdocs block does not have @copyright tag
(#30) Class renderer does not have @copyright tag
blocks/course_overview/locallib.php
(#171) Phpdocs for function block_course_overview_get_sorted_courses 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:css" 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, 1 warnings)

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

blocks/course_overview/templates/main.mustache
(#1) ESLint error [no-trailing-spaces]: Trailing spaces not allowed. ( ), Line: 5 Column: 1