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

(0 errors, 2 warnings)

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

course/format/grid/classes/toolbox.php
(#324) This comment is 56% valid code; is this commented out code?
course/format/grid/version.php
(#35) This comment is 50% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 19 warnings)

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

course/format/grid/amd/src/local/content.js
(#60) Expected space or tab after '//' in comment. (spaced-comment)
(#96) Comments should not begin with a lowercase character. (capitalized-comments)
(#96) Expected space or tab after '/*' in comment. (spaced-comment)
(#359) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#379) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
course/format/grid/amd/src/thegrid.js
(#79) Unexpected space before function parentheses. (space-before-function-paren)
(#99) Unexpected space before function parentheses. (space-before-function-paren)
(#109) Unexpected space before function parentheses. (space-before-function-paren)
(#125) Unexpected space before function parentheses. (space-before-function-paren)
(#135) Unexpected space before function parentheses. (space-before-function-paren)
(#149) Unexpected space before function parentheses. (space-before-function-paren)
(#159) Unexpected space before function parentheses. (space-before-function-paren)
course/format/grid/format.js
(#43) Identifier 'get_config' is not in camel case. (camelcase)
(#45) Identifier 'container_node' is not in camel case. (camelcase)
(#46) Identifier 'container_class' is not in camel case. (camelcase)
(#47) Identifier 'section_node' is not in camel case. (camelcase)
(#48) Identifier 'section_class' is not in camel case. (camelcase)
(#59) Identifier 'swap_sections' is not in camel case. (camelcase)
(#81) Identifier 'process_sections' is not in camel case. (camelcase)

CSS problems

(2 errors, 0 warnings)

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

course/format/grid/styles.css
(#164) Expected single space before "{" (block-opening-brace-space-before)
(#97) Expected single space after "," in a single-line function (function-comma-space-after)

PHPDocs style problems

(15 errors, 0 warnings)

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

course/format/grid/backup/moodle2/restore_format_grid_plugin.class.php
(#62) Phpdocs for function restore_format_grid_plugin::process_grid has incomplete parameters list
(#174) Phpdocs for function restore_format_grid_plugin::process_gridsection has incomplete parameters list
course/format/grid/classes/courseformat/stateactions.php
(#39) Phpdocs for function stateactions::section_add has incomplete parameters list
(#62) Phpdocs for function stateactions::section_delete has incomplete parameters list
course/format/grid/classes/output/courseformat/content.php
(#63) Phpdocs for function content::get_template_name has incomplete parameters list
course/format/grid/classes/task/update_displayed_images_adhoc.php
(#53) Phpdocs for function update_displayed_images_adhoc::do_update_displayed_images_task has incomplete parameters list
course/format/grid/classes/toolbox.php
(#131) Phpdocs for function toolbox::check_displayed_image has incomplete parameters list
course/format/grid/db/upgrade.php
(#28) Phpdocs for function xmldb_format_grid_upgrade has incomplete parameters list
course/format/grid/lib.php
(#45) Inline phpdocs tag {@link course_get_format($courseorid)} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#283) Inline phpdocs tag {@link ajaxenabled()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#634) Inline phpdocs tag {@link course_edit_form::definition_after_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#685) Inline phpdocs tag {@link moodleform::get_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#686) Inline phpdocs tag {@link update_course()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#861) Inline phpdocs tag {@link course_delete_section()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#898) Inline phpdocs tag {@link course_can_delete_section()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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

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

course/format/grid/templates/coursestyles.mustache
(#1) Template produced no content
course/format/grid/templates/local/content.mustache
(#1) HTML Validation error, line 41: Bad value “” for attribute “id” on element “li”: An ID must not be the empty string. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation error, line 133: Duplicate ID “”. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation info, line 41: The first occurrence of ID “” was here. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation error, line 133: Bad value “” for attribute “id” on element “li”: An ID must not be the empty string. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation error, line 142: Duplicate ID “cmCheckbox”. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation info, line 50: The first occurrence of ID “cmCheckbox” was here. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation error, line 225: Duplicate ID “”. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="5" > )
(#1) HTML Validation info, line 41: The first occurrence of ID “” was here. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation error, line 225: Bad value “” for attribute “id” on element “li”: An ID must not be the empty string. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="5" > )
(#1) HTML Validation error, line 234: Duplicate ID “cmCheckbox”. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation info, line 50: The first occurrence of ID “cmCheckbox” was here. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation error, line 281: Duplicate ID “section-1”. ( <li id="section-1" class="section course-section main clearfix current " data-sectionid="1" data-sectionreturnid="" data-for="section" data-id="35" data-number="1" > )
(#1) HTML Validation info, line 83: The first occurrence of ID “section-1” was here. ( <li id="section-1" class="section course-section main clearfix current " data-sectionid="1" data-sectionreturnid="" data-for="section" data-id="35" data-number="1" > )
(#1) HTML Validation error, line 298: Duplicate ID “collapssesection1”. ( <a role="button" data-toggle="collapse" data-for="sectiontoggler" href="#coursecontentcollapse1" id="collapssesection1" aria-expanded="true" aria-controls="coursecontentcollapse1" class="btn btn-icon mr-1 icons-collapse-expand justify-content-center stretched-link " aria-label="Single Section Example"> )
(#1) HTML Validation info, line 100: The first occurrence of ID “collapssesection1” was here. ( <a role="button" data-toggle="collapse" data-for="sectiontoggler" href="#coursecontentcollapse1" id="collapssesection1" aria-expanded="true" aria-controls="coursecontentcollapse1" class="btn btn-icon mr-1 icons-collapse-expand justify-content-center stretched-link " aria-label="Section title"> )
(#1) HTML Validation error, line 308: Duplicate ID “sectionid-35-title”. ( <h3 class="sectionname course-content-item d-flex align-self-stretch align-items-center mb-0" id="sectionid-35-title" data-for="section_title" data-id="35" data-number="1"> )
(#1) HTML Validation info, line 110: The first occurrence of ID “sectionid-35-title” was here. ( <h3 class="sectionname course-content-item d-flex align-self-stretch align-items-center mb-0" id="sectionid-35-title" data-for="section_title" data-id="35" data-number="1"> )
(#1) HTML Validation error, line 319: Duplicate ID “coursecontentcollapse1”. ( <div id="coursecontentcollapse1" class="content course-content-item-content collapse show "> )
(#1) HTML Validation info, line 121: The first occurrence of ID “coursecontentcollapse1” was here. (> <div id="coursecontentcollapse1" class="content course-content-item-content collapse show "> )
(#1) HTML Validation error, line 331: Duplicate ID “”. ( <li class="activity activity-wrapper assign modtype_assign " id="" data-for="cmitem" data-id="4" > )
(#1) HTML Validation info, line 41: The first occurrence of ID “” was here. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation error, line 331: Bad value “” for attribute “id” on element “li”: An ID must not be the empty string. ( <li class="activity activity-wrapper assign modtype_assign " id="" data-for="cmitem" data-id="4" > )
(#1) HTML Validation error, line 340: Duplicate ID “cmCheckbox”. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation info, line 50: The first occurrence of ID “cmCheckbox” was here. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
course/format/grid/templates/local/content/section.mustache
(#1) HTML Validation error, line 12: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li id="section-3" class="section course-section main clearfix current " data-sectionid="3" data-sectionreturnid="0" data-for="section" data-id="35" data-number="3"> <)
(#1) HTML Validation error, line 117: Duplicate ID “cmCheckbox”. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation info, line 77: The first occurrence of ID “cmCheckbox” was here. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
course/format/grid/templates/local/content/section/content.mustache
(#1) HTML Validation error, line 33: Stray end tag “div”. ( </div></div><div )
(#1) HTML Validation error, line 101: Duplicate ID “cmCheckbox”. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation info, line 61: The first occurrence of ID “cmCheckbox” was here. ( <input id="cmCheckbox" type="checkbox" data-id="" data-action="toggleSelectionCm" data-bulkcheckbox="1" > )
(#1) HTML Validation error, line 130: End tag for “body” seen, but there were unclosed elements. (esource]</body></html)
(#1) HTML Validation error, line 35: Unclosed element “div”. (v></div><div id="coursecontentcollapse3" class="content "> <)

Gherkin .feature problems

(0 errors, 0 warnings)

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