-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
70 lines (70 loc) · 1.1 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
run:
tests: true
modules-download-mode: vendor
skip-dirs-use-default: true
skip-dirs:
- mocks
- frontend
timeout: 5m
# Linter Docs: https://golangci-lint.run/usage/linters/
linters:
enable:
- deadcode
- errcheck
- goconst
- gofumpt
- dupl
- gci
- revive
- gosimple
- govet
- ineffassign
- nakedret
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- whitespace
- errorlint
- funlen
- gocognit
- gocritic
- godot
- gomnd
- ifshort
- misspell
- prealloc
- unconvert
- unparam
- wastedassign
- gosec
issues:
exclude-rules:
- path: mocks/*
linters:
- typecheck
- path: pkg/docs/*
linters:
- deadcode
- unused
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
funlen:
lines: 40
govet:
check-shadowing: true
gci:
local-prefixes: github.com/rna-vt/devicecommander
gocritic:
enabled-checks:
- nestingReduce
- unnamedresult
- ruleguard
- truncateCmp
gomnd:
settings:
mnd:
ignored-files: config_env.go