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

(270 errors, 97 warnings)

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

blocks/openai_chat/api/completion.php
(#25) Import statements must not begin with a leading backslash
(#27) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#45) Variable "block_id" must not contain underscores.
(#46) Variable "thread_id" must not contain underscores.
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Variable "instance_record" must not contain underscores.
(#50) Variable "block_id" must not contain underscores.
(#51) Variable "instance_record" must not contain underscores.
(#53) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#56) Variable "instance_record" must not contain underscores.
(#59) Variable "block_settings" must not contain underscores.
(#60) Variable "setting_names" must not contain underscores.
(#61) Whitespace found at end of line
(#64) Whitespace found at end of line
(#65) Whitespace found at end of line
(#66) Whitespace found at end of line
(#67) Whitespace found at end of line
(#68) Whitespace found at end of line
(#69) Whitespace found at end of line
(#70) Whitespace found at end of line
(#71) Whitespace found at end of line
(#73) There should be a comma after the last array item in a multi-line array.
(#75) Variable "setting_names" must not contain underscores.
(#77) Variable "block_settings" must not contain underscores.
(#79) Variable "block_settings" must not contain underscores.
(#83) Variable "engine_class" must not contain underscores.
(#85) Variable "api_type" must not contain underscores.
(#86) Variable "engine_class" must not contain underscores.
(#88) Variable "engine_class" must not contain underscores.
(#88) Variable "block_settings" must not contain underscores.
(#88) Variable "thread_id" must not contain underscores.
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/openai_chat/api/thread.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#33) Variable "thread_id" must not contain underscores.
(#37) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#45) Variable "thread_id" must not contain underscores.
(#52) Variable "api_response" must not contain underscores.
(#53) Variable "message_list" must not contain underscores.
(#55) Variable "message_list" must not contain underscores.
(#56) Variable "api_response" must not contain underscores.
(#59) There should be a comma after the last array item in a multi-line array.
(#63) Variable "api_response" must not contain underscores.
(#63) Variable "api_response" must not contain underscores.
(#64) Variable "api_response" must not contain underscores.
blocks/openai_chat/block_openai_chat.php
(#25) Missing docblock for class block_openai_chat
(#26) Missing docblock for function init
(#30) Missing docblock for function has_config
(#34) Missing docblock for function applicable_formats
(#34) Visibility must be declared on method "applicable_formats"
(#35) Short array syntax must be used to define arrays
(#38) Missing docblock for function specialization
(#44) Missing docblock for function get_content
(#46) global $PAGE cannot be used in block classes. Use $this->page.
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Line exceeds maximum limit of 180 characters; contains 183 characters
(#60) There should be a comma after the last array item in a multi-line array.
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line exceeds maximum limit of 180 characters; contains 183 characters
(#78) Line exceeds 132 characters; contains 163 characters
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Line exceeds 132 characters; contains 159 characters
(#83) Line exceeds 132 characters; contains 134 characters
(#109) Whitespace found at end of line
(#116) global $PAGE cannot be used in block classes. Use $this->page.
blocks/openai_chat/classes/completion.php
(#23) Expected 1 space before asterisk; 0 found
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Missing docblock for class completion
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#41) Missing member variable doc comment
(#42) Missing member variable doc comment
(#43) Missing member variable doc comment
(#45) Missing member variable doc comment
(#46) Missing member variable doc comment
(#55) Variable "block_settings" must not contain underscores.
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Variable "block_settings" must not contain underscores.
(#89) Variable "block_settings" must not contain underscores.
(#98) Variable "default_value" must not contain underscores.
(#101) Variable "default_value" must not contain underscores.
(#108) Whitespace found at end of line
(#112) Whitespace found at end of line
(#114) Whitespace found at end of line
(#118) Line indented incorrectly; expected 8 spaces, found 12
(#118) Closing brace indented incorrectly; expected 8 spaces, found 12
(#121) File must end with a newline character
blocks/openai_chat/classes/completion/assistant.php
(#23) Expected 1 space before asterisk; 0 found
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for class assistant
(#32) Missing member variable doc comment
(#32) Member variable "thread_id" must not contain underscores.
(#34) Missing docblock for function __construct
(#34) Variable "block_settings" must not contain underscores.
(#34) Variable "thread_id" must not contain underscores.
(#35) Variable "block_settings" must not contain underscores.
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Variable "thread_id" must not contain underscores.
(#39) Variable "thread_id" must not contain underscores.
(#41) Variable "thread_id" must not contain underscores.
(#45) Line exceeds 132 characters; contains 133 characters
(#53) Missing docblock for function create_thread
(#55) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#59) There should be a comma after the last array item in a multi-line array.
(#69) Missing docblock for function add_message_to_thread
(#72) There should be a comma after the last array item in a multi-line array.
(#76) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#80) There should be a comma after the last array item in a multi-line array.
(#85) Whitespace found at end of line
(#107) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#111) There should be a comma after the last array item in a multi-line array.
(#116) Whitespace found at end of line
(#125) Variable "run_id" must not contain underscores.
(#126) Variable "run_completed" must not contain underscores.
(#128) Variable "run_completed" must not contain underscores.
(#134) There should be a comma after the last array item in a multi-line array.
(#137) Variable "run_completed" must not contain underscores.
(#137) Variable "run_id" must not contain underscores.
(#142) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#146) There should be a comma after the last array item in a multi-line array.
(#155) There should be a comma after the last array item in a multi-line array.
(#159) Missing docblock for function check_run_status
(#159) Variable "run_id" must not contain underscores.
(#161) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#165) There should be a comma after the last array item in a multi-line array.
(#169) Variable "run_id" must not contain underscores.
(#171) Whitespace found at end of line
blocks/openai_chat/classes/completion/azure.php
(#23) Expected 1 space before asterisk; 0 found
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for class azure
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#36) Missing docblock for function __construct
(#36) Variable "block_settings" must not contain underscores.
(#36) Variable "thread_id" must not contain underscores.
(#37) Variable "block_settings" must not contain underscores.
(#45) Line exceeds 132 characters; contains 133 characters
(#55) Variable "history_json" must not contain underscores.
(#56) Variable "history_json" must not contain underscores.
(#57) Variable "history_json" must not contain underscores.
(#59) Variable "history_json" must not contain underscores.
(#61) Variable "response_data" must not contain underscores.
(#61) Variable "history_json" must not contain underscores.
(#62) Variable "response_data" must not contain underscores.
(#79) There should be a comma after the last array item in a multi-line array.
(#83) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#86) There should be a comma after the last array item in a multi-line array.
(#91) Line exceeds 132 characters; contains 165 characters
(#91) Whitespace found at end of line
(#105) There should be a comma after the last array item in a multi-line array.
blocks/openai_chat/classes/completion/chat.php
(#23) Expected 1 space before asterisk; 0 found
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for class chat
(#32) Missing docblock for function __construct
(#32) Variable "block_settings" must not contain underscores.
(#32) Variable "thread_id" must not contain underscores.
(#33) Variable "block_settings" must not contain underscores.
(#37) Line exceeds 132 characters; contains 133 characters
(#47) Variable "history_json" must not contain underscores.
(#48) Variable "history_json" must not contain underscores.
(#49) Variable "history_json" must not contain underscores.
(#51) Variable "history_json" must not contain underscores.
(#53) Variable "response_data" must not contain underscores.
(#53) Variable "history_json" must not contain underscores.
(#54) Variable "response_data" must not contain underscores.
(#83) There should be a comma after the last array item in a multi-line array.
(#87) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#90) There should be a comma after the last array item in a multi-line array.
(#106) There should be a comma after the last array item in a multi-line array.
blocks/openai_chat/classes/privacy/provider.php
(#27) Import statements must not begin with a leading backslash
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#34) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Missing docblock for class provider
(#36) Whitespace found at end of line
(#41) Missing docblock for function get_metadata
(#48) There should be a comma after the last array item in a multi-line array.
(#52) Whitespace found at end of line
(#56) Missing docblock for function get_contexts_for_userid
(#63) Missing docblock for function get_users_in_context
(#74) Missing docblock for function export_user_data
(#92) There should be a comma after the last array item in a multi-line array.
(#95) Whitespace found at end of line
(#103) Missing docblock for function delete_data_for_all_users_in_context
(#111) Missing docblock for function delete_data_for_user
(#121) Missing docblock for function delete_data_for_users
blocks/openai_chat/classes/report.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Missing docblock for class report
(#29) Missing docblock for function __construct
(#29) Visibility must be declared on method "__construct"
(#32) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#42) Missing docblock for function col_user_name
(#42) Visibility must be declared on method "col_user_name"
(#53) Missing docblock for function col_contextid
(#53) Visibility must be declared on method "col_contextid"
(#62) Whitespace found at end of line
(#70) Missing docblock for function col_timecreated
(#70) Visibility must be declared on method "col_timecreated"
(#73) File must end with a newline character
blocks/openai_chat/db/access.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#33) There should be a comma after the last array item in a multi-line array.
(#36) There should be a comma after the last array item in a multi-line array.
(#39) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#46) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
(#52) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#59) There should be a comma after the last array item in a multi-line array.
blocks/openai_chat/db/upgrade.php
(#1) Moodle boilerplate not found
(#3) Missing @copyright tag
(#3) Missing @license tag
(#3) Missing docblock for function xmldb_block_openai_chat_upgrade
(#33) Whitespace found at end of line
(#40) File must end with a newline character
blocks/openai_chat/edit_form.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Missing docblock for class block_openai_chat_edit_form
(#29) Missing docblock for function specific_definition
(#30) Variable "block_id" must not contain underscores.
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Variable "block_id" must not contain underscores.
(#46) Line exceeds 132 characters; contains 146 characters
(#64) Whitespace found at end of line
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Whitespace found at end of line
(#91) Whitespace found at end of line
(#96) Whitespace found at end of line
(#101) Whitespace found at end of line
(#103) Whitespace found at end of line
(#108) Whitespace found at end of line
(#113) Whitespace found at end of line
(#118) Whitespace found at end of line
(#123) Whitespace found at end of line
(#128) Whitespace found at end of line
(#133) Whitespace found at end of line
blocks/openai_chat/lang/en/block_openai_chat.php
(#26) The string key "openai_chat" is not in the correct order, it should be before "pluginname"
(#28) The string key "openai_chat:addinstance" is not in the correct order, it should be before "openai_chat_logs"
(#34) The string key "privacy:metadata:openai_chat_log:airesponse" is not in the correct order, it should be before "privacy:metadata:openai_chat_log:usermessage"
(#36) The string key "privacy:chatmessagespath" is not in the correct order, it should be before "privacy:metadata:openai_chat_log:timecreated"
(#37) The string key "downloadfilename" is not in the correct order, it should be before "privacy:chatmessagespath"
(#39) The string key "blocktitle" is not in the correct order, it should be before "downloadfilename"
(#43) The string key "apikey" is not in the correct order, it should be before "restrictusagedesc"
(#47) The string key "logging" is not in the correct order, it should be before "typedesc"
(#50) The string key "assistantheading" is not in the correct order, it should be before "loggingdesc"
(#52) The string key "assistant" is not in the correct order, it should be before "assistantheadingdesc"
(#58) The string key "azureheading" is not in the correct order, it should be before "persistconvodesc"
(#62) The string key "deploymentid" is not in the correct order, it should be before "resourcenamedesc"
(#64) The string key "apiversion" is not in the correct order, it should be before "deploymentiddesc"
(#70) The string key "assistantname" is not in the correct order, it should be before "promptdesc"
(#74) The string key "sourceoftruth" is not in the correct order, it should be before "usernamedesc"
(#76) The string key "showlabels" is not in the correct order, it should be before "sourceoftruthdesc"
(#77) The string key "advanced" is not in the correct order, it should be before "showlabels"
(#85) The string key "maxlength" is not in the correct order, it should be before "temperaturedesc"
(#89) The string key "frequency" is not in the correct order, it should be before "toppdesc"
(#94) The string key "config_assistant" is not in the correct order, it should be before "presencedesc"
(#98) The string key "config_instructions" is not in the correct order, it should be before "config_sourceoftruth_help"
(#104) The string key "config_assistantname" is not in the correct order, it should be before "config_username_help"
(#108) The string key "config_apikey" is not in the correct order, it should be before "config_persistconvo_help"
(#114) The string key "config_maxlength" is not in the correct order, it should be before "config_temperature_help"
(#118) The string key "config_frequency" is not in the correct order, it should be before "config_topp_help"
(#124) The string key "defaultassistantname" is not in the correct order, it should be before "defaultprompt"
(#126) The string key "askaquestion" is not in the correct order, it should be before "defaultusername"
(#127) The string key "apikeymissing" is not in the correct order, it should be before "askaquestion"
(#131) The string key "new_chat" is not in the correct order, it should be before "sourceoftruthreinforcement"
(#133) The string key "loggingenabled" is not in the correct order, it should be before "popout"
(#134) Unexpected string end, it should be a line feed after a semicolon
(#134) File must end with a newline character
blocks/openai_chat/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Variable "stored_type" must not contain underscores.
(#33) Variable "stored_type" must not contain underscores.
(#34) Variable "stored_type" must not contain underscores.
(#36) Whitespace found at end of line
(#42) Line exceeds 132 characters; contains 137 characters
(#45) Variable "block_id" must not contain underscores.
(#48) Variable "block_id" must not contain underscores.
(#51) Variable "instance_record" must not contain underscores.
(#51) Variable "block_id" must not contain underscores.
(#52) Variable "instance_record" must not contain underscores.
(#61) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#71) Variable "assistant_array" must not contain underscores.
(#74) Variable "assistant_array" must not contain underscores.
(#78) Variable "assistant_array" must not contain underscores.
(#83) Line exceeds 132 characters; contains 137 characters
(#109) There should be a comma after the last array item in a multi-line array.
(#112) Expected 1 space after "=>"; 2 found
(#113) Expected 1 space after "=>"; 2 found
(#114) Expected 1 space after "=>"; 2 found
(#115) Expected 1 space after "=>"; 2 found
(#116) Expected 1 space after "=>"; 2 found
(#117) Expected 1 space after "=>"; 2 found
(#118) Expected 1 space after "=>"; 2 found
(#119) Expected 1 space after "=>"; 2 found
(#120) Expected 1 space after "=>"; 2 found
(#121) Expected 1 space after "=>"; 2 found
(#122) Expected 1 space after "=>"; 2 found
(#123) Expected 1 space after "=>"; 2 found
(#124) Expected 1 space after "=>"; 2 found
(#125) Expected 1 space after "=>"; 2 found
(#126) Expected 1 space after "=>"; 2 found
(#127) Expected 1 space after "=>"; 2 found
(#128) Expected 1 space after "=>"; 2 found
(#129) Expected 1 space after "=>"; 2 found
(#130) Expected 1 space after "=>"; 2 found
(#131) Expected 1 space after "=>"; 2 found
(#131) There should be a comma after the last array item in a multi-line array.
(#132) There should be a comma after the last array item in a multi-line array.
(#139) Whitespace found at end of line
(#153) There should be a comma after the last array item in a multi-line array.
(#157) Missing docblock for function block_openai_chat_extend_navigation_course
blocks/openai_chat/report.php
(#25) Import statements must not begin with a leading backslash
(#42) Variable "starttime_ts" must not contain underscores.
(#43) Variable "endtime_ts" must not contain underscores.
(#53) Short array syntax must be used to define arrays
(#55) Whitespace found at end of line
(#56) Whitespace found at end of line
(#57) Whitespace found at end of line
(#74) There should be a comma after the last array item in a multi-line array.
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Variable "starttime_ts" must not contain underscores.
(#92) Variable "starttime_ts" must not contain underscores.
(#94) Variable "endtime_ts" must not contain underscores.
(#95) Variable "endtime_ts" must not contain underscores.
(#103) Whitespace found at end of line
(#104) Whitespace found at end of line within string
(#105) Whitespace found at end of line within string
(#115) File must end with a newline character
blocks/openai_chat/settings.php
(#31) Whitespace found at end of line
(#32) Whitespace found at end of line
(#43) Variable "assistant_array" must not contain underscores.
(#45) Variable "assistant_array" must not contain underscores.
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Variable "assistant_array" must not contain underscores.
(#111) Variable "assistant_array" must not contain underscores.
(#111) Variable "assistant_array" must not contain underscores.
(#112) Variable "assistant_array" must not contain underscores.
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#175) Line exceeds 132 characters; contains 136 characters
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) Empty IF statement detected

Javascript coding style problems

(114 errors, 16 warnings)

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

blocks/openai_chat/amd/src/lib.js
(#1) Missing semicolon. (@babel/semi)
(#2) Missing semicolon. (@babel/semi)
(#5) ["blockId"] is better written in dot notation. (dot-notation)
(#5) Missing semicolon. (@babel/semi)
(#6) Identifier 'api_type' is not in camel case. (camelcase)
(#6) ["api_type"] is better written in dot notation. (dot-notation)
(#6) Missing semicolon. (@babel/semi)
(#7) ["persistConvo"] is better written in dot notation. (dot-notation)
(#7) Missing semicolon. (@babel/semi)
(#11) Identifier 'api_type' is not in camel case. (camelcase)
(#12) 'chatData' is not defined. (no-undef)
(#12) Missing semicolon. (@babel/semi)
(#13) 'chatData' is not defined. (no-undef)
(#14) 'chatData' is not defined. (no-undef)
(#14) 'chatData' is not defined. (no-undef)
(#14) Missing semicolon. (@babel/semi)
(#15) 'chatData' is not defined. (no-undef)
(#15) 'chatData' is not defined. (no-undef)
(#15) ["threadId"] is better written in dot notation. (dot-notation)
(#16) 'chatData' is not defined. (no-undef)
(#16) ["threadId"] is better written in dot notation. (dot-notation)
(#19) Each then() should return a value or throw (promise/always-return)
(#20) Missing semicolon. (@babel/semi)
(#24) 'error' is defined but never used. (no-unused-vars)
(#25) 'chatData' is not defined. (no-undef)
(#25) Missing semicolon. (@babel/semi)
(#26) 'chatData' is not defined. (no-undef)
(#27) Missing semicolon. (@babel/semi)
(#30) 'chatData' is not defined. (no-undef)
(#30) Missing semicolon. (@babel/semi)
(#34) 'chatData' is not defined. (no-undef)
(#34) Missing semicolon. (@babel/semi)
(#36) 'chatData' is not defined. (no-undef)
(#46) Missing semicolon. (@babel/semi)
(#47) Missing semicolon. (@babel/semi)
(#48) Missing semicolon. (@babel/semi)
(#50) Missing semicolon. (@babel/semi)
(#51) 'e' is defined but never used. (no-unused-vars)
(#52) Missing semicolon. (@babel/semi)
(#54) Missing semicolon. (@babel/semi)
(#55) Missing semicolon. (@babel/semi)
(#56) Missing semicolon. (@babel/semi)
(#58) Missing semicolon. (@babel/semi)
(#60) 'e' is defined but never used. (no-unused-vars)
(#61) Missing semicolon. (@babel/semi)
(#62) Missing semicolon. (@babel/semi)
(#64) 'e' is defined but never used. (no-unused-vars)
(#66) Missing semicolon. (@babel/semi)
(#68) Missing semicolon. (@babel/semi)
(#69) Missing semicolon. (@babel/semi)
(#82) Expected catch,fail,always() or return (promise/catch-or-return)
(#82) Each then() should return a value or throw (promise/always-return)
(#87) Missing semicolon. (@babel/semi)
(#96) Missing semicolon. (@babel/semi)
(#97) Trailing spaces not allowed. (no-trailing-spaces)
(#98) Missing semicolon. (@babel/semi)
(#99) Missing semicolon. (@babel/semi)
(#101) Missing semicolon. (@babel/semi)
(#104) Missing semicolon. (@babel/semi)
(#105) Missing semicolon. (@babel/semi)
(#106) Missing semicolon. (@babel/semi)
(#108) Missing semicolon. (@babel/semi)
(#110) Missing semicolon. (@babel/semi)
(#112) Missing semicolon. (@babel/semi)
(#113) Missing semicolon. (@babel/semi)
(#114) Missing semicolon. (@babel/semi)
(#116) Missing JSDoc @param "blockId" declaration. (jsdoc/require-param)
(#120) 'chatData' is not defined. (no-undef)
(#120) Missing semicolon. (@babel/semi)
(#121) 'chatData' is not defined. (no-undef)
(#122) 'chatData' is not defined. (no-undef)
(#122) 'chatData' is not defined. (no-undef)
(#122) Missing semicolon. (@babel/semi)
(#123) 'chatData' is not defined. (no-undef)
(#124) 'chatData' is not defined. (no-undef)
(#124) Missing semicolon. (@babel/semi)
(#125) 'chatData' is not defined. (no-undef)
(#128) Missing semicolon. (@babel/semi)
(#129) Missing semicolon. (@babel/semi)
(#137) Identifier 'api_type' is not in camel case. (camelcase)
(#138) Missing semicolon. (@babel/semi)
(#139) Missing semicolon. (@babel/semi)
(#142) Identifier 'api_type' is not in camel case. (camelcase)
(#143) Missing semicolon. (@babel/semi)
(#145) Missing semicolon. (@babel/semi)
(#147) ["threadId"] is better written in dot notation. (dot-notation)
(#147) Missing semicolon. (@babel/semi)
(#150) Comments should not begin with a lowercase character. (capitalized-comments)
(#151) Missing semicolon. (@babel/semi)
(#153) Trailing spaces not allowed. (no-trailing-spaces)
(#155) Missing semicolon. (@babel/semi)
(#157) Missing semicolon. (@babel/semi)
(#158) Missing semicolon. (@babel/semi)
(#159) Missing semicolon. (@babel/semi)
(#160) Missing semicolon. (@babel/semi)
(#173) Missing semicolon. (@babel/semi)
(#174) Missing semicolon. (@babel/semi)
(#175) Missing semicolon. (@babel/semi)
(#178) Missing semicolon. (@babel/semi)
(#180) Missing semicolon. (@babel/semi)
(#184) Each then() should return a value or throw (promise/always-return)
(#185) Missing semicolon. (@babel/semi)
(#187) ["threadId"] is better written in dot notation. (dot-notation)
(#187) Missing semicolon. (@babel/semi)
(#191) Unexpected console statement. (no-console)
(#191) Missing semicolon. (@babel/semi)
(#192) Missing semicolon. (@babel/semi)
(#194) Missing semicolon. (@babel/semi)
(#197) Unexpected console statement. (no-console)
(#197) Missing semicolon. (@babel/semi)
(#198) Missing semicolon. (@babel/semi)
(#199) Missing semicolon. (@babel/semi)
(#200) Missing semicolon. (@babel/semi)
(#201) Missing semicolon. (@babel/semi)
(#209) Missing semicolon. (@babel/semi)
(#212) Missing semicolon. (@babel/semi)
(#215) 'userName' is not defined. (no-undef)
(#215) Missing semicolon. (@babel/semi)
(#217) 'assistantName' is not defined. (no-undef)
(#217) Missing semicolon. (@babel/semi)
(#219) Missing semicolon. (@babel/semi)
(#220) Missing semicolon. (@babel/semi)
(#222) Missing semicolon. (@babel/semi)
(#223) Missing semicolon. (@babel/semi)
blocks/openai_chat/amd/src/settings.js
(#2) 'e' is defined but never used. (no-unused-vars)
(#4) Missing semicolon. (@babel/semi)
(#5) Missing semicolon. (@babel/semi)
(#6) Missing semicolon. (@babel/semi)
(#7) Missing semicolon. (@babel/semi)
(#8) Missing semicolon. (@babel/semi)

CSS problems

(7 errors, 1 warnings)

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

blocks/openai_chat/styles.css
(#35) Expected single space before "{" (block-opening-brace-space-before)
(#188) Expected "#ff0000" to be "#f00" (color-hex-length)
(#158) Unexpected !important (declaration-no-important)
(#168) Unexpected !important (declaration-no-important)
(#182) Unexpected !important (declaration-no-important)
(#211) Unexpected !important (declaration-no-important)
(#214) Unexpected !important (declaration-no-important)
(#241) Unexpected !important (declaration-no-important)

PHPDocs style problems

(10 errors, 0 warnings)

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

blocks/openai_chat/classes/completion.php
(#50) Phpdocs for function completion::__construct has incomplete parameters list
(#94) Phpdocs for function completion::get_setting has incomplete parameters list
(#108) Phpdocs for function completion::build_source_of_truth has incomplete parameters list
blocks/openai_chat/classes/completion/assistant.php
(#44) Phpdocs for function assistant::create_completion has incomplete parameters list
blocks/openai_chat/classes/completion/azure.php
(#44) Phpdocs for function azure::create_completion has incomplete parameters list
(#65) Phpdocs for function azure::make_api_call has incomplete parameters list
blocks/openai_chat/classes/completion/chat.php
(#36) Phpdocs for function chat::create_completion has incomplete parameters list
(#70) Phpdocs for function chat::make_api_call has incomplete parameters list
blocks/openai_chat/lib.php
(#42) Phpdocs for function fetch_assistants_array has incomplete parameters list
(#138) Phpdocs for function log_message has incomplete parameters list

Update savepoints problems

(1 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

blocks/openai_chat/db/upgrade.php
version 2024040800 has wrong savepoint call with version 2024040401

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

(2 errors, 0 warnings)

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

blocks/openai_chat/templates/control_bar.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/openai_chat/templates/report_page.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]