chore: Add short scripts used to fetch all currently opened issues #214
reviewdog-golanglint-ci.yml
on: pull_request
reviewdog
2m 1s
Annotations
7 errors
reviewdog:
pkg/scripts/issues/file/main.go#L138
[golangci] reported by reviewdog 🐶
Error return value of `w.WriteAll` is not checked (errcheck)
Raw Output:
pkg/scripts/issues/file/main.go:138:12: Error return value of `w.WriteAll` is not checked (errcheck)
w.WriteAll(data)
^
|
reviewdog:
pkg/scripts/issues/file/main.go#L122
[golangci] reported by reviewdog 🐶
commentFormatting: put a space between `//` and comment text (gocritic)
Raw Output:
pkg/scripts/issues/file/main.go:122:4: commentFormatting: put a space between `//` and comment text (gocritic)
//strconv.Itoa(issue.ID),
^
|
reviewdog:
pkg/scripts/issues/gh/main.go#L50
[golangci] reported by reviewdog 🐶
assignOp: replace `page = page + 1` with `page++` (gocritic)
Raw Output:
pkg/scripts/issues/gh/main.go:50:4: assignOp: replace `page = page + 1` with `page++` (gocritic)
page = page + 1
^
|
reviewdog:
pkg/scripts/issues/gh/main.go#L101
[golangci] reported by reviewdog 🐶
File is not `gofumpt`-ed (gofumpt)
Raw Output:
pkg/scripts/issues/gh/main.go:101: File is not `gofumpt`-ed (gofumpt)
_ = os.WriteFile("issues.json", bytes, 0644)
|
reviewdog:
pkg/scripts/issues/file/main.go#L119
[golangci] reported by reviewdog 🐶
Consider pre-allocating `data` (prealloc)
Raw Output:
pkg/scripts/issues/file/main.go:119:2: Consider pre-allocating `data` (prealloc)
var data [][]string
^
|
reviewdog:
pkg/scripts/issues/file/main.go#L112
[golangci] reported by reviewdog 🐶
SA5001: should check returned error before deferring file.Close() (staticcheck)
Raw Output:
pkg/scripts/issues/file/main.go:112:2: SA5001: should check returned error before deferring file.Close() (staticcheck)
defer file.Close()
^
|
reviewdog
reviewdog exited with status code: 1
|