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

(323 errors, 127 warnings)

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

blocks/openai_chatbot/block_openai_chatbot.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#38) Whitespace found at end of line
(#45) Whitespace found at end of line
(#55) Whitespace found at end of line
(#56) Parentheses must be used when instantiating a new class
(#59) Whitespace found at end of line
(#62) Whitespace found at end of line
(#69) global $PAGE cannot be used in block classes. Use $this->page.
(#70) Whitespace found at end of line
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) global $PAGE cannot be used in block classes. Use $this->page.
(#73) global $PAGE cannot be used in block classes. Use $this->page.
(#74) Whitespace found at end of line
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Variable "bot_name" must not contain underscores.
(#77) Whitespace found at end of line
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Variable "bot_name" must not contain underscores.
(#83) Whitespace found at end of line
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) global $PAGE cannot be used in block classes. Use $this->page.
(#88) Whitespace found at end of line
(#97) Whitespace found at end of line
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Whitespace found at end of line
(#105) Whitespace found at end of line
(#108) Whitespace found at end of line
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) Variable "contextual_question" must not contain underscores.
(#113) Whitespace found at end of line
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Variable "thread_response" must not contain underscores.
(#116) Variable "thread_response" must not contain underscores.
(#117) Variable "thread_response" must not contain underscores.
(#119) Variable "threadId" must be all lower-case
(#119) Variable "thread_response" must not contain underscores.
(#120) Whitespace found at end of line
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Variable "message_response" must not contain underscores.
(#122) Variable "threadId" must be all lower-case
(#122) Variable "contextual_question" must not contain underscores.
(#123) Variable "message_response" must not contain underscores.
(#124) Variable "message_response" must not contain underscores.
(#126) Whitespace found at end of line
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) Variable "run_response" must not contain underscores.
(#128) Variable "threadId" must be all lower-case
(#129) Variable "run_response" must not contain underscores.
(#130) Variable "run_response" must not contain underscores.
(#132) Whitespace found at end of line
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Variable "threadId" must be all lower-case
(#138) Whitespace found at end of line
(#143) Blank line found at end of control structure
(#143) Whitespace found at end of line
(#145) Line exceeds 132 characters; contains 160 characters
(#147) Whitespace found at end of line
(#150) Whitespace found at end of line
(#158) Whitespace found at end of line
(#162) Whitespace found at end of line
(#165) Whitespace found at end of line
(#169) Whitespace found at end of line
(#171) Line exceeds 132 characters; contains 142 characters
(#172) Whitespace found at end of line
(#175) Whitespace found at end of line
(#187) There should be a comma after the last array item in a multi-line array.
(#189) Whitespace found at end of line
(#190) Short array syntax must be used to define arrays
(#192) Whitespace found at end of line
(#194) Short array syntax must be used to define arrays
(#196) Whitespace found at end of line
(#198) Short array syntax must be used to define arrays
(#200) Whitespace found at end of line
(#209) Variable "threadId" must be all lower-case
(#214) There should be a comma after the last array item in a multi-line array.
(#216) Whitespace found at end of line
(#217) Short array syntax must be used to define arrays
(#219) There should be a comma after the last array item in a multi-line array.
(#221) Whitespace found at end of line
(#222) Variable "threadId" must be all lower-case
(#224) Whitespace found at end of line
(#226) Short array syntax must be used to define arrays
(#228) Whitespace found at end of line
(#229) Short array syntax must be used to define arrays
(#231) Whitespace found at end of line
(#240) Variable "threadId" must be all lower-case
(#240) Variable "assistantId" must be all lower-case
(#241) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) There should be a comma after the last array item in a multi-line array.
(#248) Whitespace found at end of line
(#249) Short array syntax must be used to define arrays
(#249) Variable "assistantId" must be all lower-case
(#250) Variable "threadId" must be all lower-case
(#252) Whitespace found at end of line
(#254) Short array syntax must be used to define arrays
(#256) Whitespace found at end of line
(#258) Variable "runId" must be all lower-case
(#259) Whitespace found at end of line
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
(#261) Variable "maxAttempts" must be all lower-case
(#263) Whitespace found at end of line
(#264) Variable "maxAttempts" must be all lower-case
(#267) Whitespace found at end of line
(#270) There should be a comma after the last array item in a multi-line array.
(#272) Whitespace found at end of line
(#273) Variable "threadId" must be all lower-case
(#273) Variable "runId" must be all lower-case
(#275) Whitespace found at end of line
(#277) Short array syntax must be used to define arrays
(#279) Whitespace found at end of line
(#280) Variable "runStatus" must be all lower-case
(#281) Variable "runStatus" must be all lower-case
(#282) Whitespace found at end of line
(#284) Short array syntax must be used to define arrays
(#285) Usage of ELSEIF not allowed; use ELSE IF instead
(#286) Short array syntax must be used to define arrays
(#289) Whitespace found at end of line
(#290) Short array syntax must be used to define arrays
(#292) Whitespace found at end of line
(#300) Variable "threadId" must be all lower-case
(#304) There should be a comma after the last array item in a multi-line array.
(#306) Whitespace found at end of line
(#307) Variable "threadId" must be all lower-case
(#309) Whitespace found at end of line
(#311) Short array syntax must be used to define arrays
(#313) Whitespace found at end of line
(#315) Whitespace found at end of line
(#316) Inline comments must end in full-stops, exclamation marks, or question marks
(#321) Short array syntax must be used to define arrays
(#325) Whitespace found at end of line
(#326) Short array syntax must be used to define arrays
(#328) Whitespace found at end of line
(#335) Short array syntax must be used to define arrays
(#337) Whitespace found at end of line
(#346) Whitespace found at end of line
(#355) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/classes/external.php
(#34) Opening brace must not be followed by a blank line
(#42) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#61) Short array syntax must be used to define arrays
(#64) There should be a comma after the last array item in a multi-line array.
(#70) Whitespace found at end of line
(#80) Short array syntax must be used to define arrays
(#81) Whitespace found at end of line
(#86) Whitespace found at end of line
(#89) Whitespace found at end of line
(#99) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#109) Variable "contextual_question" must not contain underscores.
(#112) Variable "contextual_question" must not contain underscores.
(#115) Blank line found at end of control structure
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) The use of function error_log() is forbidden; use debugging() instead
(#119) Whitespace found at end of line
(#120) Short array syntax must be used to define arrays
(#123) Line exceeds 132 characters; contains 139 characters
(#123) Whitespace found at end of line
(#124) There should be a comma after the last array item in a multi-line array.
(#135) Short array syntax must be used to define arrays
(#138) There should be a comma after the last array item in a multi-line array.
(#151) Variable "contextual_question" must not contain underscores.
(#151) Variable "original_question" must not contain underscores.
(#153) Variable "thread_response" must not contain underscores.
(#154) Variable "thread_response" must not contain underscores.
(#155) Variable "thread_response" must not contain underscores.
(#157) Variable "threadId" must be all lower-case
(#157) Variable "thread_response" must not contain underscores.
(#160) Variable "message_response" must not contain underscores.
(#160) Variable "threadId" must be all lower-case
(#160) Variable "contextual_question" must not contain underscores.
(#161) Variable "message_response" must not contain underscores.
(#162) Variable "message_response" must not contain underscores.
(#166) Variable "run_response" must not contain underscores.
(#166) Variable "threadId" must be all lower-case
(#167) Variable "run_response" must not contain underscores.
(#168) Variable "run_response" must not contain underscores.
(#172) Variable "threadId" must be all lower-case
(#183) Short array syntax must be used to define arrays
(#186) There should be a comma after the last array item in a multi-line array.
(#204) Whitespace found at end of line
(#208) Whitespace found at end of line
(#210) Line exceeds 132 characters; contains 153 characters
(#211) Whitespace found at end of line
(#229) There should be a comma after the last array item in a multi-line array.
(#231) Whitespace found at end of line
(#232) Short array syntax must be used to define arrays
(#234) Whitespace found at end of line
(#236) Short array syntax must be used to define arrays
(#238) Whitespace found at end of line
(#240) Short array syntax must be used to define arrays
(#250) Variable "threadId" must be all lower-case
(#255) There should be a comma after the last array item in a multi-line array.
(#257) Whitespace found at end of line
(#258) Short array syntax must be used to define arrays
(#260) There should be a comma after the last array item in a multi-line array.
(#262) Whitespace found at end of line
(#263) Variable "threadId" must be all lower-case
(#265) Whitespace found at end of line
(#267) Short array syntax must be used to define arrays
(#269) Whitespace found at end of line
(#270) Short array syntax must be used to define arrays
(#280) Variable "threadId" must be all lower-case
(#280) Variable "assistantId" must be all lower-case
(#286) There should be a comma after the last array item in a multi-line array.
(#288) Whitespace found at end of line
(#289) Short array syntax must be used to define arrays
(#289) Variable "assistantId" must be all lower-case
(#290) Variable "threadId" must be all lower-case
(#292) Whitespace found at end of line
(#294) Short array syntax must be used to define arrays
(#294) Line exceeds 132 characters; contains 135 characters
(#296) Whitespace found at end of line
(#298) Whitespace found at end of line
(#300) Short array syntax must be used to define arrays
(#302) Whitespace found at end of line
(#304) Short array syntax must be used to define arrays
(#306) Whitespace found at end of line
(#307) Variable "runId" must be all lower-case
(#308) Whitespace found at end of line
(#310) Variable "maxAttempts" must be all lower-case
(#312) Whitespace found at end of line
(#313) Variable "maxAttempts" must be all lower-case
(#316) Whitespace found at end of line
(#319) There should be a comma after the last array item in a multi-line array.
(#321) Whitespace found at end of line
(#322) Variable "threadId" must be all lower-case
(#322) Variable "runId" must be all lower-case
(#324) Whitespace found at end of line
(#326) Short array syntax must be used to define arrays
(#328) Whitespace found at end of line
(#329) Variable "runStatus" must be all lower-case
(#330) Whitespace found at end of line
(#332) Short array syntax must be used to define arrays
(#334) Whitespace found at end of line
(#335) Variable "runStatus" must be all lower-case
(#336) Short array syntax must be used to define arrays
(#338) Whitespace found at end of line
(#339) Variable "runStatus" must be all lower-case
(#340) Whitespace found at end of line
(#342) Short array syntax must be used to define arrays
(#344) Variable "errorDetails" must be all lower-case
(#344) Variable "runStatus" must be all lower-case
(#344) Variable "runStatus" must be all lower-case
(#345) Short array syntax must be used to define arrays
(#345) Variable "errorDetails" must be all lower-case
(#347) Short array syntax must be used to define arrays
(#350) Whitespace found at end of line
(#351) Short array syntax must be used to define arrays
(#351) Variable "maxAttempts" must be all lower-case
(#360) Variable "threadId" must be all lower-case
(#364) There should be a comma after the last array item in a multi-line array.
(#366) Whitespace found at end of line
(#367) Variable "threadId" must be all lower-case
(#369) Whitespace found at end of line
(#371) Short array syntax must be used to define arrays
(#373) Whitespace found at end of line
(#375) Whitespace found at end of line
(#376) Inline comments must end in full-stops, exclamation marks, or question marks
(#378) Short array syntax must be used to define arrays
(#380) Whitespace found at end of line
(#381) Inline comments must end in full-stops, exclamation marks, or question marks
(#383) Short array syntax must be used to define arrays
(#385) Whitespace found at end of line
(#386) Inline comments must end in full-stops, exclamation marks, or question marks
(#393) Short array syntax must be used to define arrays
(#399) Whitespace found at end of line
(#400) Short array syntax must be used to define arrays
(#402) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/classes/output/chatbot_interface.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#38) Whitespace found at end of line
(#41) Whitespace found at end of line
(#44) Whitespace found at end of line
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Whitespace found at end of line
(#77) Whitespace found at end of line
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Whitespace found at end of line
(#82) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/classes/output/renderer.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Opening brace must not be followed by a blank line
(#46) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/classes/privacy/provider.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\data_provider; Found: \core_privacy\local\request\data_provider, \core_privacy\local\metadata\provider
(#37) Opening brace must not be followed by a blank line
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/db/access.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#44) There should be a comma after the last array item in a multi-line array.
(#46) There should be a comma after the last array item in a multi-line array.
(#48) Whitespace found at end of line
(#49) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
(#59) There should be a comma after the last array item in a multi-line array.
(#62) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/db/services.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#46) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Whitespace found at end of line
(#43) Whitespace found at end of line
(#49) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/index.php
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Whitespace found at end of line
(#52) Whitespace found at end of line
(#54) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) Whitespace found at end of line
(#55) Opening parenthesis of a multi-line function call must be the last content on the line
(#55) Whitespace found at end of line
(#56) Only one argument is allowed per line in a multi-line function call
(#56) Closing parenthesis of a multi-line function call must be on a line by itself
(#61) Whitespace found at end of line
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Whitespace found at end of line
(#66) Whitespace found at end of line
(#74) Whitespace found at end of line
(#76) Opening parenthesis of a multi-line function call must be the last content on the line
(#76) Whitespace found at end of line
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Whitespace found at end of line
(#78) Only one argument is allowed per line in a multi-line function call
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#83) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/lang/en/block_openai_chatbot.php
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) The string key "openai_chatbot" is not in the correct order, it should be before "pluginname"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) The string key "chatbot_title" is not in the correct order, it should be before "openai_chatbot:myaddinstance"
(#34) The string key "input_placeholder" is not in the correct order, it should be before "welcome_message"
(#35) The string key "ask_button" is not in the correct order, it should be before "input_placeholder"
(#37) The string key "error_prefix" is not in the correct order, it should be before "response_header"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) The string key "config_missing" is not in the correct order, it should be before "error_prefix"
(#42) Unexpected comment found. Auto-fixing will not work after this comment
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) The string key "settings_bot_name" is not in the correct order, it should be before "settings_general_desc"
(#47) The string key "settings_apikey" is not in the correct order, it should be before "settings_bot_name_desc"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) The string key "js_thinking" is not in the correct order, it should be before "settings_max_response_time_desc"
(#59) The string key "js_assistant_thinking" is not in the correct order, it should be before "js_writing"
(#64) Unexpected comment found. Auto-fixing will not work after this comment
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) The string key "privacy:metadata:openai:course_context" is not in the correct order, it should be before "privacy:metadata:openai:question"
(#70) Unexpected comment found. Auto-fixing will not work after this comment
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) The string key "no_config" is not in the correct order, it should be before "privacy:metadata:openai:course_context"
(#72) The string key "no_answer" is not in the correct order, it should be before "no_config"
(#74) The string key "create_thread_error" is not in the correct order, it should be before "timeout_error"
(#75) The string key "create_run_error" is not in the correct order, it should be before "create_thread_error"
(#77) The string key "network_error" is not in the correct order, it should be before "openai_api_error"
(#79) Unexpected comment found. Auto-fixing will not work after this comment
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Unexpected comment found. Auto-fixing will not work after this comment
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) The string key "invalid_context" is not in the correct order, it should be before "openai_chatbot:view"
(#84) The string key "invalid_block_instance" is not in the correct order, it should be before "invalid_context"
(#86) The string key "error_message" is not in the correct order, it should be before "question_empty"
(#89) Unexpected comment found. Auto-fixing will not work after this comment
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) The string key "js_writing_fallback" is not in the correct order, it should be before "strong_error"
(#91) The string key "js_thinking_fallback" is not in the correct order, it should be before "js_writing_fallback"
(#92) The string key "js_assistant_thinking_fallback" is not in the correct order, it should be before "js_thinking_fallback"
(#95) The string key "js_ask_button_fallback" is not in the correct order, it should be before "js_network_error"
(#96) Unexpected string end, it should be a line feed after a semicolon
(#96) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/lang/es/block_openai_chatbot.php
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) The string key "openai_chatbot" is not in the correct order, it should be before "pluginname"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) The string key "chatbot_title" is not in the correct order, it should be before "openai_chatbot:myaddinstance"
(#34) The string key "input_placeholder" is not in the correct order, it should be before "welcome_message"
(#35) The string key "ask_button" is not in the correct order, it should be before "input_placeholder"
(#37) The string key "error_prefix" is not in the correct order, it should be before "response_header"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) The string key "config_missing" is not in the correct order, it should be before "error_prefix"
(#42) Unexpected comment found. Auto-fixing will not work after this comment
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) The string key "js_assistant_thinking" is not in the correct order, it should be before "js_writing"
(#50) Unexpected comment found. Auto-fixing will not work after this comment
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) The string key "settings_bot_name" is not in the correct order, it should be before "settings_general_desc"
(#55) The string key "settings_apikey" is not in the correct order, it should be before "settings_bot_name_desc"
(#64) Unexpected comment found. Auto-fixing will not work after this comment
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) The string key "privacy:metadata" is not in the correct order, it should be before "settings_max_response_time_desc"
(#68) The string key "privacy:metadata:openai:course_context" is not in the correct order, it should be before "privacy:metadata:openai:question"
(#70) Unexpected comment found. Auto-fixing will not work after this comment
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) The string key "no_config" is not in the correct order, it should be before "privacy:metadata:openai:course_context"
(#72) The string key "no_answer" is not in the correct order, it should be before "no_config"
(#74) The string key "create_thread_error" is not in the correct order, it should be before "timeout_error"
(#75) The string key "create_run_error" is not in the correct order, it should be before "create_thread_error"
(#77) The string key "network_error" is not in the correct order, it should be before "openai_api_error"
(#79) Unexpected comment found. Auto-fixing will not work after this comment
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Unexpected comment found. Auto-fixing will not work after this comment
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) The string key "invalid_context" is not in the correct order, it should be before "openai_chatbot:view"
(#84) The string key "invalid_block_instance" is not in the correct order, it should be before "invalid_context"
(#86) The string key "error_message" is not in the correct order, it should be before "question_empty"
(#89) Unexpected comment found. Auto-fixing will not work after this comment
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) The string key "js_writing_fallback" is not in the correct order, it should be before "strong_error"
(#91) The string key "js_thinking_fallback" is not in the correct order, it should be before "js_writing_fallback"
(#92) The string key "js_assistant_thinking_fallback" is not in the correct order, it should be before "js_thinking_fallback"
(#95) The string key "js_ask_button_fallback" is not in the correct order, it should be before "js_network_error"
(#96) Unexpected string end, it should be a line feed after a semicolon
(#96) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/settings.php
(#27) Blank line found at start of control structure
(#28) Whitespace found at end of line
(#30) Whitespace found at end of line
(#36) Whitespace found at end of line
(#44) Whitespace found at end of line
(#52) Whitespace found at end of line
(#60) Whitespace found at end of line
(#67) Whitespace found at end of line
(#75) Whitespace found at end of line
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Expected 1 newline at end of file; 0 found
blocks/openai_chatbot/version.php
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Short array syntax must be used to define arrays
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Expected 1 newline at end of file; 0 found

Javascript coding style problems

(8 errors, 34 warnings)

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

blocks/openai_chatbot/amd/src/chatbot.js
(#19) @package should be empty. (jsdoc/empty-tags)
(#55) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#63) Each then() should return a value or throw (promise/always-return)
(#67) Avoid nesting promises. (promise/no-nesting)
(#67) Avoid nesting promises. (promise/no-nesting)
(#67) Each then() should return a value or throw (promise/always-return)
(#73) Trailing spaces not allowed. (no-trailing-spaces)
(#76) Trailing spaces not allowed. (no-trailing-spaces)
(#79) Each then() should return a value or throw (promise/always-return)
(#89) Avoid nesting promises. (promise/no-nesting)
(#89) Avoid nesting promises. (promise/no-nesting)
(#89) Each then() should return a value or throw (promise/always-return)
(#110) Each then() should return a value or throw (promise/always-return)
(#114) Avoid nesting promises. (promise/no-nesting)
(#114) Avoid nesting promises. (promise/no-nesting)
(#114) Each then() should return a value or throw (promise/always-return)
(#120) Trailing spaces not allowed. (no-trailing-spaces)
(#121) Each then() should return a value or throw (promise/always-return)
(#132) Avoid nesting promises. (promise/no-nesting)
(#132) Avoid nesting promises. (promise/no-nesting)
(#132) Each then() should return a value or throw (promise/always-return)
(#172) Each then() should return a value or throw (promise/always-return)
(#177) Avoid nesting promises. (promise/no-nesting)
(#177) Avoid nesting promises. (promise/no-nesting)
(#177) Each then() should return a value or throw (promise/always-return)
(#186) 'error' is defined but never used. (no-unused-vars)
(#188) Avoid using promises inside of callbacks. (promise/no-promise-in-callback)
(#188) Avoid using promises inside of callbacks. (promise/no-promise-in-callback)
(#188) Each then() should return a value or throw (promise/always-return)
(#193) Avoid nesting promises. (promise/no-nesting)
(#193) Avoid using promises inside of callbacks. (promise/no-promise-in-callback)
(#193) Avoid nesting promises. (promise/no-nesting)
(#193) Avoid using promises inside of callbacks. (promise/no-promise-in-callback)
(#193) Each then() should return a value or throw (promise/always-return)
(#205) Trailing spaces not allowed. (no-trailing-spaces)
(#211) Each then() should return a value or throw (promise/always-return)
(#215) Avoid nesting promises. (promise/no-nesting)
(#215) Avoid nesting promises. (promise/no-nesting)
(#215) Each then() should return a value or throw (promise/always-return)
(#222) Trailing spaces not allowed. (no-trailing-spaces)
(#243) Statement inside of curly braces should be on next line. (brace-style)
(#243) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)

CSS problems

(2 errors, 0 warnings)

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

blocks/openai_chatbot/styles.css
(#137) Expected newline after "," (selector-list-comma-newline-after)
(#137) Expected newline after "," (selector-list-comma-newline-after)

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 "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]