-
Notifications
You must be signed in to change notification settings - Fork 14
/
.golangci.yml
87 lines (81 loc) · 1.74 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
service:
golangci-lint-version: 1.56.2
linters-settings:
lll:
line-length: 180
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
# - depguard
- dogsled
- errcheck
- exportloopref
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gomodguard
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- prealloc
- exportloopref
# Had to remove static check because golangci-lint complains that
# //nolint:staticheck wasn't required, but then complains of a deprecated
# usage when //nolint:staticheck is removed. Also, in at least one instance,
# actually fixing the problem would break backwards compatibility.
# - staticcheck
- typecheck
- unconvert
- unparam
- whitespace
# disable: # as at 1.27.0
# - dupl
# - gochecknoglobals
# - godox
# - goerr113
# - gomnd
# - gosec
# - lll
# - nestif
# - stylecheck
# - testpackage
# - unused
# - wsl
issues:
exclude-rules:
#Ignore variable scope linting
- path: "errors/error_handler_test.go"
linters:
- scopelint
- path: "config/config_test.go"
linters:
- scopelint
# Ignore things like "FormId should be FormID"
- path: codegen
text: "ST1003:"
linters:
- stylecheck
# Ignore things like "FormId should be FormID"
- path: codegen
text: ".*should be.*"
linters:
- golint
- path: _test\.go
linters:
- govet # Ignore err shadowing in test files
- gomnd
- funlen # Ignore function length for tests
run:
timeout: 2m