Files
gocryptotrader/.golangci.yml
Adrian Gallagher e8b517ef0a Daily engine changes
1) Although gRPC does server side validation currently, validate basic things
on gctcli before relaying the request to the gRPC server
2) Make pair format consistent for the exchange sycner
3) Fix OKEX ticker failure due to thinking futures info is authenticated
4) Start filling out config tests
5) Extend timeout for golangci config so that AppVeyor has time to
complete (Travis is fine)
6) Add IsSupported exchange func for easy lookup
2019-09-10 17:07:00 +10:00

81 lines
1.3 KiB
YAML

run:
deadline: 1m0s
issues-exit-code: 1
tests: true
skip-dirs:
- vendor
- web
- testdata
linters:
disable-all: true
enable:
# defaults
- govet
# - errcheck
- staticcheck
# - unused
- gosimple
- structcheck
# - varcheck
- ineffassign
# - deadcode
- typecheck
- goimports
- govet
# disabled by default linters
- golint
- stylecheck
- gosec
# - interfacer
- unconvert
# - dupl
- goconst
# - gocyclo
- gofmt
- goimports
# - maligned
- depguard
- misspell
# - lll
- unparam
- nakedret
# - prealloc
- scopelint
- gocritic
# - gochecknoinits
# - gochecknoglobals
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
goconst:
min-occurrences: 6
depguard:
list-type: blacklist
# lll:
# line-length: 80 # NOTE: we'll enforce this at a later point
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc
- importShadow
- methodExprCall
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec
service:
golangci-lint-version: 1.16.x