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

(3 errors, 1 warnings)

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

course/format/designer/classes/external/external.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
course/format/designer/classes/output/cm_completion.php
(#179) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $userid.
course/format/designer/classes/output/courseformat/content/cm/title.php
(#45) Expected 0 spaces after "get_title_displayvalue"; 1 found
course/format/designer/lib.php
(#1788) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(0 errors, 24 warnings)

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

course/format/designer/amd/src/designer_section.js
(#152) Multiple spaces found before '"_self"'. (no-multi-spaces)
(#230) Operator '+' must be spaced. (space-infix-ops)
(#239) Unexpected space before function parentheses. (space-before-function-paren)
(#246) Extra space after key 'cmid'. (key-spacing)
(#252) Expected catch,fail,always() or return (promise/catch-or-return)
(#254) Each then() should return a value or throw (promise/always-return)
(#255) 'uniqueid' declared on line 257 column 25 is used outside of binding context. (block-scoped-var)
(#255) Multiple spaces found before '$'. (no-multi-spaces)
(#257) 'uniqueid' is already defined. (no-redeclare)
(#257) 'uniqueid' declared on line 255 column 25 is used outside of binding context. (block-scoped-var)
(#257) Multiple spaces found before '$'. (no-multi-spaces)
(#259) 'uniqueid' declared on line 255 column 25 is used outside of binding context. (block-scoped-var)
(#259) 'uniqueid' declared on line 257 column 25 is used outside of binding context. (block-scoped-var)
(#260) Avoid nesting promises. (promise/no-nesting)
(#310) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#310) Each then() should return a value or throw (promise/always-return)
(#315) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
course/format/designer/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

(2 errors, 0 warnings)

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

course/format/designer/styles.css
(#2555) Unexpected !important (declaration-no-important)
(#2677) Unexpected !important (declaration-no-important)

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

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

course/format/designer/templates/cm/module_layout_cards.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.) (d><body><li class=" card" style="" id="" data-for="cmitem" data-id=""> )
course/format/designer/templates/cm/module_layout_default.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.) (d><body><li class=" " style="" id="" data-for="cmitem" data-id=""><di)
course/format/designer/templates/cm/module_layout_list.mustache
(#1) HTML Validation error, line 7: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li class=" position-relative" style="" id="" data-for="cmitem" data-id=""> )
course/format/designer/templates/courseformat/content/section.mustache
(#1) ESLint warning [space-in-parens]: There should be no space before this paren. ( component.init('would-be-a-uniqid-course-format', {}, );

Gherkin .feature problems

(0 errors, 0 warnings)

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