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

(7 errors, 0 warnings)

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

local/multiple_enrollments/externallib.php
(#42) Missing docblock for class assign_courses
(#131) Missing docblock for class get_updated_courses
(#218) Missing docblock for class manage_courses
local/multiple_enrollments/forms/menroll_form.php
(#32) Missing docblock for class menroll_form
(#33) Missing docblock for function definition
(#226) Missing docblock for function add_javascript
(#252) Missing docblock for function validation

Javascript coding style problems

(9 errors, 33 warnings)

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

local/multiple_enrollments/amd/src/init.js
(#2) Identifier 'menrol_init' is not in camel case. (camelcase)
(#3) Trailing spaces not allowed. (no-trailing-spaces)
(#33) Trailing spaces not allowed. (no-trailing-spaces)
(#34) Trailing spaces not allowed. (no-trailing-spaces)
(#43) 'event' is defined but never used. (no-unused-vars)
(#80) Trailing spaces not allowed. (no-trailing-spaces)
(#81) Trailing spaces not allowed. (no-trailing-spaces)
(#85) Expected catch,fail,always() or return (promise/catch-or-return)
(#88) Each then() should return a value or throw (promise/always-return)
(#104) Unexpected console statement. (no-console)
(#105) Expected catch,fail,always() or return (promise/catch-or-return)
(#108) Each then() should return a value or throw (promise/always-return)
(#132) Each then() should return a value or throw (promise/always-return)
(#133) Expected catch,fail,always() or return (promise/catch-or-return)
(#133) Avoid nesting promises. (promise/no-nesting)
(#136) Each then() should return a value or throw (promise/always-return)
(#143) Expected catch,fail,always() or return (promise/catch-or-return)
(#143) Avoid nesting promises. (promise/no-nesting)
(#146) Each then() should return a value or throw (promise/always-return)
(#149) Unexpected console statement. (no-console)
(#156) There should be no space after '{'. (@babel/object-curly-spacing)
(#156) There should be no space before '}'. (@babel/object-curly-spacing)
(#158) Each then() should return a value or throw (promise/always-return)
(#165) There should be no space after '{'. (@babel/object-curly-spacing)
(#165) There should be no space before '}'. (@babel/object-curly-spacing)
(#169) Expected catch,fail,always() or return (promise/catch-or-return)
(#169) Avoid nesting promises. (promise/no-nesting)
(#169) Each then() should return a value or throw (promise/always-return)
(#171) There should be no space after '{'. (@babel/object-curly-spacing)
(#171) There should be no space before '}'. (@babel/object-curly-spacing)
(#182) There should be no space after '{'. (@babel/object-curly-spacing)
(#182) There should be no space before '}'. (@babel/object-curly-spacing)
(#186) Expected catch,fail,always() or return (promise/catch-or-return)
(#186) Avoid nesting promises. (promise/no-nesting)
(#186) Each then() should return a value or throw (promise/always-return)
(#188) There should be no space after '{'. (@babel/object-curly-spacing)
(#188) There should be no space before '}'. (@babel/object-curly-spacing)
(#194) Expected catch,fail,always() or return (promise/catch-or-return)
(#194) Avoid nesting promises. (promise/no-nesting)
(#197) Each then() should return a value or throw (promise/always-return)
(#200) Unexpected console statement. (no-console)
(#205) Identifier 'menrol_init' is not in camel case. (camelcase)

CSS problems

(46 errors, 4 warnings)

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

local/multiple_enrollments/styles.css
(#18) Invalid value for "float" (csstree/validator)
(#51) Invalid value for "font-size" (csstree/validator)
(#21) Expected "#19722C" to be "#19722c" (color-hex-case)
(#52) Expected "#FF0000" to be "#ff0000" (color-hex-case)
(#52) Expected "#FF0000" to be "#F00" (color-hex-length)
(#96) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#45) Unexpected unit (length-zero-no-unit)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#18) Expected indentation of 4 spaces (indentation)
(#19) Expected indentation of 4 spaces (indentation)
(#20) Expected indentation of 4 spaces (indentation)
(#21) Expected indentation of 4 spaces (indentation)
(#25) Expected indentation of 4 spaces (indentation)
(#26) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#34) Expected indentation of 4 spaces (indentation)
(#35) Expected indentation of 4 spaces (indentation)
(#39) Expected indentation of 4 spaces (indentation)
(#43) Expected indentation of 4 spaces (indentation)
(#44) Expected indentation of 4 spaces (indentation)
(#45) Expected indentation of 4 spaces (indentation)
(#49) Expected indentation of 4 spaces (indentation)
(#50) Expected indentation of 4 spaces (indentation)
(#51) Expected indentation of 4 spaces (indentation)
(#52) Expected indentation of 4 spaces (indentation)
(#53) Expected indentation of 4 spaces (indentation)
(#57) Expected indentation of 4 spaces (indentation)
(#58) Expected indentation of 4 spaces (indentation)
(#59) Expected indentation of 4 spaces (indentation)
(#60) Expected indentation of 4 spaces (indentation)
(#64) Expected indentation of 4 spaces (indentation)
(#65) Expected indentation of 4 spaces (indentation)
(#66) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)
(#71) Expected indentation of 4 spaces (indentation)
(#75) Expected indentation of 4 spaces (indentation)
(#76) Expected indentation of 4 spaces (indentation)
(#80) Expected indentation of 4 spaces (indentation)
(#81) Expected indentation of 4 spaces (indentation)
(#85) Expected indentation of 4 spaces (indentation)
(#86) Expected indentation of 4 spaces (indentation)
(#90) Expected indentation of 4 spaces (indentation)
(#91) Expected indentation of 4 spaces (indentation)
(#95) Expected indentation of 4 spaces (indentation)
(#96) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(3 errors, 0 warnings)

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

local/multiple_enrollments/externallib.php
(#60) Phpdocs for function assign_courses::execute has incomplete parameters list
(#141) Phpdocs for function get_updated_courses::execute has incomplete parameters list
(#237) Phpdocs for function manage_courses::execute has incomplete parameters list

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 "eslint:amd" 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]