Skip to content

Commit

Permalink
replace golint with golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed May 31, 2024
1 parent 28a0dbc commit e8ae554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
version: v1.59
only-new-issues: true
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,10 @@ htmlcov:
go test -v -coverpkg=./... -coverprofile=c.out ./...
go tool cover -html ./c.out

.PHONY: golangci-lint
golangci-lint:
$(info INFO: Starting build $@)
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --timeout 5m $(pkgs)

lint:
$(info INFO: Starting build $@)
golint $(pkgs) || true
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --timeout 5m $(pkgs) || true

vet:
$(info INFO: Starting build $@)
Expand Down

0 comments on commit e8ae554

Please sign in to comment.