forked from loggie-io/loggie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
31 lines (28 loc) · 970 Bytes
/
.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
run:
go: '1.18'
skip-dirs:
- vendor
- pkg/discovery/kubernetes/client
linters:
enable:
- unused
- ineffassign # Detects when assignments to existing variables are not used
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- unused # Checks Go code for unused constants, variables, functions and types
- asciicheck
- depguard
- errorlint
- importas
- tparallel
- bodyclose
disable:
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
- gosimple
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- typecheck
linters-settings:
govet:
check-shadowing: true
check-unreachable: true
check-rangeloops: true
check-copylocks: true