forked from onosproject/onos-ric-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
33 lines (30 loc) · 944 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
32
33
# SPDX-FileCopyrightText: 2020-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
- "don't use an underscore in package name"
- "type name will be used as app.AppContext by other packages"