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

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


Javascript coding style problems

(4 errors, 1 warnings)

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

mod/unilabel/amd/src/carouselstart.js
(#29) Implicit global variable, assign as global property instead. (no-implicit-globals)
(#29) 'c' is not defined. (no-undef)
(#30) 'c' is not defined. (no-undef)
(#31) 'c' is not defined. (no-undef)
mod/unilabel/amd/src/dropdown_radio.js
(#28) Missing space before opening brace. (space-before-blocks)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(23 errors, 0 warnings)

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

mod/unilabel/backup/moodle2/restore_unilabel_activity_task.class.php
(#30) No one-line description found in phpdocs for class restore_unilabel_activity_task
mod/unilabel/classes/content_type.php
(#30) No one-line description found in phpdocs for class content_type
mod/unilabel/classes/output/renderer.php
(#30) No one-line description found in phpdocs for class renderer
mod/unilabel/classes/setting_configselect_button.php
(#39) Variable setting_configselect_button::$options is not documented
(#41) Variable setting_configselect_button::$buttonlist is not documented
(#54) Phpdocs for function setting_configselect_button::__construct has incomplete parameters list
(#20) Package unilabeltype_carousel is not valid
(#33) Package unilabeltype_carousel is not valid
mod/unilabel/classes/unknown_type.php
(#120) Function unknown_type::is_active is not documented
mod/unilabel/type/carousel/backup/moodle2/restore_unilabeltype_carousel_subplugin.class.php
(#73) Phpdocs for function restore_unilabeltype_carousel_subplugin::process_unilabeltype_carousel_slide has incomplete parameters list
mod/unilabel/type/carousel/classes/content_type.php
(#53) Function content_type::__construct is not documented
(#511) Function content_type::is_active is not documented
mod/unilabel/type/collapsedtext/classes/content_type.php
(#44) Function content_type::__construct is not documented
(#239) Function content_type::is_active is not documented
(#227) Phpdocs for function content_type::load_unilabeltype_record has incomplete parameters list
mod/unilabel/type/courseteaser/classes/content_type.php
(#44) Function content_type::__construct is not documented
(#282) Function content_type::is_active is not documented
mod/unilabel/type/grid/backup/moodle2/restore_unilabeltype_grid_subplugin.class.php
(#73) Phpdocs for function restore_unilabeltype_grid_subplugin::process_unilabeltype_grid_tile has incomplete parameters list
mod/unilabel/type/grid/classes/content_type.php
(#53) Function content_type::__construct is not documented
(#606) Function content_type::is_active is not documented
mod/unilabel/type/simpletext/classes/content_type.php
(#102) Function content_type::is_active is not documented
mod/unilabel/type/topicteaser/classes/content_type.php
(#44) Function content_type::__construct is not documented
(#324) Function content_type::is_active 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 "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

(1 errors, 21 warnings)

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

mod/unilabel/templates/carousel_button_style.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/unilabel/templates/setting_configselect.mustache
(#1) HTML Validation error, line 2: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><style type="text/css"> b)
mod/unilabel/type/carousel/templates/carousel.mustache
(#1) HTML Validation error, line 17: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 17: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 29: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 29: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 41: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 41: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 1 Column: 1
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/loader']); ), Line: 2 Column: 33
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['theme_boost/carousel']); ), Line: 3 Column: 35
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( require(['mod_unilabel/carouselstart'], function(mod) { ), Line: 4 Column: 56
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( mod.init('-55'); ), Line: 5 Column: 21
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( }); ), Line: 6 Column: 4
(#1) ESLint error [linebreak-style]: Expected linebreaks to be 'LF' but found 'CRLF'. ( ), Line: 7 Column: 1
mod/unilabel/type/carousel/templates/colourpicker.mustache
(#1) HTML Validation error, line 6: The “for” attribute of the “label” element must refer to a non-hidden form control. (> <label class="col-form-label d-inline " for="id_unilabeltype_carousel_background"> )
mod/unilabel/type/grid/templates/colourpicker.mustache
(#1) HTML Validation error, line 6: The “for” attribute of the “label” element must refer to a non-hidden form control. (> <label class="col-form-label d-inline " for="id_unilabeltype_carousel_background"> )
mod/unilabel/type/grid/templates/dialog.mustache
(#1) HTML Validation info, line 10: Empty heading. ( <h4 class="modal-title"></h4>)
mod/unilabel/type/grid/templates/grid.mustache
(#1) HTML Validation error, line 11: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 11: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 23: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )
(#1) HTML Validation error, line 23: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="img-fluid" src="" style="height:100%;object-fit:contain;"/> )