Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(16 errors, 22 warnings)

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

blocks/timestat/block_timestat.php
(#94) Missing docblock for function has_config
(#98) Missing docblock for function instance_allow_multiple
(#102) Missing docblock for function get_config_for_external
blocks/timestat/classes/privacy/provider.php
(#1) Moodle boilerplate not found
(#9) Line exceeds 132 characters; contains 139 characters
(#12) Missing @copyright tag
(#12) Missing @license tag
(#12) Missing docblock for class provider
(#18) Missing docblock for function get_metadata
(#30) Missing docblock for function get_users_in_context
(#48) No one-line description found in phpdocs for docblock of function delete_data_for_users
(#64) Missing docblock for function get_contexts_for_userid
(#80) No one-line description found in phpdocs for docblock of function export_user_data
(#103) Inline comments must start with a capital letter, digit or 3-dots sequence
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) No one-line description found in phpdocs for docblock of function delete_data_for_user
blocks/timestat/lang/en/block_timestat.php
(#28) The string key "blocktitle" is not in the correct order, it should be before "pluginname"
(#30) The string key "calculate" is not in the correct order, it should be before "nologs"
(#32) The string key "summary" is not in the correct order, it should be before "viewreport"
(#33) The string key "start" is not in the correct order, it should be before "summary"
(#34) The string key "end" is not in the correct order, it should be before "start"
(#35) The string key "days" is not in the correct order, it should be before "end"
(#40) The string key "choosetimeperiod" is not in the correct order, it should be before "time"
(#43) The string key "inactivitytime" is not in the correct order, it should be before "loginterval_desc"
(#50) The string key "reportedtime" is not in the correct order, it should be before "showtimer_desc"
(#51) The string key "inactivitytime" is duplicated
(#54) The string key "timestat:addinstance" is not in the correct order, it should be before "timestat:viewtimer"
(#56) The string key "privacy:metadata:block_timestat" is not in the correct order, it should be before "timestat:view"
(#57) The string key "privacy:metadata:block_timestat" is duplicated
blocks/timestat/lang/pl/block_timestat.php
(#28) The string key "blocktitle" is not in the correct order, it should be before "pluginname"
(#30) The string key "calculate" is not in the correct order, it should be before "nologs"
(#33) The string key "start" is not in the correct order, it should be before "summary"
(#34) The string key "end" is not in the correct order, it should be before "start"
(#35) The string key "days" is not in the correct order, it should be before "end"
(#39) The string key "choosetimeperiod" is not in the correct order, it should be before "seconds"
blocks/timestat/locallib.php
(#813) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $params.
(#911) Line exceeds 132 characters; contains 139 characters
blocks/timestat/version.php
(#16) Boilerplate comment must be followed by a single blank line or end of file

Javascript coding style problems

(1 errors, 12 warnings)

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

blocks/timestat/amd/src/event_emiiter.js
(#14) Unexpected space before function parentheses. (space-before-function-paren)
(#34) ["body"] is better written in dot notation. (dot-notation)
(#59) Identifier 'inactivitytime_small' is not in camel case. (camelcase)
(#60) Identifier 'inactivitytime_small' is not in camel case. (camelcase)
blocks/timestat/amd/src/screentime.js
(#30) Missing semicolon. (@babel/semi)
(#58) Unexpected space before function parentheses. (space-before-function-paren)
(#58) Unexpected empty method 'everySecondCallback'. (no-empty-function)
(#60) Unexpected space before function parentheses. (space-before-function-paren)
(#60) Unexpected empty method 'onInactivity'. (no-empty-function)
(#62) Unexpected space before function parentheses. (space-before-function-paren)
(#62) Unexpected empty method 'onStart'. (no-empty-function)
(#64) Unexpected space before function parentheses. (space-before-function-paren)
(#64) Unexpected empty method 'onReport'. (no-empty-function)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

blocks/timestat/classes/privacy/provider.php
(#44) Phpdocs for function provider::delete_data_for_users has incomplete parameters list
(#77) Phpdocs for function provider::export_user_data has incomplete parameters list
(#135) Phpdocs for function provider::delete_data_for_user 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]

Problems running grunt
Task "eslint:amd" 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/timestat/templates/main.mustache
(#1) HTML Validation error, line 17: Duplicate ID “inactivitytime”. ( <span class='info-value' id='inactivitytime'>10:15:)
(#1) HTML Validation info, line 13: The first occurrence of ID “inactivitytime” was here. ( <span class='info-value' id='inactivitytime'>00:00:)

Gherkin .feature problems

(0 errors, 0 warnings)

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