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

(1 errors, 12 warnings)

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

course/format/sections/backup/moodle2/restore_format_sections_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/sections/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#48) File must end with a newline character
course/format/sections/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/sections/displaypref.php
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
course/format/sections/renderer.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/sections/tests/format_sections_test.php
(#38) Test method test_get_section_name() is missing any coverage information, own or at class level
(#64) Test method test_get_section_name_customised() is missing any coverage information, own or at class level
(#98) Test method test_get_default_section_name() is missing any coverage information, own or at class level
(#129) Test method test_update_inplace_editable() is missing any coverage information, own or at class level
(#164) Test method test_inplace_editable() is missing any coverage information, own or at class level
(#198) Test method test_default_course_enddate() is missing any coverage information, own or at class level
(#237) Test method test_get_view_url() is missing any coverage information, own or at class level

Javascript coding style problems

(0 errors, 7 warnings)

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

course/format/sections/format.js
(#19) Identifier 'get_config' is not in camel case. (camelcase)
(#21) Identifier 'container_node' is not in camel case. (camelcase)
(#22) Identifier 'container_class' is not in camel case. (camelcase)
(#23) Identifier 'section_node' is not in camel case. (camelcase)
(#24) Identifier 'section_class' is not in camel case. (camelcase)
(#35) Identifier 'swap_sections' is not in camel case. (camelcase)
(#57) 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

(6 errors, 4 warnings)

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

course/format/sections/classes/output/courseformat/content/section.php
(#43) Function section::export_for_template is not documented
course/format/sections/classes/output/renderer.php
(#107) Phpdocs for function renderer::course_display_action_link has incomplete parameters list
(#22) Package is not specified for class renderer. It is also not specified in file-level phpdocs
course/format/sections/lib.php
(#49) Function format_sections::uses_course_index is not documented
(#53) Function format_sections::uses_indentation is not documented
(#166) Function format_sections::supports_components is not documented
(#332) 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)]}
(#369) 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)]}
(#370) Inline phpdocs tag {@link update_course()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#393) 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

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 22 warnings)

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

course/format/sections/templates/local/content.mustache
(#1) HTML Validation error, line 56: 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 134: Duplicate ID “”. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="3" > )
(#1) HTML Validation info, line 56: 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 134: 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 212: Duplicate ID “”. ( <li class="activity activity-wrapper forum modtype_forum newmessages " id="" data-for="cmitem" data-id="5" > )
(#1) HTML Validation info, line 56: 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 212: 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 242: 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 258: Duplicate ID “collapssesection1”. ( <a role="button" data-toggle="collapse" 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 99: The first occurrence of ID “collapssesection1” was here. ( <a role="button" data-toggle="collapse" 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 268: Duplicate ID “coursecontentsection1”. ( <h3 class="sectionid-35-title sectionname course-content-item d-flex align-self-stretch align-items-center mb-0" id="coursecontentsection1" data-for="section_title" data-id="35" data-number="1"> )
(#1) HTML Validation info, line 109: The first occurrence of ID “coursecontentsection1” was here. ( <h3 class="sectionid-35-title sectionname course-content-item d-flex align-self-stretch align-items-center mb-0" id="coursecontentsection1" data-for="section_title" data-id="35" data-number="1"> )
(#1) HTML Validation error, line 279: Duplicate ID “coursecontentcollapse1”. ( <div id="coursecontentcollapse1" class="content course-content-item-content collapse show "> )
(#1) HTML Validation info, line 120: The first occurrence of ID “coursecontentcollapse1” was here. ( <div id="coursecontentcollapse1" class="content course-content-item-content collapse show "> )
(#1) HTML Validation error, line 293: Duplicate ID “”. ( <li class="activity activity-wrapper assign modtype_assign " id="" data-for="cmitem" data-id="4" > )
(#1) HTML Validation info, line 56: 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 293: 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" > )
course/format/sections/templates/local/content/section.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.) (ad><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"> <)
course/format/sections/templates/local/content/section/content.mustache
(#1) HTML Validation error, line 32: Stray end tag “div”. ( </div></div><div )
(#1) HTML Validation error, line 103: End tag for “body” seen, but there were unclosed elements. (esource]</body></html)
(#1) HTML Validation error, line 34: 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]