blob: 646e90222ad2fc3d86e0793ad680084c9c7e5e12 [file] [log] [blame]
Kent Hagerman812b2572020-01-28 11:57:51 -05001# Copyright 2020-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
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"
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030032
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050033linters:
34 enable:
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050035 #- gochecknoglobals
36 #- gochecknoinits
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030037 - gocritic
38 - gofmt
39 - gosec
40 - errcheck
41 #- unparam