forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
42 lines (38 loc) · 794 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
42
# golangci-lint settings.
# Ref: https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
run:
timeout: 7m
skip-dirs:
- '.*/migrations/.*'
linters-settings:
gofmt:
simplify: true
misspell:
locale: US
goimports:
local-prefixes: magma
issues:
exclude-rules:
- linters:
- staticcheck
# Ignore:
# - deprecation warnings
# - unconditional loop termination
text: "SA1019:|SA4004:"
# Ref: https://golangci-lint.run/usage/linters/
linters:
# Whitelist-only (disable default set of linters)
disable-all: true
enable:
- exportloopref
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- predeclared
- rowserrcheck
- staticcheck
- typecheck
- unconvert