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

(66 errors, 1 warnings)

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

local/geniai/classes/events/event_observers.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/external/chat.php
(#75) Incorrect spacing between argument "$lang" and equals sign; expected 1 but found 0
(#75) Incorrect spacing between default value and equals sign for argument "$lang"; expected 1 but found 0
(#76) Expected 0 spaces before closing parenthesis; 1 found
local/geniai/classes/h5p/itens.php
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#46) Only one argument is allowed per line in a multi-line function call
(#46) Closing parenthesis of a multi-line function call must be on a line by itself
local/geniai/classes/h5p/page_create.php
(#38) Opening brace must not be followed by a blank line
(#151) Blank line found at end of control structure
(#237) Opening parenthesis of a multi-line function call must be the last content on the line
(#238) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#238) Only one argument is allowed per line in a multi-line function call
(#238) Closing parenthesis of a multi-line function call must be on a line by itself
(#245) Opening parenthesis of a multi-line function call must be the last content on the line
(#246) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#246) Closing parenthesis of a multi-line function call must be on a line by itself
(#251) Blank line found at end of control structure
local/geniai/classes/h5p/page_header.php
(#41) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/Accordion.php
(#35) Opening brace must not be followed by a blank line
(#48) Space after opening parenthesis of function call prohibited
(#48) Expected 0 spaces before closing parenthesis; 1 found
(#49) Space after opening parenthesis of function call prohibited
(#49) Expected 0 spaces before closing parenthesis; 1 found
(#50) Space after opening parenthesis of function call prohibited
(#50) Expected 0 spaces before closing parenthesis; 1 found
(#51) Space after opening parenthesis of function call prohibited
(#51) Expected 0 spaces before closing parenthesis; 1 found
local/geniai/classes/h5p/type/Crossword.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/Dialogcards.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/DragText.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/FindTheWords.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/InteractiveBook.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/InteractiveVideo.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/h5p/type/QuestionSet.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/report/view.php
(#30) Opening brace must not be followed by a blank line
local/geniai/classes/vo/local_geniai_h5p.php
(#32) Opening brace must not be followed by a blank line
local/geniai/classes/vo/local_geniai_h5ppages.php
(#32) Opening brace must not be followed by a blank line
local/geniai/download.php
(#29) Blank line found at start of control structure
(#39) The $escape parameter must be passed when calling fputcsv() as its default value will change in a future PHP version.
(#50) Blank line found at end of control structure
local/geniai/h5p/edit.php
(#82) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#83) Closing parenthesis of a multi-line function call must be on a line by itself
local/geniai/settings.php
(#27) Blank line found at start of control structure
(#43) Only one argument is allowed per line in a multi-line function call
(#56) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#56) Closing parenthesis of a multi-line function call must be on a line by itself
(#60) Opening parenthesis of a multi-line function call must be the last content on the line
(#63) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#63) Only one argument is allowed per line in a multi-line function call
(#63) Only one argument is allowed per line in a multi-line function call
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#72) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#72) Closing parenthesis of a multi-line function call must be on a line by itself
(#79) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
(#93) Only one argument is allowed per line in a multi-line function call
(#136) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#136) Only one argument is allowed per line in a multi-line function call
(#136) Closing parenthesis of a multi-line function call must be on a line by itself
(#186) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Closing parenthesis of a multi-line function call must be on a line by itself
(#193) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#193) Only one argument is allowed per line in a multi-line function call
(#193) Closing parenthesis of a multi-line function call must be on a line by itself

Javascript coding style problems

(40 errors, 38 warnings)

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

local/geniai/amd/src/chat.js
(#4) 'release' is defined but never used. (no-unused-vars)
(#59) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#111) Unexpected console statement. (no-console)
(#128) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#167) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#186) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#187) Identifier 'message_01' is not in camel case. (camelcase)
(#188) Identifier 'message_01' is not in camel case. (camelcase)
(#190) Identifier 'message_02' is not in camel case. (camelcase)
(#191) Identifier 'message_02' is not in camel case. (camelcase)
(#201) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#232) Identifier 'record_start' is not in camel case. (camelcase)
(#233) Comments should not begin with a lowercase character. (capitalized-comments)
(#234) Comments should not begin with a lowercase character. (capitalized-comments)
(#239) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#243) Unexpected alert. (no-alert)
(#252) Comments should not begin with a lowercase character. (capitalized-comments)
(#256) Each then() should return a value or throw (promise/always-return)
(#263) Unexpected alert. (no-alert)
(#268) Comments should not begin with a lowercase character. (capitalized-comments)
(#279) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#283) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#299) Identifier 'reset_recording' is not in camel case. (camelcase)
(#309) Identifier 'load_audioplayer' is not in camel case. (camelcase)
(#311) Multiple spaces found before '='. (no-multi-spaces)
(#312) Multiple spaces found before '='. (no-multi-spaces)
(#313) Multiple spaces found before '='. (no-multi-spaces)
(#314) 'eEnd' is assigned a value but never used. (no-unused-vars)
(#314) Multiple spaces found before '='. (no-multi-spaces)
(#315) Multiple spaces found before '='. (no-multi-spaces)
(#317) Multiple spaces found before '='. (no-multi-spaces)
(#320) This line has a length of 248. Maximum allowed is 132. (max-len)
(#320) Do not nest ternary expressions. (no-nested-ternary)
(#322) Multiple spaces found before '='. (no-multi-spaces)
(#324) This line has a length of 156. Maximum allowed is 132. (max-len)
(#328) 'params' is already defined. (no-redeclare)
(#328) Multiple spaces found before '='. (no-multi-spaces)
(#334) Multiple spaces found before '='. (no-multi-spaces)
(#353) Expected { after 'for-in'. (curly)
(#355) Expected to return a value at the end of function. (consistent-return)
(#357) Expected { after 'if' condition. (curly)
(#368) Expected to return a value at the end of function. (consistent-return)
(#380) This line has a length of 417. Maximum allowed is 132. (max-len)
(#390) This line has a length of 554. Maximum allowed is 132. (max-len)
(#392) Multiple spaces found before '='. (no-multi-spaces)
(#393) Multiple spaces found before '='. (no-multi-spaces)
(#394) Multiple spaces found before '='. (no-multi-spaces)
(#395) Multiple spaces found before '='. (no-multi-spaces)
(#396) Multiple spaces found before '='. (no-multi-spaces)
(#397) Multiple spaces found before '='. (no-multi-spaces)
(#398) Multiple spaces found before '='. (no-multi-spaces)
(#399) Multiple spaces found before '='. (no-multi-spaces)
(#401) 'theRealEvent' is not defined. (no-undef)
(#402) This line has a length of 150. Maximum allowed is 132. (max-len)
(#402) 'theRealEvent' is not defined. (no-undef)
(#404) Multiple spaces found before '='. (no-multi-spaces)
(#405) 'theRealEvent' is not defined. (no-undef)
(#406) This line has a length of 137. Maximum allowed is 132. (max-len)
(#406) 'theRealEvent' is not defined. (no-undef)
(#408) Multiple spaces found before '='. (no-multi-spaces)
(#412) Expected { after 'if' condition. (curly)
(#417) Multiple spaces found before '='. (no-multi-spaces)
(#418) Expected { after 'if' condition. (curly)
(#419) Expected { after 'else'. (curly)
(#437) Expected { after 'if' condition. (curly)
(#438) Expected { after 'if' condition. (curly)
(#476) Expected { after 'else'. (curly)
(#478) Expected { after 'if' condition. (curly)
(#484) Expected an assignment or function call and instead saw an expression. (@babel/no-unused-expressions)
(#488) Expected an assignment or function call and instead saw an expression. (@babel/no-unused-expressions)
local/geniai/amd/src/h5p-index.js
(#6) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#8) Unexpected console statement. (no-console)
(#23) This line has a length of 138. Maximum allowed is 132. (max-len)
(#26) Unexpected console statement. (no-console)
(#44) Missing semicolon. (@babel/semi)
(#47) Missing semicolon. (@babel/semi)
local/geniai/amd/src/h5p.js
(#1) 'ajax' is defined but never used. (no-unused-vars)
(#1) 'notification' is defined but never used. (no-unused-vars)

CSS problems

(97 errors, 9 warnings)

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

local/geniai/styles.css
(#154) Invalid value for "background" (csstree/validator)
(#1040) Expected "#cccccc" to be "#ccc" (color-hex-length)
(#624) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#13) Unexpected !important (declaration-no-important)
(#55) Unexpected !important (declaration-no-important)
(#56) Unexpected !important (declaration-no-important)
(#181) Unexpected !important (declaration-no-important)
(#268) Unexpected !important (declaration-no-important)
(#314) Unexpected !important (declaration-no-important)
(#315) Unexpected !important (declaration-no-important)
(#334) Unexpected !important (declaration-no-important)
(#364) Unexpected !important (declaration-no-important)
(#368) Unexpected !important (declaration-no-important)
(#465) Unexpected !important (declaration-no-important)
(#727) Unexpected !important (declaration-no-important)
(#768) Unexpected !important (declaration-no-important)
(#858) Unexpected !important (declaration-no-important)
(#917) Unexpected !important (declaration-no-important)
(#927) Unexpected !important (declaration-no-important)
(#946) Unexpected !important (declaration-no-important)
(#1061) Unexpected !important (declaration-no-important)
(#385) Unexpected URL scheme "data:" (function-url-scheme-disallowed-list)
(#106) Expected line length to be no more than 132 characters (max-line-length)
(#114) Expected line length to be no more than 132 characters (max-line-length)
(#118) Expected line length to be no more than 132 characters (max-line-length)
(#180) Expected line length to be no more than 132 characters (max-line-length)
(#184) Expected line length to be no more than 132 characters (max-line-length)
(#537) Expected line length to be no more than 132 characters (max-line-length)
(#339) Unexpected unknown animation name "nld-super-pop-in" (no-unknown-animations)
(#470) Unexpected unknown animation name "nld-super-pop-in" (no-unknown-animations)
(#106) Expected newline after "," (selector-list-comma-newline-after)
(#114) Expected newline after "," (selector-list-comma-newline-after)
(#118) Expected newline after "," (selector-list-comma-newline-after)
(#180) Expected newline after "," (selector-list-comma-newline-after)
(#180) Expected newline after "," (selector-list-comma-newline-after)
(#184) Expected newline after "," (selector-list-comma-newline-after)
(#537) Expected newline after "," (selector-list-comma-newline-after)
(#643) Expected newline after "," (selector-list-comma-newline-after)
(#154) Unexpected unknown unit "e" (unit-no-unknown)
local/geniai/styles.scss
(#606) Expected empty line before at-rule (at-rule-empty-line-before)
(#444) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#452) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#455) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#9) Unexpected !important (declaration-no-important)
(#46) Unexpected !important (declaration-no-important)
(#47) Unexpected !important (declaration-no-important)
(#154) Unexpected !important (declaration-no-important)
(#238) Unexpected !important (declaration-no-important)
(#282) Unexpected !important (declaration-no-important)
(#283) Unexpected !important (declaration-no-important)
(#299) Unexpected !important (declaration-no-important)
(#329) Unexpected !important (declaration-no-important)
(#333) Unexpected !important (declaration-no-important)
(#429) Unexpected !important (declaration-no-important)
(#461) Unexpected !important (declaration-no-important)
(#498) Unexpected !important (declaration-no-important)
(#561) Unexpected !important (declaration-no-important)
(#349) Unexpected URL scheme "data:" (function-url-scheme-disallowed-list)
(#404) Unexpected whitespace at end of line (no-eol-whitespace)
(#438) Unexpected whitespace at end of line (no-eol-whitespace)
(#601) Unexpected whitespace at end of line (no-eol-whitespace)
(#461) Unexpected extra semicolon (no-extra-semicolons)
(#304) Unexpected unknown animation name "nld-super-pop-in" (no-unknown-animations)
(#434) Unexpected unknown animation name "nld-super-pop-in" (no-unknown-animations)
(#88) Expected newline after "," (selector-list-comma-newline-after)
(#152) Expected newline after "," (selector-list-comma-newline-after)
(#152) Expected newline after "," (selector-list-comma-newline-after)
(#157) Expected newline after "," (selector-list-comma-newline-after)
local/geniai/styles/_audioplayer.scss
(#150) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#75) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#23) Unexpected whitespace at end of line (no-eol-whitespace)
(#28) Unexpected whitespace at end of line (no-eol-whitespace)
(#32) Unexpected whitespace at end of line (no-eol-whitespace)
(#37) Unexpected whitespace at end of line (no-eol-whitespace)
(#41) Unexpected whitespace at end of line (no-eol-whitespace)
(#53) Unexpected whitespace at end of line (no-eol-whitespace)
(#61) Unexpected whitespace at end of line (no-eol-whitespace)
(#69) Unexpected whitespace at end of line (no-eol-whitespace)
(#77) Unexpected whitespace at end of line (no-eol-whitespace)
(#81) Unexpected whitespace at end of line (no-eol-whitespace)
(#86) Unexpected whitespace at end of line (no-eol-whitespace)
(#96) Unexpected whitespace at end of line (no-eol-whitespace)
(#105) Unexpected whitespace at end of line (no-eol-whitespace)
(#116) Unexpected whitespace at end of line (no-eol-whitespace)
(#123) Unexpected whitespace at end of line (no-eol-whitespace)
(#137) Unexpected whitespace at end of line (no-eol-whitespace)
(#141) Unexpected whitespace at end of line (no-eol-whitespace)
(#144) Unexpected whitespace at end of line (no-eol-whitespace)
(#146) Unexpected whitespace at end of line (no-eol-whitespace)
(#152) Unexpected whitespace at end of line (no-eol-whitespace)
(#160) Unexpected whitespace at end of line (no-eol-whitespace)
(#168) Unexpected whitespace at end of line (no-eol-whitespace)
(#174) Unexpected whitespace at end of line (no-eol-whitespace)
(#184) Unexpected whitespace at end of line (no-eol-whitespace)
(#195) Unexpected whitespace at end of line (no-eol-whitespace)
(#199) Unexpected whitespace at end of line (no-eol-whitespace)
(#203) Unexpected whitespace at end of line (no-eol-whitespace)
(#209) Unexpected whitespace at end of line (no-eol-whitespace)
(#218) Unexpected whitespace at end of line (no-eol-whitespace)
(#226) Unexpected whitespace at end of line (no-eol-whitespace)
(#228) Unexpected whitespace at end of line (no-eol-whitespace)
local/geniai/styles/_el-switch.scss
(#3) Unexpected !important (declaration-no-important)
local/geniai/styles/_jquery-ui.scss
(#8) Unexpected !important (declaration-no-important)
(#16) Unexpected !important (declaration-no-important)
(#31) Unexpected !important (declaration-no-important)
local/geniai/styles/_radio-select.scss
(#5) Expected "#cccccc" to be "#ccc" (color-hex-length)

PHPDocs style problems

(3 errors, 0 warnings)

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

local/geniai/classes/external/api.php
(#78) Phpdocs for function api::chat_api has incomplete parameters list
(#225) Phpdocs for function api::course_secoes has incomplete parameters list
(#386) Phpdocs for function api::transcriptions_base64 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, 2 warnings)

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

local/geniai/templates/chat.mustache
(#1) HTML Validation error, line 11: Bad value “https://....” for attribute “src” on element “img”: Invalid host: A non-final domain name label (or the whole domain name) is empty.. ( <img class="icon" src="https://...." alt="Teacher photo"> )
(#1) HTML Validation error, line 61: Bad value “https://....” for attribute “src” on element “img”: Invalid host: A non-final domain name label (or the whole domain name) is empty.. ( <img class="icon" src="https://...." alt="Teacher photo"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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