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

(0 errors, 0 warnings)

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


Javascript coding style problems

(2 errors, 12 warnings)

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

blocks/coupon/amd/src/findcourses.js
(#30) Expected JSDoc for 'options' but found 'contextId'. (valid-jsdoc)
(#68) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#77) 'el' is assigned a value but never used. (no-unused-vars)
(#78) Expected catch,fail() or return (promise/catch-or-return)
(#80) Avoid calling back inside of a promise. (promise/no-callback-in-promise)
blocks/coupon/amd/src/findusers.js
(#30) Expected JSDoc for 'options' but found 'contextId'. (valid-jsdoc)
(#68) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#77) 'el' is assigned a value but never used. (no-unused-vars)
(#78) Expected catch,fail() or return (promise/catch-or-return)
(#80) Avoid calling back inside of a promise. (promise/no-callback-in-promise)
blocks/coupon/amd/src/preview.js
(#26) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#35) Expected catch,fail() or return (promise/catch-or-return)
(#35) Missing space before opening brace. (space-before-blocks)
(#69) Comments should not begin with a lowercase character (capitalized-comments)

CSS problems

(2 errors, 0 warnings)

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

blocks/coupon/styles.css
(#42) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#64) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)

PHPDocs style problems

(2 errors, 0 warnings)

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

blocks/coupon/classes/forms/element/findcourses.php
(#95) Function findcourses::setValue is not documented
blocks/coupon/classes/forms/element/findusers.php
(#84) Function findusers::setValue is not documented

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

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

blocks/coupon/templates/cleanupconfirm.mustache
(#1) Example context missing (@template section not found.)
blocks/coupon/templates/requestdetails.mustache
(#1) Example context missing (@template section not found.)