Skip to content

Commit 1fc7c28

Browse files
committed
fix linter
1 parent cd28bbb commit 1fc7c28

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

.golangci.yml

-18
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,8 @@ linters-settings:
55
min-complexity: 16
66
dupl:
77
threshold: 200
8-
goconst:
9-
min-len: 2
10-
min-occurrences: 2
118
misspell:
129
locale: US
13-
lll:
14-
line-length: 140
15-
gocritic:
16-
enabled-tags:
17-
- performance
18-
- style
19-
- experimental
20-
disabled-checks:
21-
- wrapperFunc
22-
- hugeParam
23-
- rangeValCopy
2410
revive:
2511
min-confidence: 0
2612

@@ -45,7 +31,6 @@ linters:
4531
- typecheck
4632
- unconvert
4733
- unparam
48-
fast: false
4934

5035
run:
5136
skip-dirs:
@@ -58,6 +43,3 @@ issues:
5843
linters:
5944
- gosec
6045
exclude-use-default: false
61-
62-
service:
63-
golangci-lint-version: 1.64.2

Makefile

+3-6
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ setup: check-go ## installs all dev and ci dependencies, but does not install go
5353
## Install golangci-lint
5454
## golangci-lint is not yet fully supporting gl v1.24, need to wait a bit. Should work after some time
5555
## skip linting until then
56-
ifeq (,$(wildcard $(GOLINT)))
57-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.64.2
58-
endif
59-
## "go get" won't work for newer go versions, need to use "go install github.com/rakyll/statik"
60-
ifeq (,$(wildcard $(GOPATH)/bin/statik))
56+
@echo "Installing golangci-lint v1.64.2..."
57+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.64.2
58+
@echo "Installing statik..."
6159
go install github.com/rakyll/statik@latest
62-
endif
6360

6461
lint: check-go static ## runs `golangci-lint` linters defined in `.golangci.yml` file
6562
$(GOLINT) run --out-format=tab --tests=false ./...

0 commit comments

Comments
 (0)