-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
54 lines (51 loc) · 1.14 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
# This file contains all available configuration options
# with their default values.
# For complete .golangci.yml configuration, reference: https://golangci-lint.run/usage/configuration/#config-file
# options for analysis running
run:
timeout: 10m
linters:
disable-all: true
enable: # please keep this alphabetized
# Don't use soon to deprecated[1] linters that lead to false
# https://github.com/golangci/golangci-lint/issues/1841
# - deadcode
# - structcheck
# - varcheck
- ineffassign
- staticcheck
- unused
- gosimple
- errcheck
- govet
- gofumpt
- bodyclose
- depguard
- dogsled
- dupl
- exportloopref
- exhaustive
- goconst
- gocritic
# - gomnd
# - gosec
- misspell
- nolintlint
- prealloc
- predeclared
- revive
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- whitespace
- wsl
linters-settings:
gofumpt:
# Select the Go version to target. The default is `1.15`.
lang-version: "1.17"
# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false