blob: 1147894187796b0e17e04f9e5382b4e6cb5b5c09 [file] [log] [blame]
Joey Armstrong11f5a572024-01-12 19:11:32 -05001#Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors
Girish Gowdru6a80bbd2019-07-02 07:36:09 -07002#
3#Licensed under the Apache License, Version 2.0 (the "License");
4#you may not use this file except in compliance with the License.
5#You may obtain a copy of the License at
6#
7#http://www.apache.org/licenses/LICENSE-2.0
8#
9#Unless required by applicable law or agreed to in writing, software
10#distributed under the License is distributed on an "AS IS" BASIS,
11#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12#See the License for the specific language governing permissions and
13#limitations under the License.
mgouda86543582025-10-29 20:58:16 +053014version: "2"
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070015
mgouda86543582025-10-29 20:58:16 +053016linters:
17 enable:
18 #- gocritic
19 #- gochecknoglobals
20 #- gochecknoinits
21 - gocyclo
22 - govet
23 - ineffassign
24 - misspell
25 - gosec
26 - errcheck
27 - whitespace
28 - staticcheck
29 - unused
30 - unparam
31 exclusions:
32 rules:
33 - text: "weak cryptographic primitive"
34 linters:
35 - gosec
36 - path: ".*_test.go"
37 linters:
38 - govet
39 - fieldalignment
40 - staticcheck
41 - text: "SA1019:"
42 linters:
43 - staticcheck
44 - text: 'G115: integer overflow conversion'
45 linters:
46 - gosec
47
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070048linters-settings:
49 govet:
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070050 settings:
51 printf:
52 funcs:
53 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
54 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
55 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
56 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
Akash Kankanala041a2122024-10-16 15:49:22 +053057 enable:
58 - shadow
59 - fieldalignment
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070060 golint:
61 min-confidence: 0
62
63 gocyclo:
Devmalya Paul6f063a62020-02-19 19:19:06 -050064 min-complexity: 17
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070065
66 misspell:
67 locale: US
68
mgouda86543582025-10-29 20:58:16 +053069formatters:
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070070 enable:
Kent Hagermane71b52d2020-02-26 11:13:42 -050071 - gofmt
Akash Kankanala041a2122024-10-16 15:49:22 +053072 - goimports
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070073run:
mgouda86543582025-10-29 20:58:16 +053074 modules-download-mode: vendor