Skip to content

Commit

Permalink
fix lint flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed Dec 4, 2023
1 parent 2a2f0ba commit f1105d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
go-version: 1.21.4

- name: lint
run: golangci-lint run -v --config golangci.yml --timeout 5m
run: make lint
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ race: dep ## Run data race detector
@go test -race ./... -count=1

install-linter: ## Install golangci-lint
@go install github.com/golangci/golangci-lint/cmd/[email protected]
@mkdir -p bin
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin v1.55.2
@bin/golangci-lint --version

lint: install-linter ## Lint the files
./scripts/golint.sh
Expand Down
2 changes: 0 additions & 2 deletions scripts/golint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin v1.55.2
bin/golangci-lint --version
#https://golangci-lint.run/usage/quick-start/
bin/golangci-lint run -v --config golangci.yml --timeout 5m

0 comments on commit f1105d0

Please sign in to comment.