Fix #1033 #2319
Triggered via pull request
September 22, 2024 23:39
Status
Failure
Total duration
2m 33s
Artifacts
–
Annotations
10 errors
Lint:
llms/anthropic/anthropicllm.go#L308
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
|
Lint:
llms/anthropic/anthropicllm.go#L350
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
|
Lint:
llms/openai/openaillm.go#L74
typeSwitchVar: 1 case can benefit from type switch with assignment (gocritic)
|
Lint:
llms/anthropic/internal/anthropicclient/messages.go#L437
var-naming: var asJson should be asJSON (revive)
|
Lint:
llms/anthropic/anthropicllm.go#L332
getToolResponse - result 1 (error) is always nil (unparam)
|
Lint:
llms/anthropic/anthropicllm.go#L339
unnecessary trailing newline (whitespace)
|
Lint:
llms/anthropic/internal/anthropicclient/messages.go#L284
calculated cyclomatic complexity for function processStreamEvent is 15, max is 12 (cyclop)
|
Lint:
llms/anthropic/anthropicllm.go#L310
type assertion must be checked (forcetypeassert)
|
Lint:
llms/anthropic/anthropicllm.go#L352
type assertion must be checked (forcetypeassert)
|
Lint:
llms/openai/openaillm.go#L76
type assertion must be checked (forcetypeassert)
|