chore(deps): update all non-major dependencies #2961
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (27)
yaml/stage.go|91 col 5| return statements should not be cuddled if block has more than two lines (wsl)
yaml/stage.go|97 col 2| return statements should not be cuddled if block has more than two lines (wsl)
database/build.go|364 col 44| G115: integer overflow conversion int -> int32 (gosec)
database/build.go|365 col 44| G115: integer overflow conversion int -> int32 (gosec)
database/hook.go|200 col 42| G115: integer overflow conversion int -> int32 (gosec)
database/build.go|274 col 30| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build.go|275 col 15| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build.go|359 col 26| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|21 col 35| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|22 col 20| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|34 col 31| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|134 col 29| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|135 col 14| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|195 col 25| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|214 col 29| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|215 col 14| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|307 col 25| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|44 col 29| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|98 col 33| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|99 col 10| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|203 col 29| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|204 col 14| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|265 col 25| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|105 col 31| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|106 col 16| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|167 col 27| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
pipeline/ruleset.go|134 col 1| cyclomatic complexity 31 of func (*Rules).Match
is high (> 30) (gocyclo)
Filtered Findings (0)
Annotations
Check failure on line 91 in yaml/stage.go
github-actions / golangci
[golangci] yaml/stage.go#L91
return statements should not be cuddled if block has more than two lines (wsl)
Raw output
yaml/stage.go:91:5: return statements should not be cuddled if block has more than two lines (wsl)
return append(needs, "clone")
^
Check failure on line 97 in yaml/stage.go
github-actions / golangci
[golangci] yaml/stage.go#L97
return statements should not be cuddled if block has more than two lines (wsl)
Raw output
yaml/stage.go:97:2: return statements should not be cuddled if block has more than two lines (wsl)
return nil
^
Check failure on line 364 in database/build.go
github-actions / golangci
[golangci] database/build.go#L364
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/build.go:364:44: G115: integer overflow conversion int -> int32 (gosec)
Number: sql.NullInt32{Int32: int32(b.GetNumber()), Valid: true},
^
Check failure on line 365 in database/build.go
github-actions / golangci
[golangci] database/build.go#L365
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/build.go:365:44: G115: integer overflow conversion int -> int32 (gosec)
Parent: sql.NullInt32{Int32: int32(b.GetParent()), Valid: true},
^
Check failure on line 200 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L200
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/hook.go:200:42: G115: integer overflow conversion int -> int32 (gosec)
Number: sql.NullInt32{Int32: int32(h.GetNumber()), Valid: true},
^
Check failure on line 274 in database/build.go
github-actions / golangci
[golangci] database/build.go#L274
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:274:30: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
func (b *Build) ToLibrary() *library.Build {
^
Check failure on line 275 in database/build.go
github-actions / golangci
[golangci] database/build.go#L275
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:275:15: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
build := new(library.Build)
^
Check failure on line 359 in database/build.go
github-actions / golangci
[golangci] database/build.go#L359
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:359:26: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
func BuildFromLibrary(b *library.Build) *Build {
^
Check failure on line 21 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L21
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:21:35: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
func (b *BuildQueue) ToLibrary() *library.BuildQueue {
^
Check failure on line 22 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L22
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:22:20: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
buildQueue := new(library.BuildQueue)
^
Check failure on line 34 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L34
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:34:31: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
func BuildQueueFromLibrary(b *library.BuildQueue) *BuildQueue {
^
Check failure on line 134 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L134
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:134:29: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
func (h *Hook) ToLibrary() *library.Hook {
^
Check failure on line 135 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L135
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:135:14: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
hook := new(library.Hook)
^
Check failure on line 195 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L195
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:195:25: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
func HookFromLibrary(h *library.Hook) *Hook {
^
Check failure on line 214 in database/repo.go
github-actions / golangci
[golangci] database/repo.go#L214
SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/repo.go:214:29: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
func (r *Repo) ToLibrary() *library.Repo {
^
Check failure on line 215 in database/repo.go
github-actions / golangci
[golangci] database/repo.go#L215
SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/repo.go:215:14: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
repo := new(library.Repo)
^
Check failure on line 307 in database/repo.go
github-actions / golangci
[golangci] database/repo.go#L307
SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/repo.go:307:25: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
func RepoFromLibrary(r *library.Repo) *Repo {
^
Check failure on line 44 in database/schedule.go
github-actions / golangci
[golangci] database/schedule.go#L44
SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:44:29: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
func ScheduleFromLibrary(s *library.Schedule) *Schedule {
^
Check failure on line 98 in database/schedule.go
github-actions / golangci
[golangci] database/schedule.go#L98
SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:98:33: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
func (s *Schedule) ToLibrary() *library.Schedule {
^
Check failure on line 99 in database/schedule.go
github-actions / golangci
[golangci] database/schedule.go#L99
SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:99:10: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
return &library.Schedule{
^
Check failure on line 203 in database/user.go
github-actions / golangci
[golangci] database/user.go#L203
SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/user.go:203:29: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
func (u *User) ToLibrary() *library.User {
^
Check failure on line 204 in database/user.go
github-actions / golangci
[golangci] database/user.go#L204
SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/user.go:204:14: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
user := new(library.User)
^
Check failure on line 265 in database/user.go
github-actions / golangci
[golangci] database/user.go#L265
SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/user.go:265:25: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
func UserFromLibrary(u *library.User) *User {
^
Check failure on line 105 in database/worker.go
github-actions / golangci
[golangci] database/worker.go#L105
SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/worker.go:105:31: SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
func (w *Worker) ToLibrary() *library.Worker {
^
Check failure on line 106 in database/worker.go
github-actions / golangci
[golangci] database/worker.go#L106
SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/worker.go:106:16: SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
worker := new(library.Worker)
^