Switch to golangci-lint
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
parent
f2b6c31d0f
commit
2b521e25a7
21
.golangci.yml
Normal file
21
.golangci.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- structcheck
|
||||||
|
- varcheck
|
||||||
|
- staticcheck
|
||||||
|
- unconvert
|
||||||
|
- gofmt
|
||||||
|
- goimports
|
||||||
|
- golint
|
||||||
|
- ineffassign
|
||||||
|
- vet
|
||||||
|
- unused
|
||||||
|
- misspell
|
||||||
|
disable:
|
||||||
|
- errcheck
|
||||||
|
|
||||||
|
run:
|
||||||
|
skip-dirs:
|
||||||
|
- api
|
||||||
|
- design
|
||||||
|
- docs
|
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"Vendor": true,
|
|
||||||
"Deadline": "2m",
|
|
||||||
"Sort": ["linter", "severity", "path", "line"],
|
|
||||||
"Exclude": [
|
|
||||||
".*\\.pb\\.go",
|
|
||||||
"fetch\\.go:.*::error: unrecognized printf verb 'r'"
|
|
||||||
],
|
|
||||||
"EnableGC": true,
|
|
||||||
|
|
||||||
"Enable": [
|
|
||||||
"structcheck",
|
|
||||||
"varcheck",
|
|
||||||
"staticcheck",
|
|
||||||
"unconvert",
|
|
||||||
|
|
||||||
"gofmt",
|
|
||||||
"goimports",
|
|
||||||
"golint",
|
|
||||||
"ineffassign",
|
|
||||||
"vet"
|
|
||||||
]
|
|
||||||
}
|
|
2
Makefile
2
Makefile
@ -121,7 +121,7 @@ all: binaries
|
|||||||
|
|
||||||
check: proto-fmt ## run all linters
|
check: proto-fmt ## run all linters
|
||||||
@echo "$(WHALE) $@"
|
@echo "$(WHALE) $@"
|
||||||
gometalinter --config .gometalinter.json ./...
|
golangci-lint run
|
||||||
|
|
||||||
ci: check binaries checkprotos coverage coverage-integration ## to be used by the CI
|
ci: check binaries checkprotos coverage coverage-integration ## to be used by the CI
|
||||||
|
|
||||||
|
@ -21,6 +21,5 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
go get -u github.com/stevvooe/protobuild
|
go get -u github.com/stevvooe/protobuild
|
||||||
go get -u github.com/alecthomas/gometalinter
|
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
gometalinter --install >/dev/null
|
|
||||||
go get -u github.com/cpuguy83/go-md2man
|
go get -u github.com/cpuguy83/go-md2man
|
||||||
|
Loading…
Reference in New Issue
Block a user