-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
70 lines (67 loc) · 1.7 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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
# - wsl
# - unparam
# - gomnd
- ineffassign
- staticcheck
- unused
- gosimple
- errcheck
- govet
- gofumpt
- bodyclose
- depguard
- dogsled
- dupl
- exportloopref
- exhaustive
- goconst
- gocritic
- gosec
- misspell
- nolintlint
- prealloc
- predeclared
- revive
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- whitespace
# All available settings of specific linters.
# Also see: https://golangci-lint.run/usage/linters/#linters-configuration
linters-settings:
gofumpt:
# Select the Go version to target. The default is `1.15`.
lang-version: "1.16"
# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false
gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
excludes:
- G204
- G306
revive:
# See https://github.com/mgechev/revive#available-rules for details.
severity: warning
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#exported
- name: exported
severity: warning
disabled: true