mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
3f8578f1e1
Using golangci-lint has a number of advantages: - adding new linters becomes much easier, its a couple lines of yaml config instead of more bash scripting - it enables whitelisting of issues using inline comments or regex - when running multiple linters less work is done. The parsed source can be reused by multiple linters - linters are run in parallel to reduce CI runtime.
15 lines
248 B
YAML
15 lines
248 B
YAML
linters:
|
|
disable-all: true
|
|
enable:
|
|
- gofmt
|
|
- govet
|
|
|
|
issues:
|
|
# Disable the default exclude list so that all excludes are explicitly
|
|
# defined in this file.
|
|
exclude-use-default: false
|
|
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: false
|