2019-04-25 08:44:57 +00:00
|
|
|
run:
|
2019-04-29 08:54:40 +00:00
|
|
|
deadline: 5m
|
2022-03-25 16:59:51 +00:00
|
|
|
skip-files:
|
|
|
|
# Skip autogenerated files.
|
|
|
|
- ^.*\.(pb|y)\.go$
|
|
|
|
|
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- depguard
|
|
|
|
- gofumpt
|
|
|
|
- goimports
|
|
|
|
- revive
|
|
|
|
- misspell
|
|
|
|
|
2019-04-29 08:54:40 +00:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-12-22 13:03:53 +00:00
|
|
|
- path: _test.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
2022-03-25 16:59:51 +00:00
|
|
|
|
2019-04-29 08:54:40 +00:00
|
|
|
linters-settings:
|
2022-03-25 16:59:51 +00:00
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages-with-error-message:
|
|
|
|
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
|
|
|
|
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
|
|
|
|
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
2019-04-29 08:54:40 +00:00
|
|
|
errcheck:
|
|
|
|
exclude: scripts/errcheck_excludes.txt
|
2022-03-25 16:59:51 +00:00
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/prometheus/alertmanager
|
|
|
|
gofumpt:
|
|
|
|
extra-rules: true
|
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
- name: exported
|
|
|
|
arguments: ["disableStutteringCheck"]
|
|
|
|
- name: blank-imports
|
|
|
|
- name: context-as-argument
|
|
|
|
- name: dot-imports
|
|
|
|
- name: error-return
|
|
|
|
- name: error-strings
|
|
|
|
- name: error-naming
|
|
|
|
- name: if-return
|
|
|
|
- name: increment-decrement
|
|
|
|
- name: var-naming
|
|
|
|
- name: var-declaration
|
|
|
|
- name: package-comments
|
|
|
|
- name: range
|
|
|
|
- name: receiver-naming
|
|
|
|
- name: time-naming
|
|
|
|
- name: unexported-return
|
|
|
|
- name: indent-error-flow
|
|
|
|
- name: errorf
|