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

(10 errors, 24 warnings)

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

blocks/course_overview/block_course_overview.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#54) Expected "if (...) {\n"; found "if(...) {\n"
(#54) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Line exceeds 132 characters; contains 160 characters
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/course_overview/classes/output/main.php
(#89) Variable "overview_text" must not contain underscores.
(#93) Variable "overview_text" must not contain underscores.
(#94) Line exceeds 132 characters; contains 137 characters
(#146) Inline comments must start with a capital letter, digit or 3-dots sequence
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#149) Whitespace found at end of line
(#154) Whitespace found at end of line
blocks/course_overview/locallib.php
(#35) Expected MOODLE_INTERNAL check or config.php inclusion
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Line exceeds 132 characters; contains 134 characters
(#130) Line exceeds 132 characters; contains 134 characters
(#149) Commas (,) must be followed by white space.
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#227) Inline comments must end in full-stops, exclamation marks, or question marks
(#232) Whitespace found at end of line
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) Whitespace found at end of line
(#250) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/course_overview/settings.php
(#32) Line exceeds 132 characters; contains 149 characters
(#33) Line exceeds 132 characters; contains 134 characters

Javascript coding style problems

(3 errors, 13 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)
(#31) Comments should not begin with a lowercase character (capitalized-comments)
(#36) 'ui' is defined but never used. (no-unused-vars)
(#44) Comments should not begin with a lowercase character (capitalized-comments)
(#47) Extra space after key 'sesskey'. (key-spacing)
(#48) Extra space after key 'tab'. (key-spacing)
(#49) Extra space after key 'sortorder'. (key-spacing)
(#52) Infix operators must be spaced. (space-infix-ops)
blocks/course_overview/amd/src/popup.js
(#26) 'mdlconfig' is defined but never used. (no-unused-vars)
(#42) Comments should not begin with a lowercase character (capitalized-comments)
(#42) Expected space or tab after '//' in comment. (spaced-comment)
(#43) Unexpected space before function parentheses. (space-before-function-paren)
(#45) Comments should not begin with a lowercase character (capitalized-comments)
(#45) Expected space or tab after '//' in comment. (spaced-comment)
(#48) Comments should not begin with a lowercase character (capitalized-comments)
(#48) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(5 errors, 0 warnings)

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

blocks/course_overview/styles.css
(#63) Expected newline before "}" (block-closing-brace-newline-before)
(#61) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#62) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#49) Unexpected !important (declaration-no-important)
(#63) Unexpected whitespace at end of line (no-eol-whitespace)

PHPDocs style problems

(8 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
(#65) Phpdocs for function main::process_tab 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
(#139) 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