-
Notifications
You must be signed in to change notification settings - Fork 57
/
.golangci.yml
55 lines (52 loc) · 1.38 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
# SPDX-FileCopyrightText: 2019-present Open Networking Foundation <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
run:
# Autogenerated files take too much time and memory to load,
# even if we skip them with -skip-dirs or -skip-dirs;
# or mark them as generated; or use nolint annotations.
# So we define this tag and use it in the autogenerated files.
build-tags:
- codeanalysis
linters:
enable:
- gofmt
# - revive
- misspell
- typecheck
- errcheck
- dogsled
- unconvert
- nakedret
- exportloopref
issues:
exclude-use-default: false
exclude:
- Error return value of `.*Close` is not checked
- Error return value of `.*Flush` is not checked
- Error return value of `.*Write` is not checked
- Error return value of `.*Stop` is not checked
- "package-comments: should have a package comment"
exclude-rules:
- path: pkg/northbound/gnmi/set.go
linters:
- typecheck
- path: pkg
linters:
- staticcheck
text: "SA1019:"
- path: test
linters:
- staticcheck
text: "SA1019:"
- path: pkg/utils
text: "copylocks"
- path: pkg/store/device/store.go
linters:
- scopelint
- path: pkg/manager
text: "is unused"
- path: pkg
text: "is unused"
- path: pkg/northbound/gnmi/subscribe_test.go
text: "is unused"