-
Notifications
You must be signed in to change notification settings - Fork 70
/
.golangci.yaml
65 lines (62 loc) · 1.28 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
run:
timeout: 20m
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/openmeterio/openmeter)
goimports:
local-prefixes: github.com/openmeterio/openmeter
misspell:
locale: US
nolintlint:
require-specific: true # require nolint directives to be specific about which linter is being skipped
revive:
confidence: 0
sloglint:
{}
# kv-only: true # enforce using key-value pairs only
# no-global: "all" # enforce not using global loggers
# context: "scope" # enforce passing a context to loggers (if available)
# key-naming-case: snake|camel # enforce a single key naming convention
linters:
enable:
- bodyclose
- errcheck
# - errorlint
# - exhaustive
- gci
# - gochecknoinits
# - goconst
# - gocritic
# - gocyclo
# - godot
- gofmt
- gofumpt
# - goheader
- goimports
# - gosec
- gosimple
- govet
- ineffassign
# - lll
- misspell
# - nlreturn
- nolintlint
# - revive
- sloglint
- staticcheck
# - stylecheck
- tenv
# - testifylint
- unconvert
- unparam
- unused
- whitespace
# - wsl
issues:
exclude-dirs:
- .dagger/internal
- .dagger/dagger.gen.go
- collector/benthos/internal