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

(26 errors, 7 warnings)

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

blocks/time/block_time.php
(#99) Visibility must be declared on method "has_config"
blocks/time/classes/output/renderer.php
(#35) global $PAGE cannot be used in renderers. Use $this->page.
(#36) global $PAGE cannot be used in renderers. Use $this->page.
(#40) Expected 1 space before ":"; 0 found
blocks/time/classes/privacy/provider.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/time/lang/en/block_time.php
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// settings" but found "//settings"
blocks/time/settings.php
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) This comment is 53% valid code; is this commented out code?
(#27) No space found before comment text; expected "// select clock type (coming soon)" but found "//select clock type (coming soon)"
(#28) Line indented incorrectly; expected at least 4 spaces, found 0
(#28) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#29) Line indented incorrectly; expected at least 4 spaces, found 0
(#29) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#30) Line indented incorrectly; expected at least 4 spaces, found 0
(#30) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#31) Line indented incorrectly; expected at least 4 spaces, found 0
(#31) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#32) Line indented incorrectly; expected at least 4 spaces, found 0
(#32) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#33) Line indented incorrectly; expected at least 4 spaces, found 0
(#33) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#34) Line indented incorrectly; expected at least 4 spaces, found 0
(#34) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#35) Line indented incorrectly; expected at least 4 spaces, found 0
(#35) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Line indented incorrectly; expected at least 4 spaces, found 0
(#36) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#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
(#38) No space found before comment text; expected "// enable or disable date to be displayed with the clock" but found "//enable or disable date to be displayed with the clock"

Javascript coding style problems

(3 errors, 4 warnings)

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

blocks/time/amd/src/time.js
(#22) 'mdlcfg' is defined but never used. (no-unused-vars)
(#22) 'notification' is defined but never used. (no-unused-vars)
(#22) 'templates' is defined but never used. (no-unused-vars)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#40) Unexpected space before function parentheses. (space-before-function-paren)
(#43) Unexpected space before function parentheses. (space-before-function-paren)
(#58) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(3 errors, 0 warnings)

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

blocks/time/styles.css
(#8) Unexpected !important (declaration-no-important)
(#12) Unexpected !important (declaration-no-important)
(#16) Unexpected !important (declaration-no-important)

PHPDocs style problems

(3 errors, 0 warnings)

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

blocks/time/block_time.php
(#24) Class block_time is not documented
blocks/time/classes/output/renderer.php
(#28) Class renderer is not documented
(#39) Function renderer::render_time 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]

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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/time/templates/clock.mustache
(#1) Example context missing.

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]