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

(0 errors, 2 warnings)

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

blocks/theme_selector/db/upgrade.php
(#35) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/theme_selector/version.php
(#33) This comment is 45% valid code; is this commented out code?

Javascript coding style problems

(6 errors, 1 warnings)

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

blocks/theme_selector/amd/src/block_theme_selector.js
(#36) 'data' is defined but never used. (no-unused-vars)
(#65) Missing semicolon. (semi)
blocks/theme_selector/Gruntfile.js
(#41) 'module' is not defined. (no-undef)
(#47) '__dirname' is not defined. (no-undef)
(#50) 'process' is not defined. (no-undef)
(#57) 'process' is not defined. (no-undef)
(#82) Identifier 'dynamic_mappings' is not in camel case. (camelcase)

CSS problems

(6 errors, 0 warnings)

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

blocks/theme_selector/styles.css
(#1) Unexpected single-line block (block-no-single-line)
(#2) Unexpected single-line block (block-no-single-line)
(#3) Unexpected single-line block (block-no-single-line)
(#4) Unexpected single-line block (block-no-single-line)
(#5) Unexpected single-line block (block-no-single-line)
(#1) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)

PHPDocs style problems

(12 errors, 0 warnings)

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

blocks/theme_selector/block_theme_selector.php
(#31) Class block_theme_selector is not documented
(#33) Function block_theme_selector::init is not documented
(#37) Function block_theme_selector::has_config is not documented
(#41) Function block_theme_selector::hide_header is not documented
(#45) Function block_theme_selector::get_content is not documented
(#20) Package block is not valid
blocks/theme_selector/db/access.php
(#20) Package block is not valid
blocks/theme_selector/db/upgrade.php
(#32) Phpdocs for function xmldb_block_theme_selector_upgrade has incomplete parameters list
(#20) Package block is not valid
blocks/theme_selector/lang/en/block_theme_selector.php
(#20) Package block is not valid
blocks/theme_selector/settings.php
(#20) Package block is not valid
blocks/theme_selector/version.php
(#20) Package block 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]