Exclude file permissions line from gosec linting #2968
Annotations
15 errors and 1 warning
[golangci] internal/slice/slice.go#L21:
internal/slice/slice.go#L21
exported: exported function StartsWithAnyOf should have comment or be unexported (revive)
|
[golangci] internal/github/action.go#L82:
internal/github/action.go#L82
type `specified` is unused (unused)
|
[golangci] internal/github/pullrequest/labels.go#L7:
internal/github/pullrequest/labels.go#L7
import 'github.com/agilepathway/label-checker/internal/error/panic' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/pullrequest/labels.go#L8:
internal/github/pullrequest/labels.go#L8
import 'github.com/agilepathway/label-checker/internal/slice' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/pullrequest/pull_request.go#L9:
internal/github/pullrequest/pull_request.go#L9
import 'github.com/agilepathway/label-checker/internal/error/panic' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/pullrequest/pull_request.go#L10:
internal/github/pullrequest/pull_request.go#L10
import 'github.com/shurcooL/githubv4' is not allowed from list 'Main' (depguard)
|
[golangci] label_checker.go#L7:
label_checker.go#L7
import 'github.com/agilepathway/label-checker/internal/github' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/action.go#L16:
internal/github/action.go#L16
import 'github.com/agilepathway/label-checker/internal/error/panic' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/action.go#L17:
internal/github/action.go#L17
import 'github.com/agilepathway/label-checker/internal/github/pullrequest' is not allowed from list 'Main' (depguard)
|
[golangci] internal/github/action.go#L130:
internal/github/action.go#L130
mnd: Magic number: 0o644, in <argument> detected (gomnd)
|
[golangci] internal/github/action.go#L11:
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)
|
[golangci] internal/github/pullrequest/labels.go#L32:
internal/github/pullrequest/labels.go#L32
return statements should not be cuddled if block has more than two lines (wsl)
|
[golangci] internal/github/action.go#L133:
internal/github/action.go#L133
only one cuddle assignment allowed before if statement (wsl)
|
[golangci] internal/github/action_test.go#L158:
internal/github/action_test.go#L158
expressions should not be cuddled with blocks (wsl)
|
[golangci] internal/github/action_test.go#L272:
internal/github/action_test.go#L272
return statements should not be cuddled if block has more than two lines (wsl)
|
Virtual
Restore cache failed: Dependencies file is not found in /home/runner/work/label-checker/label-checker. Supported file pattern: go.sum
|