-
Notifications
You must be signed in to change notification settings - Fork 106
/
.golangci.yml
48 lines (44 loc) · 1.18 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
# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 Intel Corporation
# Copyright 2021 Open Networking Foundation
# golangci-lint configuration used for CI
run:
tests: true
timeout: 10m
skip-files:
- ".*\\.pb\\.go"
skip-dirs-use-default: true
# all available settings of specific linters
linters-settings:
govet:
# report about shadowed variables
check-shadowing: true
# settings per analyzer
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# enable all analyzers
enable-all: true
disable:
- fieldalignment
linters:
enable:
- goconst
- gofmt
- goimports
- govet
- ineffassign
- misspell
- nilerr
- nilnil
- unparam
disable:
- errcheck
- goerr113
- gosec
- staticcheck
- wsl