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

(19 errors, 12 warnings)

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

course/format/buttons/renderer.php
(#39) Opening brace should be on the same line as the declaration for class format_buttons_renderer
(#123) global $PAGE cannot be used in renderers. Use $this->page.
(#216) global $PAGE cannot be used in renderers. Use $this->page.
(#223) global $PAGE cannot be used in renderers. Use $this->page.
(#224) Line exceeds 132 characters; contains 142 characters
(#248) global $PAGE cannot be used in renderers. Use $this->page.
(#264) Expected 1 space before ".="; 0 found
(#265) Expected 1 space before "=>"; 0 found
(#265) Expected 1 space after "=>"; 0 found
(#266) Expected 1 space before "=>"; 0 found
(#272) Expected 1 space before ".="; 0 found
(#275) Expected 1 space before ".="; 0 found
(#276) Expected 1 space before ".="; 0 found
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Inline comments must end in full-stops, exclamation marks, or question marks
(#290) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) Expected 1 space before ".="; 0 found
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#320) global $PAGE cannot be used in renderers. Use $this->page.
(#329) Inline comments must start with a capital letter, digit or 3-dots sequence
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#348) global $PAGE cannot be used in renderers. Use $this->page.
(#368) global $PAGE cannot be used in renderers. Use $this->page.
(#378) Logical operator "and" is prohibited; use "&&" instead
(#385) Logical operator "and" is prohibited; use "&&" instead
(#388) global $PAGE cannot be used in renderers. Use $this->page.
(#388) Logical operator "and" is prohibited; use "&&" instead
(#390) Logical operator "or" is prohibited; use "||" instead
(#419) global $PAGE cannot be used in renderers. Use $this->page.
(#420) global $PAGE cannot be used in renderers. Use $this->page.
(#422) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(1 errors, 15 warnings)

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

course/format/buttons/format.js
(#41) Identifier 'get_config' is not in camel case. (camelcase)
(#43) Identifier 'container_node' is not in camel case. (camelcase)
(#44) Identifier 'container_class' is not in camel case. (camelcase)
(#45) Identifier 'section_node' is not in camel case. (camelcase)
(#46) Identifier 'section_class' is not in camel case. (camelcase)
(#56) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#58) Identifier 'swap_sections' is not in camel case. (camelcase)
(#73) Expected JSDoc for 'sectionlist' but found 'response'. (valid-jsdoc)
(#74) Expected JSDoc for 'response' but found 'sectionfrom'. (valid-jsdoc)
(#75) Expected JSDoc for 'sectionfrom' but found 'sectionto'. (valid-jsdoc)
(#76) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#78) Identifier 'process_sections' is not in camel case. (camelcase)
course/format/buttons/module.js
(#25) Identifier 'format_buttons' is not in camel case. (camelcase)
(#35) Unexpected space before function parentheses. (space-before-function-paren)
(#53) Unexpected space before function parentheses. (space-before-function-paren)
(#56) Missing semicolon. (semi)

CSS problems

(2 errors, 0 warnings)

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

course/format/buttons/styles.css
(#64) Unexpected !important (declaration-no-important)
(#154) 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, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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