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

(60 errors, 26 warnings)

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

blocks/anderspink/ap_cache.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/anderspink/block_anderspink.php
(#28) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#35) Visibility must be declared on method "init"
(#40) Visibility must be declared on method "render_article"
(#40) Variable "content_preview" must not contain underscores.
(#40) Variable "show_comments" must not contain underscores.
(#56) Line exceeds maximum limit of 180 characters; contains 182 characters
(#63) Commas (,) must be followed by white space.
(#63) Commas (,) must be followed by white space.
(#64) Variable "content_preview" must not contain underscores.
(#66) Variable "featured_comment" must not contain underscores.
(#67) Variable "show_comments" must not contain underscores.
(#70) Variable "featured_comment" must not contain underscores.
(#73) Variable "featured_comment" must not contain underscores.
(#74) Variable "featured_comment" must not contain underscores.
(#77) Variable "featured_comment" must not contain underscores.
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Variable "featured_comment" must not contain underscores.
(#79) Variable "featured_comment" must not contain underscores.
(#79) Line exceeds 132 characters; contains 141 characters
(#84) Line exceeds 132 characters; contains 146 characters
(#93) Variable "featured_comment" must not contain underscores.
(#93) Variable "featured_comment" must not contain underscores.
(#93) Line exceeds maximum limit of 180 characters; contains 184 characters
(#99) Visibility must be declared on method "get_content"
(#117) Inline comments must start with a capital letter, digit or 3-dots sequence
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) Commas (,) must be followed by white space.
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) Expected 1 space before "?"; 0 found
(#170) Expected 1 space after "?"; 0 found
(#170) Expected 1 space before ":"; 0 found
(#170) Expected 1 space after ":"; 0 found
(#170) Line exceeds 132 characters; contains 177 characters
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Expected 1 space before "?"; 0 found
(#178) Expected 1 space after "?"; 0 found
(#178) Expected 1 space before ":"; 0 found
(#178) Expected 1 space after ":"; 0 found
(#178) Line exceeds 132 characters; contains 158 characters
(#217) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Commas (,) must be followed by white space.
(#219) Commas (,) must be followed by white space.
(#220) Line exceeds 132 characters; contains 139 characters
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) Visibility must be declared on method "has_config"
(#251) Inline comments must end in full-stops, exclamation marks, or question marks
(#256) Expected "if (...) {\n"; found "if(...) {\n"
(#260) Expected "if (...) {\n"; found "if(...) {\n"
(#262) Usage of ELSEIF not allowed; use ELSE IF instead
(#263) Variable "day_diff" must not contain underscores.
(#264) Expected "if (...) {\n"; found "if(...) {\n"
(#264) Variable "day_diff" must not contain underscores.
(#265) Inline control structures are not allowed
(#266) Inline control structures are not allowed
(#267) Inline control structures are not allowed
(#268) Inline control structures are not allowed
(#269) Inline control structures are not allowed
(#271) Expected "if (...) {\n"; found "if(...) { "
(#271) Variable "day_diff" must not contain underscores.
(#271) Closing brace must be on a line by itself
(#272) Expected "if (...) {\n"; found "if(...) { "
(#272) Variable "day_diff" must not contain underscores.
(#272) Variable "day_diff" must not contain underscores.
(#272) Closing brace must be on a line by itself
(#273) Expected "if (...) {\n"; found "if(...) { "
(#273) Variable "day_diff" must not contain underscores.
(#273) Variable "day_diff" must not contain underscores.
(#273) Closing brace must be on a line by itself
blocks/anderspink/db/caches.php
(#24) Whitespace found at end of line
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/anderspink/edit_form.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
(#95) Line exceeds 132 characters; contains 136 characters
(#96) Line exceeds 132 characters; contains 135 characters
(#102) Variable "briefingTimes" must be all lower-case
(#110) Variable "briefingTimes" must be all lower-case
(#110) Line exceeds 132 characters; contains 140 characters
(#137) Line exceeds 132 characters; contains 166 characters
(#141) Line exceeds 132 characters; contains 160 characters
(#145) Line exceeds 132 characters; contains 145 characters
blocks/anderspink/settings.php
(#32) Whitespace found at end of line
blocks/anderspink/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(1 errors, 3 warnings)

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

blocks/anderspink/styles.css
(#1) Unexpected empty block (block-no-empty)
(#25) Expected "#AAA" to be "#aaa" (color-hex-case)
(#29) Expected "#FFF" to be "#fff" (color-hex-case)
(#46) Expected "#FFF" to be "#fff" (color-hex-case)

PHPDocs style problems

(18 errors, 1 warnings)

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

blocks/anderspink/ap_cache.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class ap_cache is not documented
(#4) Function ap_cache::__construct is not documented
(#14) Function ap_cache::get is not documented
(#18) Function ap_cache::set is not documented
(#21) Function ap_cache::path is not documented
(#3) Package is not specified for class ap_cache. It is also not specified in file-level phpdocs
blocks/anderspink/block_anderspink.php
(#33) Class block_anderspink is not documented
(#35) Function block_anderspink::init is not documented
(#40) Function block_anderspink::render_article is not documented
(#99) Function block_anderspink::get_content is not documented
(#238) Function block_anderspink::applicable_formats is not documented
(#242) Function block_anderspink::instance_allow_multiple is not documented
(#246) Function block_anderspink::has_config is not documented
(#250) Function block_anderspink::cron is not documented
(#255) Function block_anderspink::time2str is not documented
blocks/anderspink/edit_form.php
(#25) Class block_anderspink_edit_form is not documented
(#27) Function block_anderspink_edit_form::specific_definition is not documented

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

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