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

(16 errors, 17 warnings)

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

blocks/taggedcoursesearch/block_taggedcoursesearch.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#53) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
blocks/taggedcoursesearch/classes/helper.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#86) Short array syntax must be used to define arrays
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Line exceeds 132 characters; contains 150 characters
blocks/taggedcoursesearch/classes/output/courses_view.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#78) There should be a comma after the last array item in a multi-line array.
(#144) There should be a comma after the last array item in a multi-line array.
(#163) There should be a comma after the last array item in a multi-line array.
blocks/taggedcoursesearch/classes/output/main.php
(#78) There should be a comma after the last array item in a multi-line array.
blocks/taggedcoursesearch/classes/output/renderer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
blocks/taggedcoursesearch/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) There must not be a space before the colon in a return type declaration
(#43) Line exceeds 132 characters; contains 136 characters
(#56) Line exceeds 132 characters; contains 142 characters
blocks/taggedcoursesearch/db/access.php
(#32) There should be a comma after the last array item in a multi-line array.
(#35) There should be a comma after the last array item in a multi-line array.
(#44) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
blocks/taggedcoursesearch/db/caches.php
(#29) There should be a comma after the last array item in a multi-line array.
(#30) There should be a comma after the last array item in a multi-line array.
(#31) File must end with a newline character
blocks/taggedcoursesearch/lang/en/block_taggedcoursesearch.php
(#34) The string key "tags" is not in the correct order, it should be before "user_preference:error:toolong"
(#35) The string key "taggedcoursesearch:addinstance" is not in the correct order, it should be before "tags"
(#37) The string key "privacy:metadata:filter_criteria" is not in the correct order, it should be before "taggedcoursesearch:myaddinstance"
blocks/taggedcoursesearch/lib.php
(#20) Incorrect @package tag for file lib.php. Expected block_taggedcoursesearch, found block_myoverview.
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) There should be a comma after the last array item in a multi-line array.
(#38) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(2 errors, 0 warnings)

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

blocks/taggedcoursesearch/amd/src/paging_bar.js
(#20) @package should be empty. (jsdoc/empty-tags)
blocks/taggedcoursesearch/amd/src/paging_content.js
(#20) @package should be empty. (jsdoc/empty-tags)

CSS problems

(1 errors, 0 warnings)

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

blocks/taggedcoursesearch/styles.css
(#388) Unknown word (CssSyntaxError)

PHPDocs style problems

(0 errors, 0 warnings)

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


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

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

blocks/taggedcoursesearch/templates/course-paging-content-item.mustache
(#1) HTML Validation error, line 41: Duplicate ID “course-info-container-”. ( <div class="card-body course-info-container" id="course-info-container-"> )
(#1) HTML Validation info, line 11: The first occurrence of ID “course-info-container-” was here. ( <div class="card-body course-info-container" id="course-info-container-"> )
blocks/taggedcoursesearch/templates/course-paging-content.mustache
(#1) HTML Validation error, line 42: Duplicate ID “course-info-container-”. ( <div class="card-body course-info-container" id="course-info-container-"> )
(#1) HTML Validation info, line 12: The first occurrence of ID “course-info-container-” was here. ( <div class="card-body course-info-container" id="course-info-container-"> )
blocks/taggedcoursesearch/templates/courses-view.mustache
(#1) HTML Validation error, line 7: Bad value “” for attribute “src” on element “img”: Must be non-empty. (> <img class="empty-placeholder-image-lg" src="" alt="((+nocourses%2C+block_taggedcoursesearch+))" role="presentation"> )
(#1) HTML Validation error, line 7: Bad value “presentation” for attribute “role” on element “img” (> <img class="empty-placeholder-image-lg" src="" alt="((+nocourses%2C+block_taggedcoursesearch+))" role="presentation"> )
blocks/taggedcoursesearch/templates/paging-bar-item.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.) (ad><body><li class="page-item active " data-region="page-item" data-page-number="1"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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