mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
* not related to linter: remove obsolete constants: - `Insecure` and `Secure` and type `Security` are not used anywhere * not related to linter: update example - NewInsecure was deleted; change example to NewRemoteDB * address: Binds to all network interfaces (gosec): - bind to localhost instead of 0.0.0.0 - regenerate test key and cert for this purpose (was valid for ::) and otherwise we would see: transport: authentication handshake failed: x509: certificate is valid for ::, not 127.0.0.1\" (used https://github.com/google/keytransparency/blob/master/scripts/gen_server_keys.sh to regenerate certs) * use sha256 in tests instead of md5; time difference is negligible * nolint usage of math/rand in test and add comment on its import - crypto/rand is slower and we do not need sth more secure in tests * enable linter in circle-ci * another nolint math/rand in test * replace another occurrence of md5 * consistent comment about importing math/rand
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
run:
|
|
deadline: 1m
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- gocyclo
|
|
- golint
|
|
- maligned
|
|
- errcheck
|
|
- staticcheck
|
|
- dupl
|
|
- ineffassign
|
|
- interfacer
|
|
- unconvert
|
|
- goconst
|
|
- unparam
|
|
- nakedret
|
|
- lll
|
|
- gochecknoglobals
|
|
- gocritic
|
|
- gochecknoinits
|
|
- scopelint
|
|
- stylecheck
|
|
|
|
# linters-settings:
|
|
# govet:
|
|
# check-shadowing: true
|
|
# golint:
|
|
# min-confidence: 0
|
|
# gocyclo:
|
|
# min-complexity: 10
|
|
# maligned:
|
|
# suggest-new: true
|
|
# dupl:
|
|
# threshold: 100
|
|
# goconst:
|
|
# min-len: 2
|
|
# min-occurrences: 2
|
|
# depguard:
|
|
# list-type: blacklist
|
|
# packages:
|
|
# # logging is allowed only by logutils.Log, logrus
|
|
# # is allowed to use only in logutils package
|
|
# - github.com/sirupsen/logrus
|
|
# misspell:
|
|
# locale: US
|
|
# lll:
|
|
# line-length: 140
|
|
# goimports:
|
|
# local-prefixes: github.com/golangci/golangci-lint
|
|
# gocritic:
|
|
# enabled-tags:
|
|
# - performance
|
|
# - style
|
|
# - experimental
|
|
# disabled-checks:
|
|
# - wrapperFunc
|
|
# - commentFormatting # https://github.com/go-critic/go-critic/issues/755
|