Skip to content

Commit

Permalink
Bump linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-jokic committed Apr 24, 2024
1 parent 856ed48 commit e85121b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
run:
timeout: 3m
output:
format: github-actions
formats:
- format: github-actions
path: stdout
linters-settings:
errcheck:
exclude-functions:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ endif
all: manager

lint:
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.55.2 golangci-lint run
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.57.2 golangci-lint run

GO_TEST_ARGS ?= -short

Expand Down
4 changes: 3 additions & 1 deletion controllers/actions.github.com/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const defaultGitHubToken = "gh_token"

func startManagers(t ginkgo.GinkgoTInterface, first manager.Manager, others ...manager.Manager) {
for _, mgr := range append([]manager.Manager{first}, others...) {
SetupIndexers(mgr)
if err := SetupIndexers(mgr); err != nil {
t.Fatalf("failed to setup indexers: %v", err)
}
ctx, cancel := context.WithCancel(context.Background())

g, ctx := errgroup.WithContext(ctx)
Expand Down

0 comments on commit e85121b

Please sign in to comment.