2019-03-22 20:45:27 +01:00
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- goimports
|
2024-11-02 15:45:09 +01:00
|
|
|
- revive
|
2019-03-22 20:45:27 +01:00
|
|
|
|
2024-11-02 15:45:09 +01:00
|
|
|
linters-settings:
|
2024-11-04 11:25:30 +01:00
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/zrepl/zrepl
|
2024-11-02 15:45:09 +01:00
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
- name: time-equal
|
2024-11-04 11:25:30 +01:00
|
|
|
|
2019-03-22 20:45:27 +01:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
2022-09-25 17:08:41 +02:00
|
|
|
# Disable staticcheck 'Empty body in an if or else branch' as it's useful
|
|
|
|
# to put a comment into an empty else-clause that explains why whatever
|
|
|
|
# is done in the if-caluse is not necessary if the condition is false.
|
|
|
|
- linters:
|
|
|
|
- staticcheck
|
|
|
|
text: "SA9003:"
|
2019-03-22 20:45:27 +01:00
|
|
|
|