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

(4 errors, 1 warnings)

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

blocks/filtered_course_list/block_filtered_course_list.php
(#105) global $PAGE cannot be used in block classes. Use $this->page.
(#148) global $PAGE cannot be used in block classes. Use $this->page.
(#205) global $PAGE cannot be used in block classes. Use $this->page.
(#206) global $PAGE cannot be used in block classes. Use $this->page.
blocks/filtered_course_list/classes/regex_filter.php
(#82) The use of backticks in strings is not recommended

Javascript coding style problems

(1 errors, 0 warnings)

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

blocks/filtered_course_list/Gruntfile.js
(#3) 'module' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(2 errors, 0 warnings)

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

blocks/filtered_course_list/tests/behat/behat_block_filtered_course_list.php
(#45) Invalid phpdocs tag @BeforeSuite used
(#59) Invalid phpdocs tag @AfterSuite used

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 "gherkinlint" 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, 3 warnings)

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

blocks/filtered_course_list/templates/content.mustache
(#1) ESLint warning [object-curly-spacing]: There should be no space before '}'. ( ), Line: 3 Column: 63
blocks/filtered_course_list/templates/list_item.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class='block-fcl__list__item block-fcl__list__item--course'> <)
blocks/filtered_course_list/templates/rubric.mustache
(#1) HTML Validation error, line 2: An element with “role=tab” must be contained in, or owned by, an element with “role=tablist”. (ad><body><div id="fcl_17_tab1" class="block-fcl__rubric block-fcl__rubric--expanded tab1" role="tab" aria-controls="fcl_17_tabpanel1" aria-expanded="true" aria-selected="false" data-hash="bcdefg"> C)

Gherkin .feature problems

(26 errors, 0 warnings)

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

blocks/filtered_course_list/tests/behat/external.feature
(#54) New line at EOF(end of file) is required
blocks/filtered_course_list/tests/behat/sort.feature
(#32) Missing Scenario name
(#51) Wrong indentation for "Examples", expected indentation level of 4, but got 2
(#52) Wrong indentation for "example", expected indentation level of 6, but got 4
(#53) Wrong indentation for "example", expected indentation level of 6, but got 4
(#54) Wrong indentation for "example", expected indentation level of 6, but got 4
(#55) Wrong indentation for "example", expected indentation level of 6, but got 4
(#56) Wrong indentation for "example", expected indentation level of 6, but got 4
(#57) Wrong indentation for "example", expected indentation level of 6, but got 4
(#58) Wrong indentation for "example", expected indentation level of 6, but got 4
(#59) Wrong indentation for "example", expected indentation level of 6, but got 4
(#61) Missing Scenario name
(#84) Wrong indentation for "Examples", expected indentation level of 4, but got 2
(#85) Wrong indentation for "example", expected indentation level of 6, but got 4
(#86) Wrong indentation for "example", expected indentation level of 6, but got 4
(#87) Wrong indentation for "example", expected indentation level of 6, but got 4
(#88) Wrong indentation for "example", expected indentation level of 6, but got 4
blocks/filtered_course_list/tests/behat/truncate.feature
(#33) Missing Scenario name
(#43) Wrong indentation for "Examples", expected indentation level of 4, but got 2
(#44) Wrong indentation for "example", expected indentation level of 6, but got 4
(#45) Wrong indentation for "example", expected indentation level of 6, but got 4
(#46) Wrong indentation for "example", expected indentation level of 6, but got 4
(#47) Wrong indentation for "example", expected indentation level of 6, but got 4
(#48) Wrong indentation for "example", expected indentation level of 6, but got 4
(#49) Wrong indentation for "example", expected indentation level of 6, but got 4
(#50) Wrong indentation for "example", expected indentation level of 6, but got 4