forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
41 lines (35 loc) · 818 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
run:
go: 1.20
timeout: 10m
linters-settings:
errcheck:
exclude: ./misc/errcheck_excludes.txt
goimports:
local-prefixes: vitess.io/vitess
govet:
disable: # not supported when using Generics in 1.18
- nilness
- unusedwrite
linters:
disable-all: true
enable:
# Defaults
- errcheck
- govet
- ineffassign
- typecheck
- staticcheck
- gosimple
# Extras
- gofmt
- goimports
- exportloopref
- bodyclose
# revive is a replacement for golint, but we do not run it in CI for now.
# This is only enabled as a post-commit hook
# - revive
issues:
exclude-rules:
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.52.2 # use the fixed version to not introduce new linters unexpectedly