Fix cuddling linter warnings #481
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (3)
internal/slice/slice.go|21 col 1| exported: exported function StartsWithAnyOf should have comment or be unexported (revive)
internal/github/action.go|82 col 6| type specified
is unused (unused)
internal/github/action.go|11 col 2| SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
Filtered Findings (0)
Annotations
Check failure on line 21 in internal/slice/slice.go
github-actions / golangci
[golangci] internal/slice/slice.go#L21
exported: exported function StartsWithAnyOf should have comment or be unexported (revive)
Raw output
internal/slice/slice.go:21:1: exported: exported function StartsWithAnyOf should have comment or be unexported (revive)
func StartsWithAnyOf(prefixes []string, candidate string) bool {
^
Check failure on line 82 in internal/github/action.go
github-actions / golangci
[golangci] internal/github/action.go#L82
type `specified` is unused (unused)
Raw output
internal/github/action.go:82:6: type `specified` is unused (unused)
type specified func() []string
^
Check failure on line 11 in internal/github/action.go
github-actions / golangci
[golangci] internal/github/action.go#L11
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
Raw output
internal/github/action.go:11:2: SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
"io/ioutil"
^