blob: 4260164b8d0c2c63681194810952bd9fe483fa6c [file] [log] [blame]
Andrea Campanella8eee4712020-08-25 17:35:24 +02001#Copyright 2018-present Open Networking Foundation
2#
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
24 golint:
25 min-confidence: 0
26
27 gocyclo:
Holger Hildebrandtd4d66e92020-10-27 15:40:08 +000028 min-complexity: 20
Andrea Campanella8eee4712020-08-25 17:35:24 +020029
30 misspell:
31 locale: US
mpagenko38662d02021-08-11 09:45:19 +000032 ignore-words:
33 - cancelled
Andrea Campanella8eee4712020-08-25 17:35:24 +020034
35linters:
36 enable:
37 #- gocritic
38 #- gochecknoglobals
39 #- gochecknoinits
40 - gocyclo
41 - gofmt
42 - golint
43 - govet
44 - ineffassign
45 - misspell
46 - gosec
47 #- unparam
48
49run:
50 modules-download-mode: vendor
51
52issues:
53 exclude-rules:
54 - text: "weak cryptographic primitive"
55 linters:
56 - gosec
57 exclude:
Himani Chawla0cf608d2020-09-09 16:36:03 +053058 - "Error return value of `rxCallbackEntry.cbFunction` is not checked"
59 - "Error return value of `oo.sendNextRequest` is not checked"
60 - "Error return value of `oo.pDevOmciCC.send` is not checked"
61 - "Error return value of `onuDeviceEntry.mibDbClass` is not checked"
khenaidoo42dcdfd2021-10-19 17:34:12 -040062 - "SA1019: voltha.ImageDownload is deprecated"
Andrea Campanella8eee4712020-08-25 17:35:24 +020063 exclude-use-default: false