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

(23 errors, 7 warnings)

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

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)
blocks/coupon/Gruntfile.js
(#1) 'module' is not defined. (no-undef)
(#7) '__dirname' is not defined. (no-undef)
(#8) 'process' is not defined. (no-undef)
(#20) Unexpected console statement. (no-console)
(#21) Unexpected console statement. (no-console)
(#24) 'process' is not defined. (no-undef)
(#26) 'svgcolour' is assigned a value but never used. (no-unused-vars)
(#28) Unexpected tab character. (no-tabs)
(#30) Unexpected tab character. (no-tabs)
(#31) Unexpected tab character. (no-tabs)
(#32) Unexpected tab character. (no-tabs)
(#33) Unexpected tab character. (no-tabs)
(#34) Unexpected tab character. (no-tabs)
(#35) Unexpected tab character. (no-tabs)
(#36) Unexpected tab character. (no-tabs)
(#53) Identifier 'dynamic_mappings' is not in camel case. (camelcase)
(#59) Unexpected space before function parentheses. (space-before-function-paren)
(#93) Unexpected tab character. (no-tabs)
(#94) Unexpected tab character. (no-tabs)
(#95) Unexpected tab character. (no-tabs)
(#96) Unexpected tab character. (no-tabs)
(#97) Unexpected console statement. (no-console)
(#98) Unexpected console statement. (no-console)
(#99) Unexpected console statement. (no-console)
(#100) Unexpected console statement. (no-console)
(#108) Comments should not begin with a lowercase character (capitalized-comments)

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

(3 errors, 0 warnings)

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

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]