Bump reviewdog/action-golangci-lint from 1.24 to 2.2 #2341
reviewdog.yml
on: push
runner / golangci-lint
23s
runner / hadolint
7s
runner / yamllint
16s
runner / shellcheck
4s
runner / misspell
14s
runner / languagetool
19s
Annotations
10 errors
runner / golangci-lint:
internal/github/action.go#L79
[golangci] reported by reviewdog 🐶
`specified` is unused (deadcode)
Raw Output:
internal/github/action.go:79:6: `specified` is unused (deadcode)
type specified func() []string
^
|
runner / golangci-lint:
internal/github/action.go#L128
[golangci] reported by reviewdog 🐶
Error return value of `githubOutputFile.Close` is not checked (errcheck)
Raw Output:
internal/github/action.go:128:25: Error return value of `githubOutputFile.Close` is not checked (errcheck)
githubOutputFile.Close()
^
|
runner / golangci-lint:
internal/github/action.go#L131
[golangci] reported by reviewdog 🐶
Error return value of `githubOutputFile.Close` is not checked (errcheck)
Raw Output:
internal/github/action.go:131:24: Error return value of `githubOutputFile.Close` is not checked (errcheck)
githubOutputFile.Close()
^
|
runner / golangci-lint:
internal/github/action_test.go#L17
[golangci] reported by reviewdog 🐶
File is not `gofmt`-ed with `-s` (gofmt)
Raw Output:
internal/github/action_test.go:17: File is not `gofmt`-ed with `-s` (gofmt)
//nolint: gochecknoglobals
|
runner / golangci-lint:
internal/github/action.go#L124
[golangci] reported by reviewdog 🐶
G302: Expect file permissions to be 0600 or less (gosec)
Raw Output:
internal/github/action.go:124:27: G302: Expect file permissions to be 0600 or less (gosec)
githubOutputFile, err := os.OpenFile(gitHubOutputFileName, os.O_APPEND|os.O_WRONLY, 0644)
^
|
runner / golangci-lint:
internal/github/pullrequest/labels.go#L30
[golangci] reported by reviewdog 🐶
line is 121 characters (lll)
Raw Output:
internal/github/pullrequest/labels.go:30: line is 121 characters (lll)
return false, "The label checker does not support prefix checking with `all_of`, as that is not a logical combination."
|
runner / golangci-lint:
internal/slice/slice.go#L21
[golangci] reported by reviewdog 🐶
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 {
^
|
runner / golangci-lint:
internal/github/action.go#L122
[golangci] reported by reviewdog 🐶
var-naming: don't use underscores in Go names; var label_check_output should be labelCheckOutput (revive)
Raw Output:
internal/github/action.go:122:2: var-naming: don't use underscores in Go names; var label_check_output should be labelCheckOutput (revive)
label_check_output := fmt.Sprintf("label_check=%s", result)
^
|
runner / golangci-lint:
internal/github/action.go#L95
[golangci] reported by reviewdog 🐶
unnecessary trailing newline (whitespace)
Raw Output:
internal/github/action.go:95: unnecessary trailing newline (whitespace)
}
|
runner / golangci-lint
reviewdog: Too many results (annotations) in diff.
You may miss some annotations due to GitHub limitation for annotation created by logging command.
Please check GitHub Actions log console to see all results.
Limitation:
- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren't created by users)
Source: https://github.community/t5/GitHub-Actions/Maximum-number-of-annotations-that-can-be-created-using-GitHub/m-p/39085
|