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

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

blocks/coupon/classes/forms/coupon/course/page2.php
(#86) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
blocks/coupon/externallib.php
(#870) Method name "_request_coupon_codes_for_course" should not be prefixed with an underscore to indicate visibility
(#892) This comment is 50% valid code; is this commented out code?
(#919) Method name "_request_coupon_codes_for_cohorts" should not be prefixed with an underscore to indicate visibility
(#939) This comment is 50% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 8 warnings)

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

blocks/coupon/amd/src/findcohortcourses.js
(#77) 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/findcohorts.js
(#75) Expected catch,fail() or return (promise/catch-or-return)
(#77) Avoid calling back inside of a promise. (promise/no-callback-in-promise)
blocks/coupon/amd/src/findcourses.js
(#75) Expected catch,fail() or return (promise/catch-or-return)
(#77) Avoid calling back inside of a promise. (promise/no-callback-in-promise)
blocks/coupon/amd/src/findusers.js
(#75) Expected catch,fail() or return (promise/catch-or-return)
(#77) Avoid calling back inside of a promise. (promise/no-callback-in-promise)

CSS problems

(0 errors, 0 warnings)

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


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

(5 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]

blocks/coupon/amd/build/findcohortcourses.min.js
Uncommitted change detected.
blocks/coupon/amd/build/findcohorts.min.js
Uncommitted change detected.
blocks/coupon/amd/build/findcourses.min.js
Uncommitted change detected.
blocks/coupon/amd/build/findusers.min.js
Uncommitted change detected.
blocks/coupon/amd/build/preview.min.js
Uncommitted change detected.

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]