mirror of https://github.com/status-im/consul.git
parent
412ee92c27
commit
baa45a6987
|
@ -7,6 +7,7 @@ linters:
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- unparam
|
- unparam
|
||||||
|
- forbidigo
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
# Disable the default exclude list so that all excludes are explicitly
|
# Disable the default exclude list so that all excludes are explicitly
|
||||||
|
@ -57,6 +58,14 @@ issues:
|
||||||
linters-settings:
|
linters-settings:
|
||||||
gofmt:
|
gofmt:
|
||||||
simplify: true
|
simplify: true
|
||||||
|
forbidigo:
|
||||||
|
# Forbid the following identifiers (list of regexp).
|
||||||
|
forbid:
|
||||||
|
- '\brequire\.New\b'
|
||||||
|
- '\bassert\.New\b'
|
||||||
|
# Exclude godoc examples from forbidigo checks.
|
||||||
|
# Default: true
|
||||||
|
exclude_godoc_examples: false
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
|
|
Loading…
Reference in New Issue