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

(58 errors, 21 warnings)

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

course/format/tiles/backup/moodle2/backup_format_tiles_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/backup/moodle2/restore_format_tiles_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/admin_settingspage_tabs.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/course_section_manager.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/event/label_converted.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Expected 1 space before opening brace; found 2
course/format/tiles/classes/form/registration_form.php
(#131) Logical operator "and" is prohibited; use "&&" instead
(#132) Logical operator "and" is prohibited; use "&&" instead
course/format/tiles/classes/icon_set.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/image_processor.php
(#39) Opening brace should be on the same line as the declaration for class image_processor
(#121) Logical operator "or" is prohibited; use "||" instead
(#121) Logical operator "or" is prohibited; use "||" instead
(#134) Logical operator "or" is prohibited; use "||" instead
course/format/tiles/classes/observer.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/output/course_output.php
(#39) Opening brace should be on the same line as the declaration for class course_output
(#1451) Expected 1 space before "="; 2 found
(#1465) Expected 1 space before "="; 2 found
course/format/tiles/classes/privacy/provider.php
(#54) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/registration_manager.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/task/deferred_register.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/classes/tile_photo.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/db/events.php
(#30) Expected 1 space before "=>"; 5 found
(#31) Expected 1 space before "=>"; 4 found
(#34) Expected 1 space before "=>"; 5 found
(#35) Expected 1 space before "=>"; 4 found
course/format/tiles/db/install.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/db/services.php
(#30) Expected 1 space before "=>"; 3 found
(#31) Expected 1 space before "=>"; 2 found
(#32) Expected 1 space before "=>"; 3 found
(#34) Expected 1 space before "=>"; 8 found
(#35) Expected 1 space before "=>"; 8 found
(#40) Expected 1 space before "=>"; 3 found
(#41) Expected 1 space before "=>"; 2 found
(#42) Expected 1 space before "=>"; 3 found
(#44) Expected 1 space before "=>"; 8 found
(#45) Expected 1 space before "=>"; 8 found
(#50) Expected 1 space before "=>"; 3 found
(#51) Expected 1 space before "=>"; 2 found
(#52) Expected 1 space before "=>"; 3 found
(#54) Expected 1 space before "=>"; 8 found
(#55) Expected 1 space before "=>"; 8 found
(#60) Expected 1 space before "=>"; 3 found
(#61) Expected 1 space before "=>"; 2 found
(#62) Expected 1 space before "=>"; 3 found
(#64) Expected 1 space before "=>"; 8 found
(#65) Expected 1 space before "=>"; 8 found
(#70) Expected 1 space before "=>"; 3 found
(#71) Expected 1 space before "=>"; 2 found
(#72) Expected 1 space before "=>"; 3 found
(#74) Expected 1 space before "=>"; 8 found
(#75) Expected 1 space before "=>"; 8 found
(#80) Expected 1 space before "=>"; 3 found
(#81) Expected 1 space before "=>"; 2 found
(#82) Expected 1 space before "=>"; 3 found
(#84) Expected 1 space before "=>"; 8 found
(#85) Expected 1 space before "=>"; 8 found
(#90) Expected 1 space before "=>"; 3 found
(#91) Expected 1 space before "=>"; 2 found
(#92) Expected 1 space before "=>"; 3 found
(#94) Expected 1 space before "=>"; 8 found
(#95) Expected 1 space before "=>"; 8 found
(#100) Expected 1 space before "=>"; 3 found
(#101) Expected 1 space before "=>"; 2 found
(#102) Expected 1 space before "=>"; 3 found
(#104) Expected 1 space before "=>"; 8 found
(#105) Expected 1 space before "=>"; 8 found
course/format/tiles/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/db/upgradelib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/externallib.php
(#42) Opening brace should be on the same line as the declaration for class format_tiles_external
(#541) Expected 1 space before "="; 2 found
course/format/tiles/lib.php
(#357) Logical operator "and" is prohibited; use "&&" instead
course/format/tiles/locallib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/tiles/renderer.php
(#40) Opening brace should be on the same line as the declaration for class format_tiles_renderer
course/format/tiles/tests/format_tiles_externallib_testcase.php
(#83) Expected 1 space before "="; 2 found
(#149) Expected 1 space before "="; 2 found
course/format/tiles/tests/format_tiles_testcase.php
(#36) Opening brace should be on the same line as the declaration for class format_tiles_testcase
course/format/tiles/version.php
(#27) Expected 1 space before "="; 3 found
(#28) Expected 1 space before "="; 2 found
(#30) Expected 1 space before "="; 2 found

Javascript coding style problems

(15 errors, 6 warnings)

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

course/format/tiles/amd/src/browser_storage.js
(#23) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/browser_storage_set_up.js
(#20) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/completion.js
(#22) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/course.js
(#25) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/course_mod_modal.js
(#25) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_actions.js
(#20) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_browser_storage.js
(#20) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_course.js
(#23) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_course_mod.js
(#22) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_form_helper.js
(#26) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_icon_picker.js
(#24) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/edit_upload_image_helper.js
(#20) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/filter_buttons.js
(#22) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/registration.js
(#20) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/amd/src/tile_fitter.js
(#21) @package should be empty. (jsdoc/empty-tags)
course/format/tiles/format.js
(#24) Identifier 'get_config' is not in camel case. (camelcase)
(#26) Identifier 'container_node' is not in camel case. (camelcase)
(#27) Identifier 'container_class' is not in camel case. (camelcase)
(#28) Identifier 'section_node' is not in camel case. (camelcase)
(#29) Identifier 'section_class' is not in camel case. (camelcase)
(#45) Identifier 'process_sections' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 5 warnings)

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

course/format/tiles/tests/format_tiles_courselib_testcase.php
(#1496) Incorrect path for phpdocs tag @dataProvider detected
(#1557) Incorrect path for phpdocs tag @dataProvider detected
(#1949) Incorrect path for phpdocs tag @dataProvider detected
(#2143) Incorrect path for phpdocs tag @dataProvider detected
(#2362) Incorrect path for phpdocs tag @dataProvider detected

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

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

course/format/tiles/templates/above_tiles.mustache
(#1) Template produced no content
course/format/tiles/templates/completion_manual.mustache
(#1) ESLint error []: Parsing error: Unexpected token > ( require(['core_course/manual_completion_toggle'], toggle => {
course/format/tiles/templates/course_module.mustache
(#1) HTML Validation error, line 11: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (><body><li class="activity fullwidth label modtype_label launch-tiles- position-relative " id="module-123456" data-modtype="label" tabindex="3" data-cmid="123456" data-modinstance="" data-title=""> <)
course/format/tiles/templates/course_modules.mustache
(#1) HTML Validation error, line 11: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) ( <li class="activity fullwidth label modtype_label launch-tiles- position-relative " id="module-123456" data-modtype="label" tabindex="3" data-cmid="123456" data-modinstance="" data-title=""> )
course/format/tiles/templates/icon_picker_photo.mustache
(#1) HTML Validation error, line 6: Bad value “” for attribute “src” on element “img”: Must be non-empty. (d><body><img class="photo" id="tilephoto-223-987" title="grapes.png" alt="grapes.png" data-filename="grapes.png" data-contextid="223" data-itemid="123" data-fileid="987" data-toggle="tooltip" data-placement="right" data-original-title="grapes.png" data-filesize="" src="" data-imagetype="tilephoto" data-url="https://moodle.org/pluginfile.php/223//tilephoto/123/tilephoto/grapes.png"></bod)
course/format/tiles/templates/icon_picker_photos.mustache
(#1) HTML Validation error, line 7: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="photo" id="tilephoto-223-987" title="grapes.png" alt="grapes.png" data-filename="grapes.png" data-contextid="223" data-itemid="123" data-fileid="987" data-toggle="tooltip" data-placement="right" data-original-title="grapes.png" data-filesize="" src="" data-imagetype="tilephoto" data-url="https://moodle.org/pluginfile.php/223//tilephoto/123/tilephoto/grapes.png"> )
(#1) HTML Validation error, line 11: Bad value “” for attribute “src” on element “img”: Must be non-empty. (> <img class="photo" id="tilephoto-223-982" title="apples.png" alt="apples.png" data-filename="apples.png" data-contextid="223" data-itemid="120" data-fileid="982" data-toggle="tooltip" data-placement="right" data-original-title="apples.png" data-filesize="" src="" data-imagetype="tilephoto" data-url="https://moodle.org/pluginfile.php/223//tilephoto/120/tilephoto/apples.png"></bod)
course/format/tiles/templates/inline-css.mustache
(#1) HTML Validation error, line 4: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (><body><style type="text/css"> .)
(#1) HTML Validation info, line 4: The “type” attribute for the “style” element is not needed and should be omitted. (><body><style type="text/css"> .)
course/format/tiles/templates/inplace_editable.mustache
(#1) ESLint error [no-trailing-spaces]: Trailing spaces not allowed. ( ), Line: 3 Column: 1
course/format/tiles/templates/multi_section_tile.mustache
(#1) HTML Validation error, line 4: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li class="tile current " id="tile-3" data-section="3" data-true-sectionid="" tabindex="2" aria-role="button"> <)
course/format/tiles/templates/multi_section_tilebar.mustache
(#1) HTML Validation error, line 6: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (><body><li id="section-1" class="section main current clearfix collapsed" role="region" data-section="1" data-true-sectionid="" data-sectionid="1" aria-label="This is the tile title"> <)
course/format/tiles/templates/single_section.mustache
(#1) HTML Validation error, line 3: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="section-1" data-section="1" class="section main clearfix" role="region" aria-label="Section 1"> <)
course/format/tiles/templates/single_section_page.mustache
(#1) HTML Validation error, line 7: Bad value “region” for attribute “role” on element “li”. ( <li id="section-" data-section="" class="section main clearfix" role="region" aria-label=""> )
(#1) HTML Validation info, line 36: Empty heading. ( <h2></h2>)

Gherkin .feature problems

(0 errors, 0 warnings)

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