-
Notifications
You must be signed in to change notification settings - Fork 78
/
.golangci.yml
63 lines (59 loc) · 1.72 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
# 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
- govet
- gofumpt
- bodyclose
# - depguard
- dogsled
- dupl
- exportloopref
- gocritic
# - misspell
- nolintlint
- prealloc
- predeclared
- stylecheck
- tparallel
- typecheck
- unconvert
- whitespace
# - wsl
# - revive
# - unparam
# - gomnd
# - gosec
# - exhaustive
# - thelper
# - goconst
# - errcheck
linters-settings:
gofumpt:
# Select the Go version to target. The default is `1.15`.
lang-version: "1.22"
# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false
issues:
exclude:
- "G306: Expect WriteFile permissions to be 0600 or less"
- "ST1018: string literal contains Unicode control characters, consider using escape sequences instead"
- "ifElseChain: rewrite if-else to switch statement"
- "S1000: should use for range instead of for { select {} }"
- "SA4004: the surrounding loop is unconditionally terminated"
- "copylocks: call of c\\.Post copies lock value: kcl-lang\\.io/kcl-go/pkg/spec/gpyrpc\\.Ping_Args contains google\\.golang\\.org/protobuf/internal/impl\\.MessageState contains sync\\.Mutex"