blob: b4b20dd61b48d56e4d29267d41b3842eb479c6f6 [file] [log] [blame]
Joey Armstrong7a9af442024-01-03 19:26:36 -05001# Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors
Kent Hagerman812b2572020-01-28 11:57:51 -05002#
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
15run:
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050016 modules-download-mode: vendor
17
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030018issues:
19 exclude-use-default: false #we should decide ourselves about false positives
20 exclude-rules:
21 - path: _test\.go
22 linters:
23 - errcheck
24 - gocritic
25 - gosec
26 - linters:
27 - gocritic
28 text: "ifElseChain:" #it should be up to a developer to decide which operator to use
khenaidood948f772021-08-11 17:49:24 -040029 exclude:
30 - "Package github.com/golang/protobuf/proto is deprecated"
31 - "Package github.com/golang/protobuf/jsonpb is deprecated"
khenaidoo9beaaf12021-10-19 17:32:01 -040032 - "SA1019: voltha.ImageDownloads is deprecated"
33 - "SA1019: voltha.ImageDownload is deprecated"
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030034
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050035linters:
36 enable:
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050037 #- gochecknoglobals
38 #- gochecknoinits
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030039 - gocritic
40 - gofmt
41 - gosec
42 - errcheck
43 #- unparam