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

(82 errors, 13 warnings)

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

blocks/quickcourselist/block_quickcourselist.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#35) Whitespace found at end of line
(#46) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) No space found before comment text; expected "// stop it showing up on any add block lists" but found "//stop it showing up on any add block lists"
(#48) Whitespace found at end of line
(#49) Whitespace found at end of line
(#50) Whitespace found at end of line
(#51) Whitespace found at end of line
(#71) Whitespace found at end of line
(#73) Variable "context_block" must not contain underscores.
(#76) Variable "context_block" must not contain underscores.
(#78) Variable "list_contents" must not contain underscores.
(#110) Variable "context_block" must not contain underscores.
(#110) Whitespace found at end of line
(#111) Whitespace found at end of line
(#122) Closing brace must be on a line by itself
(#123) Closing brace must be on a line by itself
(#124) Closing brace must be on a line by itself
(#126) Whitespace found at end of line
(#131) Variable "list_contents" must not contain underscores.
(#135) Expected "if (...) {\n"; found "if(...) {\n"
(#138) Variable "list_contents" must not contain underscores.
(#143) Expected 1 space after "=>"; 2 found
(#144) Expected 1 space after "=>"; 2 found
(#145) Expected 1 space after "=>"; 2 found
(#159) Expected 1 space before "="; 0 found
(#159) Expected 1 space after "="; 0 found
(#163) Whitespace found at end of line
(#173) Expected 1 space before "-"; 0 found
(#173) Expected 1 space after "-"; 0 found
(#199) Line indented incorrectly; expected at least 8 spaces, found 4
blocks/quickcourselist/db/access.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#46) Whitespace found at end of line
(#49) Whitespace found at end of line
blocks/quickcourselist/quickcourse.php
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) This comment is 75% valid code; is this commented out code?
(#27) No space found before comment text; expected "// define('AJAX_SCRIPT', true);" but found "//define('AJAX_SCRIPT', true);"
(#28) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#42) Line indented incorrectly; expected at least 8 spaces, found 4
(#43) Line indented incorrectly; expected at least 8 spaces, found 4
(#43) Whitespace found at end of line
(#45) Whitespace found at end of line
blocks/quickcourselist/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#22) Spaces must be used to indent lines; tabs are not allowed
(#22) Tab found within whitespace
(#22) Line indented incorrectly; expected at least 4 spaces, found 1
(#22) Line exceeds 132 characters; contains 136 characters
(#24) Spaces must be used to indent lines; tabs are not allowed
(#24) Tab found within whitespace
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) Line indented incorrectly; expected at least 4 spaces, found 1
(#25) Spaces must be used to indent lines; tabs are not allowed
(#25) Tab found within whitespace
(#25) Line indented incorrectly; expected at least 4 spaces, found 1
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Line indented incorrectly; expected at least 4 spaces, found 1
(#27) Spaces must be used to indent lines; tabs are not allowed
(#27) Tab found within whitespace
(#27) Line indented incorrectly; expected at least 4 spaces, found 1
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#29) Line indented incorrectly; expected at least 4 spaces, found 1
(#29) Line exceeds 132 characters; contains 136 characters
(#29) Whitespace found at end of line
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#34) Spaces must be used to indent lines; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected at least 4 spaces, found 1
(#34) Line exceeds 132 characters; contains 177 characters
(#35) Whitespace found at end of line
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 4 spaces, found 1
(#36) Line exceeds 132 characters; contains 134 characters
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 4 spaces, found 1
(#38) Line exceeds maximum limit of 180 characters; contains 202 characters
(#39) Whitespace found at end of line
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 4 spaces, found 1
(#40) Line exceeds 132 characters; contains 144 characters
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 4 spaces, found 1
(#42) Line exceeds maximum limit of 180 characters; contains 217 characters
blocks/quickcourselist/version.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(18 errors, 19 warnings)

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

blocks/quickcourselist/module.js
(#1) Identifier 'block_quickcourselist' is not in camel case. (camelcase)
(#29) 'uri' is not defined. (no-undef)
(#29) Infix operators must be spaced. (space-infix-ops)
(#30) Use ‘===’ to compare with ‘null’. (no-eq-null)
(#35) 'uri' is not defined. (no-undef)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#41) 'list' is not defined. (no-undef)
(#44) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#45) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#45) 'displaystr' is not defined. (no-undef)
(#46) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#46) 'displaystr' is not defined. (no-undef)
(#47) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#47) 'displaystr' is not defined. (no-undef)
(#47) Infix operators must be spaced. (space-infix-ops)
(#47) Infix operators must be spaced. (space-infix-ops)
(#48) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#49) Line 49 exceeds the maximum line length of 132. (max-len)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) 'displaystr' is not defined. (no-undef)
(#49) Infix operators must be spaced. (space-infix-ops)
(#49) 'list' is not defined. (no-undef)
(#52) 'list' is not defined. (no-undef)
(#53) 'list' is not defined. (no-undef)
(#60) Infix operators must be spaced. (space-infix-ops)
(#60) Infix operators must be spaced. (space-infix-ops)
(#69) Missing semicolon. (semi)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(11 errors, 2 warnings)

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

blocks/quickcourselist/block_quickcourselist.php
(#36) Function block_quickcourselist::init is not documented
(#47) Function block_quickcourselist::applicable_formats is not documented
(#56) Function block_quickcourselist::has_config is not documented
(#163) Function block_quickcourselist::get_courses is not documented
(#34) Variable block_quickcourselist::$globalconf is not documented
(#60) Phpdocs for function block_quickcourselist::get_content has incomplete parameters list
(#27) Class block_quickcourselist does not have @copyright tag
(#27) Class block_quickcourselist does not have @license tag
(#63) Not recommended phpdocs tag @access used
blocks/quickcourselist/lang/de/block_quickcourselist.php
(#21) Package blocks is not valid
blocks/quickcourselist/lang/en/block_quickcourselist.php
(#21) Package blocks is not valid
blocks/quickcourselist/settings.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found

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

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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