build(linter): add .golangci.yml
This commit is contained in:
parent
006911d3f7
commit
2bb82e8d81
|
@ -28,7 +28,7 @@ jobs:
|
|||
bash scripts/prepare.sh
|
||||
|
||||
- name: Run golangci-lint
|
||||
run: make linter
|
||||
uses: Mushus/golangci-linter@v1
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./cmd/bitxhub
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
linters:
|
||||
# please, do not use `enable-all`: it's deprecated and will be removed soon.
|
||||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
||||
disable-all: true
|
||||
enable:
|
||||
- bodyclose
|
||||
- deadcode
|
||||
- depguard
|
||||
- dogsled
|
||||
- dupl
|
||||
- errcheck
|
||||
# - funlen
|
||||
- gochecknoinits
|
||||
- goconst
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- gofmt
|
||||
- goimports
|
||||
# - golint
|
||||
# - gomnd
|
||||
- goprintffuncname
|
||||
# - gosec
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
# - interfacer
|
||||
# - lll
|
||||
- misspell
|
||||
- nakedret
|
||||
- rowserrcheck
|
||||
# - scopelint
|
||||
- staticcheck
|
||||
- structcheck
|
||||
# - stylecheck
|
||||
- typecheck
|
||||
- unconvert
|
||||
# - unparam
|
||||
# - unused
|
||||
- varcheck
|
||||
# - whitespace
|
Loading…
Reference in New Issue