Skip to content

✨ GPT4o を用いるBOTの全体的な実装 #3

✨ GPT4o を用いるBOTの全体的な実装

✨ GPT4o を用いるBOTの全体的な実装 #3

Triggered via push May 15, 2024 06:02
Status Failure
Total duration 1m 1s
Artifacts

ci.yml

on: push
Lint
9s
Lint
Unit Test
23s
Unit Test
Integration Test
9s
Integration Test
Dependabot Automerge
0s
Dependabot Automerge
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 8 warnings
Integration Test
Process completed with exit code 2.
Lint: internal/gpt/gpt.go#L180
func `addMessageAsSystem` is unused (unused)
Lint: internal/gpt/gpt.go#L57
S1021: should merge variable declaration with assignment on next line (gosimple)
Lint: internal/gpt/gpt.go#L102
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
Lint: internal/gpt/gpt.go#L163
S1023: redundant `return` statement (gosimple)
Lint: internal/gpt/gpt.go#L84
ineffectual assignment to err (ineffassign)
Lint: internal/bot/bot.go#L40
return with no blank line before (nlreturn)
Lint: internal/bot/bot.go#L50
return with no blank line before (nlreturn)
Lint: internal/bot/bot.go#L56
return with no blank line before (nlreturn)
Lint: internal/gpt/gpt.go#L81
break with no blank line before (nlreturn)
Lint: internal/gpt/gpt.go#L86
break with no blank line before (nlreturn)
Lint: internal/bot/message.go#L104
var-naming: func parameter messageId should be messageID (revive)
Lint: internal/bot/message.go#L109
var-naming: func parameter messageId should be messageID (revive)
Lint: internal/bot/bot.go#L47
exported: func name will be used as bot.BotJoin by other packages, and that stutters; consider calling this Join (revive)
Lint: internal/bot/bot.go#L53
exported: func name will be used as bot.BotLeave by other packages, and that stutters; consider calling this Leave (revive)
Lint: internal/bot/bot.go#L82
exported: func name will be used as bot.BotToUser by other packages, and that stutters; consider calling this ToUser (revive)
Lint: internal/bot/bot.go#L95
exported: func name will be used as bot.BotStateToUserState by other packages, and that stutters; consider calling this StateToUserState (revive)
Lint: internal/bot/bot.go#L7
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
Lint: internal/gpt/gpt.go#L45
var-naming: func getApiKey should be getAPIKey (revive)