generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
72 lines (68 loc) · 1.57 KB
/
.golangci.yaml
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
# options for analysis running
run:
timeout: 10m
# allow us to run an instance per project
allow-parallel-runners: true
# all available settings of specific linters
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/utilitywarehouse/tflint-ruleset-kafka)
errcheck:
check-type-assertions: true
check-blank: true
goconst:
min-len: 3
min-occurrences: 3
ignore-tests: true
misspell:
locale: UK
prealloc:
for-loops: true
revive:
rules:
- name: exported
disabled: true
- name: context-as-argument
disabled: false
nolintlint:
require-specific: true
wrapcheck:
ignorePackageGlobs:
# errgroup: these are just collecting errors that should already be wrapped
- "golang.org/x/sync/errgroup"
exhaustive:
default-signifies-exhaustive: true
linters:
# enable all linters, explicitly disable the ones we don't want
enable-all: true
# think a linter does/doesn't belong in this list? Raise a PR to discuss
disable:
# deprecated linters
- execinquery
- exportloopref
- gomnd
# opinionated linters we don't agree with/linters we don't find value in
- dupl
- paralleltest
- perfsprint # stick with consistency over performance
- funlen
- lll # line length handled by golines
- nestif
- depguard
- exhaustruct
- gochecknoglobals
- err113
- mnd
- nilnil
- tagliatelle
- testpackage
- wsl
- errorlint
- ireturn
- nlreturn
- nonamedreturns
- varnamelen
- godox