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

(7 errors, 5 warnings)

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

blocks/simple_clock/block_simple_clock.php
(#27) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#142) Expected "if (...) {\n"; found "if(...) {\n"
(#145) Expected "} else {\n"; found "}\n else {\n"
(#151) Expected "} else {\n"; found "}\n else {\n"
(#174) Expected "} else {\n"; found "}\n else {\n"
(#194) Inline comments must start with a capital letter, digit or 3-dots sequence
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) This comment is 54% valid code; is this commented out code?
(#198) Expected "} else {\n"; found "}\n else {\n"
blocks/simple_clock/db/access.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/simple_clock/edit_form.php
(#27) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
blocks/simple_clock/version.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(1 errors, 34 warnings)

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

blocks/simple_clock/module.js
(#1) Identifier 'block_simple_clock' is not in camel case. (camelcase)
(#9) Unexpected space before function parentheses. (space-before-function-paren)
(#9) A space is required after ','. (comma-spacing)
(#9) A space is required after ','. (comma-spacing)
(#9) A space is required after ','. (comma-spacing)
(#9) A space is required after ','. (comma-spacing)
(#9) A space is required after ','. (comma-spacing)
(#10) A space is required after ','. (comma-spacing)
(#10) A space is required after ','. (comma-spacing)
(#10) A space is required after ','. (comma-spacing)
(#10) A space is required after ','. (comma-spacing)
(#10) A space is required after ','. (comma-spacing)
(#25) Unexpected space before function parentheses. (space-before-function-paren)
(#30) Expected space(s) after "if". (keyword-spacing)
(#37) Expected space(s) after "if". (keyword-spacing)
(#43) Implied eval. Consider passing a function instead of a string. (no-implied-eval)
(#43) A space is required after ','. (comma-spacing)
(#46) Unexpected space before function parentheses. (space-before-function-paren)
(#48) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#54) Expected space(s) after "if". (keyword-spacing)
(#59) Expected space(s) after "if". (keyword-spacing)
(#61) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#62) Expected space(s) after "if". (keyword-spacing)
(#64) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#67) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#73) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#76) Expected space(s) after "if". (keyword-spacing)
(#82) Expected space(s) after "if". (keyword-spacing)
(#83) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#84) Expected space(s) after "if". (keyword-spacing)
(#91) Expected space(s) after "if". (keyword-spacing)
(#92) Expected space(s) after "if". (keyword-spacing)
(#93) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#94) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#96) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)

CSS problems

(1 errors, 0 warnings)

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

blocks/simple_clock/styles.css
(#16) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(6 errors, 0 warnings)

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

blocks/simple_clock/block_simple_clock.php
(#21) Package contrib is not valid
blocks/simple_clock/db/access.php
(#21) Package contrib is not valid
blocks/simple_clock/edit_form.php
(#21) Package contrib is not valid
(#37) Function block_simple_clock_edit_form::specific_definition is not documented
blocks/simple_clock/lang/en/block_simple_clock.php
(#21) Package contrib is not valid
blocks/simple_clock/version.php
(#21) Package contrib is not valid

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]