mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-21 17:10:58 +01:00
*: enable default linters (#1334)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
c3ce1ea6d8
commit
c7abeae816
@ -1,8 +1,12 @@
|
||||
run:
|
||||
modules-download-mode: vendor
|
||||
|
||||
# Run only staticcheck for now. Additional linters will be enabled one-by-one.
|
||||
linters:
|
||||
enable:
|
||||
- staticcheck
|
||||
disable-all: true
|
||||
issues:
|
||||
exclude-rules:
|
||||
- path: _test.go
|
||||
linters:
|
||||
- errcheck
|
||||
|
||||
linters-settings:
|
||||
errcheck:
|
||||
exclude: scripts/errcheck_excludes.txt
|
||||
|
2
scripts/errcheck_excludes.txt
Normal file
2
scripts/errcheck_excludes.txt
Normal file
@ -0,0 +1,2 @@
|
||||
// Used in HTTP handlers, any error is handled by the server itself.
|
||||
(net/http.ResponseWriter).Write
|
Loading…
Reference in New Issue
Block a user