blob: be5b4a3cbb30d51bb0bee07035f8f1ded77fe1d6 [file] [log] [blame]
Joey Armstrong89c812c2024-01-12 19:00:20 -05001#Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors
Andrea Campanella8eee4712020-08-25 17:35:24 +02002#
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.
14
15linters-settings:
16 govet:
17 settings:
18 printf:
19 funcs:
20 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
21 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
22 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
23 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
Akash Reddy Kankanala92dfdf82025-03-23 22:07:09 +053024 enable:
25 - shadow
26 - fieldalignment
Andrea Campanella8eee4712020-08-25 17:35:24 +020027 golint:
28 min-confidence: 0
29
30 gocyclo:
Holger Hildebrandtd4d66e92020-10-27 15:40:08 +000031 min-complexity: 20
Andrea Campanella8eee4712020-08-25 17:35:24 +020032
33 misspell:
34 locale: US
mpagenko38662d02021-08-11 09:45:19 +000035 ignore-words:
36 - cancelled
Andrea Campanella8eee4712020-08-25 17:35:24 +020037
38linters:
39 enable:
40 #- gocritic
41 #- gochecknoglobals
42 #- gochecknoinits
43 - gocyclo
44 - gofmt
Andrea Campanella8eee4712020-08-25 17:35:24 +020045 - govet
46 - ineffassign
47 - misspell
48 - gosec
Akash Reddy Kankanala92dfdf82025-03-23 22:07:09 +053049 - errcheck
50 - goimports
51 - gosimple
52 - staticcheck
53 - unused
54 - unparam
Andrea Campanella8eee4712020-08-25 17:35:24 +020055
56run:
57 modules-download-mode: vendor
58
59issues:
60 exclude-rules:
61 - text: "weak cryptographic primitive"
62 linters:
63 - gosec
Akash Reddy Kankanala92dfdf82025-03-23 22:07:09 +053064 - path: ".*_test.go"
65 linters:
66 - govet
67 - fieldalignment
Andrea Campanella8eee4712020-08-25 17:35:24 +020068 exclude:
Himani Chawla0cf608d2020-09-09 16:36:03 +053069 - "Error return value of `rxCallbackEntry.cbFunction` is not checked"
70 - "Error return value of `oo.sendNextRequest` is not checked"
71 - "Error return value of `oo.pDevOmciCC.send` is not checked"
72 - "Error return value of `onuDeviceEntry.mibDbClass` is not checked"
khenaidoo42dcdfd2021-10-19 17:34:12 -040073 - "SA1019: voltha.ImageDownload is deprecated"
Akash Reddy Kankanala92dfdf82025-03-23 22:07:09 +053074 - 'G115: integer overflow conversion'
Andrea Campanella8eee4712020-08-25 17:35:24 +020075 exclude-use-default: false