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

(0 errors, 0 warnings)

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


Javascript coding style problems

(0 errors, 67 warnings)

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

mod/contentdesigner/amd/src/editor.js
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#57) Unexpected space before function parentheses. (space-before-function-paren)
(#201) Unexpected space before function parentheses. (space-before-function-paren)
(#220) Unexpected space before function parentheses. (space-before-function-paren)
(#222) Unexpected space before function parentheses. (space-before-function-paren)
(#227) There should be no space after '{'. (@babel/object-curly-spacing)
(#227) There should be no space before '}'. (@babel/object-curly-spacing)
(#228) There should be no space after '{'. (@babel/object-curly-spacing)
(#228) There should be no space before '}'. (@babel/object-curly-spacing)
(#229) There should be no space after '{'. (@babel/object-curly-spacing)
(#229) There should be no space before '}'. (@babel/object-curly-spacing)
(#230) There should be no space after '{'. (@babel/object-curly-spacing)
(#230) There should be no space before '}'. (@babel/object-curly-spacing)
(#231) Unexpected space before function parentheses. (space-before-function-paren)
(#246) There should be no space after '{'. (@babel/object-curly-spacing)
(#246) There should be no space before '}'. (@babel/object-curly-spacing)
(#249) 'promise' declared on line 256 column 21 is used outside of binding context. (block-scoped-var)
(#256) 'promise' is already defined. (no-redeclare)
(#256) 'promise' declared on line 249 column 21 is used outside of binding context. (block-scoped-var)
(#264) 'promise' declared on line 249 column 21 is used outside of binding context. (block-scoped-var)
(#264) 'promise' declared on line 256 column 21 is used outside of binding context. (block-scoped-var)
(#264) Expected catch,fail,always() or return (promise/catch-or-return)
(#265) Unexpected space before function parentheses. (space-before-function-paren)
(#267) Unexpected space before function parentheses. (space-before-function-paren)
(#289) Unexpected space before function parentheses. (space-before-function-paren)
mod/contentdesigner/amd/src/elements.js
(#31) Unexpected space before function parentheses. (space-before-function-paren)
(#86) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#152) Unexpected space before function parentheses. (space-before-function-paren)
(#159) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#180) Unexpected space before function parentheses. (space-before-function-paren)
(#184) There should be no space after '{'. (@babel/object-curly-spacing)
(#184) There should be no space before '}'. (@babel/object-curly-spacing)
(#199) Unexpected space before function parentheses. (space-before-function-paren)
(#210) Unexpected space before function parentheses. (space-before-function-paren)
(#221) There should be no space after '{'. (@babel/object-curly-spacing)
(#221) There should be no space before '}'. (@babel/object-curly-spacing)
(#222) There should be no space after '{'. (@babel/object-curly-spacing)
(#222) There should be no space before '}'. (@babel/object-curly-spacing)
(#226) There should be no space after '{'. (@babel/object-curly-spacing)
(#226) There should be no space before '}'. (@babel/object-curly-spacing)
(#227) There should be no space after '{'. (@babel/object-curly-spacing)
(#227) There should be no space before '}'. (@babel/object-curly-spacing)
(#231) There should be no space after '{'. (@babel/object-curly-spacing)
(#231) There should be no space before '}'. (@babel/object-curly-spacing)
(#232) There should be no space after '{'. (@babel/object-curly-spacing)
(#232) There should be no space before '}'. (@babel/object-curly-spacing)
(#264) Unexpected space before function parentheses. (space-before-function-paren)
(#266) There should be no space after '{'. (@babel/object-curly-spacing)
(#266) There should be no space before '}'. (@babel/object-curly-spacing)
(#282) Unexpected space before function parentheses. (space-before-function-paren)
(#312) Unexpected space before function parentheses. (space-before-function-paren)
(#317) Unexpected space before function parentheses. (space-before-function-paren)
(#323) Unexpected space before function parentheses. (space-before-function-paren)
(#329) Unexpected space before function parentheses. (space-before-function-paren)
(#330) Unexpected space before function parentheses. (space-before-function-paren)
(#348) Unexpected space before function parentheses. (space-before-function-paren)
(#370) Function expected no return value. (consistent-return)
mod/contentdesigner/cdelement/chapter/amd/src/chapter.js
(#30) Unexpected space before function parentheses. (space-before-function-paren)
(#39) Unexpected space before function parentheses. (space-before-function-paren)
(#86) Unexpected space before function parentheses. (space-before-function-paren)
(#112) There should be no space after '{'. (@babel/object-curly-spacing)
(#112) There should be no space before '}'. (@babel/object-curly-spacing)
(#120) Unexpected space before function parentheses. (space-before-function-paren)
mod/contentdesigner/cdelement/h5p/amd/src/h5p.js
(#30) Unexpected space before function parentheses. (space-before-function-paren)
(#63) Function has a complexity of 28. Maximum allowed is 20. (complexity)
(#63) Unexpected space before function parentheses. (space-before-function-paren)
(#188) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(8 errors, 0 warnings)

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

mod/contentdesigner/style/animate.css
(#2034) Unexpected !important (declaration-no-important)
(#2035) Unexpected !important (declaration-no-important)
(#2107) Unexpected !important (declaration-no-important)
(#2108) Unexpected !important (declaration-no-important)
(#2154) Unexpected !important (declaration-no-important)
(#2155) Unexpected !important (declaration-no-important)
(#2197) Unexpected !important (declaration-no-important)
(#2198) 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

(0 errors, 0 warnings)

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


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]