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

(4 errors, 24 warnings)

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

blocks/ai_chat/block_ai_chat.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#77) Line exceeds 132 characters; contains 139 characters
(#82) Line exceeds 132 characters; contains 139 characters
blocks/ai_chat/classes/external/get_conversationcontext_limit.php
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) This comment is 67% valid code; is this commented out code?
blocks/ai_chat/classes/local/helper.php
(#29) Missing docblock for function check_block_present
blocks/ai_chat/classes/output/renderer.php
(#29) Missing docblock for class renderer
blocks/ai_chat/classes/permissions.php
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) This comment is 67% valid code; is this commented out code?
blocks/ai_chat/db/services.php
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/ai_chat/lang/de/block_ai_chat.php
(#30) The string key "addblockinstance" is not in the correct order, it should be before "ai_chat:view"
(#37) The string key "confirm_ai_usage" is not in the correct order, it should be before "copied"
(#42) The string key "enableaichat" is not in the correct order, it should be before "newdialog"
(#48) The string key "input" is not in the correct order, it should be before "noticenewquestion"
(#52) The string key "history" is not in the correct order, it should be before "public"
(#54) The string key "maxhistory" is not in the correct order, it should be before "showhistory"
blocks/ai_chat/lang/en/block_ai_chat.php
(#30) The string key "addblockinstance" is not in the correct order, it should be before "ai_chat:view"
(#37) The string key "confirm_ai_usage" is not in the correct order, it should be before "copied"
(#42) The string key "enableaichat" is not in the correct order, it should be before "newdialog"
(#48) The string key "input" is not in the correct order, it should be before "noticenewquestion"
(#52) The string key "history" is not in the correct order, it should be before "public"
(#54) The string key "maxhistory" is not in the correct order, it should be before "showhistory"
blocks/ai_chat/settings.php
(#20) Incorrect @package tag for file settings.php. Expected block_ai_chat, found local_ai_manager.

Javascript coding style problems

(31 errors, 4 warnings)

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

blocks/ai_chat/amd/src/ai_manager.js
(#2) 'displayException' is defined but never used. (no-unused-vars)
(#17) Unexpected console statement. (no-console)
blocks/ai_chat/amd/src/dialog.js
(#66) Comments should not begin with a lowercase character. (capitalized-comments)
(#109) Comments should not begin with a lowercase character. (capitalized-comments)
(#234) Unexpected console statement. (no-console)
(#237) Unexpected console statement. (no-console)
(#239) Unexpected console statement. (no-console)
(#249) Unexpected console statement. (no-console)
(#286) Unexpected console statement. (no-console)
(#335) Unexpected console statement. (no-console)
(#364) Unexpected space before function parentheses. (space-before-function-paren)
(#379) Unexpected console statement. (no-console)
(#428) Unexpected console statement. (no-console)
(#450) Unexpected console statement. (no-console)
(#476) Unexpected console statement. (no-console)
(#599) Unexpected console statement. (no-console)
(#728) Unexpected console statement. (no-console)
(#739) Unexpected console statement. (no-console)
(#743) Unexpected console statement. (no-console)
(#802) 'message' is not defined. (no-undef)
(#803) 'message' is not defined. (no-undef)
(#806) 'message' is not defined. (no-undef)
(#807) 'message' is not defined. (no-undef)
(#809) 'message' is not defined. (no-undef)
(#810) 'message' is not defined. (no-undef)
(#813) 'message' is not defined. (no-undef)
(#814) 'message' is not defined. (no-undef)
(#817) 'message' is not defined. (no-undef)
(#818) 'message' is not defined. (no-undef)
(#821) 'message' is not defined. (no-undef)
(#822) 'message' is not defined. (no-undef)
(#825) 'message' is not defined. (no-undef)
(#826) 'message' is not defined. (no-undef)
blocks/ai_chat/amd/src/helper.js
(#50) Unexpected console statement. (no-console)
(#74) Unnecessary escape character: \/. (no-useless-escape)

CSS problems

(256 errors, 5 warnings)

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

blocks/ai_chat/styles.css
(#334) Expected empty line before at-rule (at-rule-empty-line-before)
(#170) Expected "#ff3333" to be "#f33" (color-hex-length)
(#173) Expected "#ffcccc" to be "#fcc" (color-hex-length)
(#167) Unexpected !important (declaration-no-important)
(#281) Expected newline after "," (selector-list-comma-newline-after)
(#2) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#11) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#18) Expected indentation of 4 spaces (indentation)
(#22) Expected indentation of 4 spaces (indentation)
(#19) Expected indentation of 8 spaces (indentation)
(#20) Expected indentation of 8 spaces (indentation)
(#21) Expected indentation of 8 spaces (indentation)
(#26) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#33) Expected indentation of 4 spaces (indentation)
(#34) Expected indentation of 4 spaces (indentation)
(#37) Expected indentation of 4 spaces (indentation)
(#38) Expected indentation of 4 spaces (indentation)
(#39) Expected indentation of 4 spaces (indentation)
(#40) Expected indentation of 4 spaces (indentation)
(#41) Expected indentation of 4 spaces (indentation)
(#44) Expected indentation of 4 spaces (indentation)
(#45) Expected indentation of 4 spaces (indentation)
(#46) Expected indentation of 4 spaces (indentation)
(#49) Expected indentation of 4 spaces (indentation)
(#50) Expected indentation of 4 spaces (indentation)
(#53) Expected indentation of 4 spaces (indentation)
(#54) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 4 spaces (indentation)
(#56) Expected indentation of 4 spaces (indentation)
(#57) Expected indentation of 4 spaces (indentation)
(#60) Expected indentation of 4 spaces (indentation)
(#61) Expected indentation of 4 spaces (indentation)
(#62) Expected indentation of 4 spaces (indentation)
(#63) Expected indentation of 4 spaces (indentation)
(#66) Expected indentation of 4 spaces (indentation)
(#67) Expected indentation of 4 spaces (indentation)
(#68) Expected indentation of 4 spaces (indentation)
(#69) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)
(#73) Expected indentation of 4 spaces (indentation)
(#74) Expected indentation of 4 spaces (indentation)
(#77) Expected indentation of 4 spaces (indentation)
(#80) Expected indentation of 4 spaces (indentation)
(#83) Expected indentation of 4 spaces (indentation)
(#86) Expected indentation of 4 spaces (indentation)
(#89) Expected indentation of 4 spaces (indentation)
(#90) Expected indentation of 4 spaces (indentation)
(#94) Expected indentation of 4 spaces (indentation)
(#97) Expected indentation of 4 spaces (indentation)
(#98) Expected indentation of 4 spaces (indentation)
(#99) Expected indentation of 4 spaces (indentation)
(#102) Expected indentation of 4 spaces (indentation)
(#105) Expected indentation of 4 spaces (indentation)
(#108) Expected indentation of 4 spaces (indentation)
(#109) Expected indentation of 4 spaces (indentation)
(#110) Expected indentation of 4 spaces (indentation)
(#111) Expected indentation of 4 spaces (indentation)
(#112) Expected indentation of 4 spaces (indentation)
(#113) Expected indentation of 4 spaces (indentation)
(#114) Expected indentation of 4 spaces (indentation)
(#115) Expected indentation of 4 spaces (indentation)
(#118) Expected indentation of 4 spaces (indentation)
(#119) Expected indentation of 4 spaces (indentation)
(#120) Expected indentation of 4 spaces (indentation)
(#121) Expected indentation of 4 spaces (indentation)
(#124) Expected indentation of 4 spaces (indentation)
(#125) Expected indentation of 4 spaces (indentation)
(#126) Expected indentation of 4 spaces (indentation)
(#127) Expected indentation of 4 spaces (indentation)
(#130) Expected indentation of 4 spaces (indentation)
(#131) Expected indentation of 4 spaces (indentation)
(#132) Expected indentation of 4 spaces (indentation)
(#135) Expected indentation of 4 spaces (indentation)
(#136) Expected indentation of 4 spaces (indentation)
(#137) Expected indentation of 4 spaces (indentation)
(#138) Expected indentation of 4 spaces (indentation)
(#139) Expected indentation of 4 spaces (indentation)
(#140) Expected indentation of 4 spaces (indentation)
(#141) Expected indentation of 4 spaces (indentation)
(#142) Expected indentation of 4 spaces (indentation)
(#143) Expected indentation of 4 spaces (indentation)
(#146) Expected indentation of 4 spaces (indentation)
(#147) Expected indentation of 4 spaces (indentation)
(#148) Expected indentation of 4 spaces (indentation)
(#151) Expected indentation of 4 spaces (indentation)
(#152) Expected indentation of 4 spaces (indentation)
(#153) Expected indentation of 4 spaces (indentation)
(#154) Expected indentation of 4 spaces (indentation)
(#157) Expected indentation of 4 spaces (indentation)
(#158) Expected indentation of 4 spaces (indentation)
(#161) Expected indentation of 4 spaces (indentation)
(#162) Expected indentation of 4 spaces (indentation)
(#163) Expected indentation of 4 spaces (indentation)
(#164) Expected indentation of 4 spaces (indentation)
(#167) Expected indentation of 4 spaces (indentation)
(#170) Expected indentation of 4 spaces (indentation)
(#173) Expected indentation of 4 spaces (indentation)
(#176) Expected indentation of 4 spaces (indentation)
(#177) Expected indentation of 4 spaces (indentation)
(#180) Expected indentation of 4 spaces (indentation)
(#181) Expected indentation of 4 spaces (indentation)
(#182) Expected indentation of 4 spaces (indentation)
(#183) Expected indentation of 4 spaces (indentation)
(#184) Expected indentation of 4 spaces (indentation)
(#185) Expected indentation of 4 spaces (indentation)
(#188) Expected indentation of 4 spaces (indentation)
(#189) Expected indentation of 4 spaces (indentation)
(#190) Expected indentation of 4 spaces (indentation)
(#191) Expected indentation of 4 spaces (indentation)
(#192) Expected indentation of 4 spaces (indentation)
(#193) Expected indentation of 4 spaces (indentation)
(#194) Expected indentation of 4 spaces (indentation)
(#195) Expected indentation of 4 spaces (indentation)
(#198) Expected indentation of 4 spaces (indentation)
(#199) Expected indentation of 4 spaces (indentation)
(#202) Expected indentation of 4 spaces (indentation)
(#203) Expected indentation of 4 spaces (indentation)
(#204) Expected indentation of 4 spaces (indentation)
(#205) Expected indentation of 4 spaces (indentation)
(#206) Expected indentation of 4 spaces (indentation)
(#207) Expected indentation of 4 spaces (indentation)
(#208) Expected indentation of 4 spaces (indentation)
(#211) Expected indentation of 4 spaces (indentation)
(#212) Expected indentation of 4 spaces (indentation)
(#213) Expected indentation of 4 spaces (indentation)
(#214) Expected indentation of 4 spaces (indentation)
(#215) Expected indentation of 4 spaces (indentation)
(#218) Expected indentation of 4 spaces (indentation)
(#219) Expected indentation of 4 spaces (indentation)
(#220) Expected indentation of 4 spaces (indentation)
(#223) Expected indentation of 4 spaces (indentation)
(#226) Expected indentation of 4 spaces (indentation)
(#227) Expected indentation of 4 spaces (indentation)
(#228) Expected indentation of 4 spaces (indentation)
(#229) Expected indentation of 4 spaces (indentation)
(#230) Expected indentation of 4 spaces (indentation)
(#233) Expected indentation of 4 spaces (indentation)
(#236) Expected indentation of 4 spaces (indentation)
(#237) Expected indentation of 4 spaces (indentation)
(#238) Expected indentation of 4 spaces (indentation)
(#239) Expected indentation of 4 spaces (indentation)
(#242) Expected indentation of 4 spaces (indentation)
(#245) Expected indentation of 4 spaces (indentation)
(#246) Expected indentation of 4 spaces (indentation)
(#250) Expected indentation of 4 spaces (indentation)
(#253) Expected indentation of 4 spaces (indentation)
(#257) Expected indentation of 4 spaces (indentation)
(#258) Expected indentation of 4 spaces (indentation)
(#259) Expected indentation of 4 spaces (indentation)
(#263) Expected indentation of 4 spaces (indentation)
(#267) Expected indentation of 4 spaces (indentation)
(#268) Expected indentation of 4 spaces (indentation)
(#269) Expected indentation of 4 spaces (indentation)
(#270) Expected indentation of 4 spaces (indentation)
(#271) Expected indentation of 4 spaces (indentation)
(#274) Expected indentation of 4 spaces (indentation)
(#279) Expected indentation of 4 spaces (indentation)
(#284) Expected indentation of 4 spaces (indentation)
(#285) Expected indentation of 4 spaces (indentation)
(#289) Expected indentation of 4 spaces (indentation)
(#290) Expected indentation of 4 spaces (indentation)
(#293) Expected indentation of 4 spaces (indentation)
(#294) Expected indentation of 4 spaces (indentation)
(#297) Expected indentation of 4 spaces (indentation)
(#301) Expected indentation of 4 spaces (indentation)
(#304) Expected indentation of 4 spaces (indentation)
(#305) Expected indentation of 4 spaces (indentation)
(#306) Expected indentation of 4 spaces (indentation)
(#307) Expected indentation of 4 spaces (indentation)
(#308) Expected indentation of 4 spaces (indentation)
(#309) Expected indentation of 4 spaces (indentation)
(#310) Expected indentation of 4 spaces (indentation)
(#311) Expected indentation of 4 spaces (indentation)
(#314) Expected indentation of 4 spaces (indentation)
(#315) Expected indentation of 4 spaces (indentation)
(#316) Expected indentation of 4 spaces (indentation)
(#317) Expected indentation of 4 spaces (indentation)
(#320) Expected indentation of 4 spaces (indentation)
(#326) Expected indentation of 4 spaces (indentation)
(#330) Expected indentation of 4 spaces (indentation)
(#332) Expected indentation of 4 spaces (indentation)
(#331) Expected indentation of 8 spaces (indentation)
(#335) Expected indentation of 4 spaces (indentation)
(#337) Expected indentation of 4 spaces (indentation)
(#336) Expected indentation of 8 spaces (indentation)
blocks/ai_chat/styles.scss
(#19) Expected empty line before at-rule (at-rule-empty-line-before)
(#348) Expected empty line before at-rule (at-rule-empty-line-before)
(#353) Expected empty line before at-rule (at-rule-empty-line-before)
(#267) Expected newline before "}" (block-closing-brace-newline-before)
(#259) Expected newline before "}" (block-closing-brace-newline-before)
(#99) Expected newline after "{" (block-opening-brace-newline-after)
(#33) Expected single space before "{" (block-opening-brace-space-before)
(#178) Expected "#ff3333" to be "#f33" (color-hex-length)
(#180) Expected "#ffcccc" to be "#fcc" (color-hex-length)
(#151) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#176) Unexpected !important (declaration-no-important)
(#99) Unexpected whitespace at end of line (no-eol-whitespace)
(#258) Unexpected whitespace at end of line (no-eol-whitespace)
(#266) Unexpected whitespace at end of line (no-eol-whitespace)
(#151) Unexpected extra semicolon (no-extra-semicolons)
(#296) Expected newline after "," (selector-list-comma-newline-after)
(#51) Expected indentation of 8 spaces (indentation)
(#41) Expected indentation of 12 spaces (indentation)
(#42) Expected indentation of 12 spaces (indentation)
(#43) Expected indentation of 12 spaces (indentation)
(#44) Expected indentation of 12 spaces (indentation)
(#45) Expected indentation of 12 spaces (indentation)
(#46) Expected indentation of 12 spaces (indentation)
(#50) Expected indentation of 12 spaces (indentation)
(#54) Expected indentation of 4 spaces (indentation)
(#65) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 8 spaces (indentation)
(#56) Expected indentation of 8 spaces (indentation)
(#58) Expected indentation of 8 spaces (indentation)
(#64) Expected indentation of 8 spaces (indentation)
(#59) Expected indentation of 12 spaces (indentation)
(#60) Expected indentation of 12 spaces (indentation)
(#61) Expected indentation of 12 spaces (indentation)
(#62) Expected indentation of 12 spaces (indentation)
(#63) Expected indentation of 12 spaces (indentation)
(#67) Expected indentation of 4 spaces (indentation)
(#72) Expected indentation of 4 spaces (indentation)
(#68) Expected indentation of 8 spaces (indentation)
(#69) Expected indentation of 8 spaces (indentation)
(#70) Expected indentation of 8 spaces (indentation)
(#71) Expected indentation of 8 spaces (indentation)
(#73) Expected indentation of 4 spaces (indentation)
(#79) Expected indentation of 4 spaces (indentation)
(#74) Expected indentation of 8 spaces (indentation)
(#75) Expected indentation of 8 spaces (indentation)
(#76) Expected indentation of 8 spaces (indentation)
(#77) Expected indentation of 8 spaces (indentation)
(#78) Expected indentation of 8 spaces (indentation)
(#80) Expected indentation of 4 spaces (indentation)
(#81) Expected indentation of 8 spaces (indentation)
(#82) Expected indentation of 8 spaces (indentation)
(#226) Expected indentation of 8 spaces (indentation)
(#212) Expected indentation of 12 spaces (indentation)
(#213) Expected indentation of 12 spaces (indentation)
(#214) Expected indentation of 12 spaces (indentation)
(#215) Expected indentation of 12 spaces (indentation)
(#216) Expected indentation of 12 spaces (indentation)
(#217) Expected indentation of 12 spaces (indentation)
(#218) Expected indentation of 12 spaces (indentation)
(#219) Expected indentation of 12 spaces (indentation)
(#225) Expected indentation of 12 spaces (indentation)
(#220) Expected indentation of 16 spaces (indentation)
(#221) Expected indentation of 16 spaces (indentation)
(#222) Expected indentation of 16 spaces (indentation)
(#223) Expected indentation of 16 spaces (indentation)
(#224) Expected indentation of 16 spaces (indentation)

PHPDocs style problems

(3 errors, 0 warnings)

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

blocks/ai_chat/classes/external/delete_conversation.php
(#49) Phpdocs for function delete_conversation::execute has incomplete parameters list
blocks/ai_chat/classes/local/hook_callbacks.php
(#88) Phpdocs for function hook_callbacks::handle_after_form_definition_after_data has incomplete parameters list
blocks/ai_chat/classes/output/renderer.php
(#30) Phpdocs for function renderer::render_ai_chat_content 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

(4 errors, 0 warnings)

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

blocks/ai_chat/templates/dialog_modal.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/ai_chat/templates/floatingbutton.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/ai_chat/templates/history.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/ai_chat/templates/message.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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