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

(27 errors, 34 warnings)

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

blocks/dixeo_coursegen/ajax/generate_course.php
(#1) No one-line description found in phpdocs for docblock of file generate_course.php
blocks/dixeo_coursegen/block_dixeo_coursegen.php
(#26) Missing docblock for class block_dixeo_coursegen
(#26) Opening brace must not be followed by a blank line
(#28) Missing docblock for function init
(#32) Missing docblock for function applicable_formats
(#55) Missing docblock for function specialization
(#59) Missing docblock for function instance_allow_multiple
(#63) Missing docblock for function get_content
(#118) Expected 1 blank line at end of file; 2 found
blocks/dixeo_coursegen/classes/course_generator.php
(#1) No one-line description found in phpdocs for docblock of file course_generator.php
(#150) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#151) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#152) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#153) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#154) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#155) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#155) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#222) Expected 1 space between the comma and "// Max execution time in seconds (10 minutes)". Found: 8 spaces
(#222) Inline comments must end in full-stops, exclamation marks, or question marks
(#223) Expected 1 space between the comma and "// Optional: connection timeout". Found: 2 spaces
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) Whitespace found at end of line
(#275) Missing docblock for function enrol_user
(#346) Missing docblock for function check_configuration
blocks/dixeo_coursegen/classes/privacy/provider.php
(#1) No one-line description found in phpdocs for docblock of file provider.php
(#29) Missing docblock for class provider
(#30) Missing docblock for function get_metadata
blocks/dixeo_coursegen/classes/webservice.php
(#32) Missing docblock for class webservice
blocks/dixeo_coursegen/lang/en/block_dixeo_coursegen.php
(#29) The string key "blocktitle" is not in the correct order, it should be before "pluginname"
(#33) Unexpected comment found. Auto-fixing will not work after this comment
(#35) The string key "privacy:metadata:email" is not in the correct order, it should be before "privacy:metadata:userid"
(#38) The string key "privacy:metadata:externalpurpose" is not in the correct order, it should be before "privacy:metadata:lastname"
(#40) Unexpected comment found. Auto-fixing will not work after this comment
(#41) The string key "heading" is not in the correct order, it should be before "privacy:metadata:externalpurpose"
(#43) The string key "attachfile" is not in the correct order, it should be before "prompt_placeholder"
(#47) The string key "removefile" is not in the correct order, it should be before "totalsize"
(#49) Unexpected comment found. Auto-fixing will not work after this comment
(#50) The string key "heading2" is not in the correct order, it should be before "removefile"
(#51) The string key "generating_course" is not in the correct order, it should be before "heading2"
(#52) The string key "course_generated" is not in the correct order, it should be before "generating_course"
(#54) The string key "generate_another" is not in the correct order, it should be before "view_course"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#64) The string key "invalidinput" is not in the correct order, it should be before "step5"
(#65) The string key "descriptionorfilesrequired" is not in the correct order, it should be before "invalidinput"
(#67) The string key "filetypeinvalid" is not in the correct order, it should be before "uploaderror"
(#68) The string key "filetoolarge" is not in the correct order, it should be before "filetypeinvalid"
(#71) Unexpected comment found. Auto-fixing will not work after this comment
(#72) The string key "settings" is not in the correct order, it should be before "totaltoolarge"
(#73) The string key "error_title" is not in the correct order, it should be before "settings"
(#74) The string key "error_generation_failed" is not in the correct order, it should be before "error_title"
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#80) The string key "default_platformurl" is not in the correct order, it should be before "platformurl_desc"
(#82) Unexpected comment found. Auto-fixing will not work after this comment
(#83) The string key "apikey" is not in the correct order, it should be before "default_platformurl"
(#87) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "categoryname" is not in the correct order, it should be before "default_apikey"
(#92) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "enterurlandkey" is not in the correct order, it should be before "register"
(#99) The string key "alreadyregistered" is not in the correct order, it should be before "needsregistration"
blocks/dixeo_coursegen/settings.php
(#1) No one-line description found in phpdocs for docblock of file settings.php

Javascript coding style problems

(0 errors, 20 warnings)

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

blocks/dixeo_coursegen/amd/src/dirty.js
(#1) Comments should not begin with a lowercase character. (capitalized-comments)
(#36) Function expected no return value. (consistent-return)
(#68) Expected to return a value at the end of arrow function. (consistent-return)
blocks/dixeo_coursegen/amd/src/generator.js
(#7) Multiple spaces found before '='. (no-multi-spaces)
(#8) Multiple spaces found before '='. (no-multi-spaces)
(#9) Multiple spaces found before '='. (no-multi-spaces)
(#10) Multiple spaces found before '='. (no-multi-spaces)
(#11) Multiple spaces found before '='. (no-multi-spaces)
(#12) Multiple spaces found before '='. (no-multi-spaces)
(#13) Multiple spaces found before '='. (no-multi-spaces)
(#14) Multiple spaces found before '='. (no-multi-spaces)
(#15) Multiple spaces found before '='. (no-multi-spaces)
(#16) Multiple spaces found before '='. (no-multi-spaces)
(#16) Multiple spaces found before '// 20 MB'. (no-multi-spaces)
(#17) Multiple spaces found before '='. (no-multi-spaces)
(#69) Avoid nesting promises. (promise/no-nesting)
(#77) Each then() should return a value or throw (promise/always-return)
(#229) Each then() should return a value or throw (promise/always-return)
(#281) Extra space after key 'maxTotalSize'. (key-spacing)
(#285) Each then() should return a value or throw (promise/always-return)

CSS problems

(9 errors, 4 warnings)

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

blocks/dixeo_coursegen/styles.css
(#217) Expected single space before "{" (block-opening-brace-space-before)
(#122) Expected "#FFFFFF" to be "#ffffff" (color-hex-case)
(#122) Expected "#FFFFFF" to be "#FFF" (color-hex-length)
(#72) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#218) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#86) Unexpected !important (declaration-no-important)
(#189) Unexpected !important (declaration-no-important)
(#197) Unexpected !important (declaration-no-important)
(#259) Unexpected !important (declaration-no-important)
(#263) Unexpected !important (declaration-no-important)
(#281) Unexpected !important (declaration-no-important)
(#184) Unexpected unit (length-zero-no-unit)
(#254) Unexpected unit (length-zero-no-unit)

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

(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, 11 warnings)

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

blocks/dixeo_coursegen/templates/course_generator.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 19: Bad value “25px” for attribute “width” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )
(#1) HTML Validation error, line 19: Bad value “25px” for attribute “height” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )
blocks/dixeo_coursegen/templates/filenames.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content
blocks/dixeo_coursegen/templates/generation.mustache
(#1) Example context missing (@template section not found.)
blocks/dixeo_coursegen/templates/prompt.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 17: Bad value “25px” for attribute “width” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )
(#1) HTML Validation error, line 17: Bad value “25px” for attribute “height” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )
blocks/dixeo_coursegen/templates/success_message.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 7: Bad value “25px” for attribute “width” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )
(#1) HTML Validation error, line 7: Bad value “25px” for attribute “height” on element “img”: Expected a digit but saw “p” instead. ( <img src="/blocks/dixeo_coursegen/pix/dixeo-white.svg" alt="Logo" width="25px" height="25px"> )

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]