Skip to content

Add test and CI

Add test and CI #2

Re-run triggered November 14, 2023 01:08
Status Failure
Total duration 1m 4s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/command/ssh.go#L126
G106: Use of ssh InsecureIgnoreHostKey should be audited (gosec)
lint: pkg/command/summary.go#L55
G107: Potential HTTP request made with variable url (gosec)
lint: pkg/chatgpt/ai.go#L1
the average complexity for the package chatgpt is 1.857143, max is 0.500000 (cyclop)
lint: pkg/color/color.go#L1
the average complexity for the package color is 1.333333, max is 0.500000 (cyclop)
lint: pkg/command/trans.go#L1
the average complexity for the package command is 2.015152, max is 0.500000 (cyclop)
lint: main.go#L62
calculated cyclomatic complexity for function main is 13, max is 10 (cyclop)
lint: main.go#L1
the average complexity for the package main is 5.666667, max is 0.500000 (cyclop)
lint: pkg/chatgpt/ai.go#L14
type must not be placed after const (desired order: type,const,var,func) (decorder)
lint: pkg/command/code.go#L25
type must not be placed after var (desired order: type,const,var,func) (decorder)
lint: pkg/command/command.go#L10
type must not be placed after var (desired order: type,const,var,func) (decorder)