-
Notifications
You must be signed in to change notification settings - Fork 33
/
.golangci.yml
50 lines (46 loc) · 1.25 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
# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
#
# 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
- should have a package comment
exclude-rules:
- path: pkg/northbound/gnmi/set.go
linters:
- typecheck
- path: pkg/sctp/connection/socket.go
linters:
- errcheck
- staticcheck
- path: pkg/asn1/testsm/procedure_codes.go
linters:
- revive
- path: pkg/asn1/aper/marshal.go
linters:
- ineffassign
- path: pkg/asn1/aper/aper.go
linters:
- ineffassign