mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-03 13:55:58 +01:00
25 lines
536 B
YAML
25 lines
536 B
YAML
linters:
|
|
enable:
|
|
- goimports
|
|
- revive
|
|
|
|
linters-settings:
|
|
goimports:
|
|
local-prefixes: github.com/zrepl/zrepl
|
|
revive:
|
|
rules:
|
|
- name: time-equal
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- errcheck
|
|
# 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:"
|
|
|