blob: 058bf20f27d26ba1881d795fde24972575da14f3 [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
29
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050030linters:
31 enable:
Kent Hagermandcd4dcc2020-02-25 17:56:17 -050032 #- gochecknoglobals
33 #- gochecknoinits
Andrey Pozolotin34dd63f2021-05-31 21:26:40 +030034 - gocritic
35 - gofmt
36 - gosec
37 - errcheck
38 #- unparam