blob: 9f94068f6d331fbd225af01784f36bc2758200f0 [file] [log] [blame]
Joey Armstrong03b20872024-01-12 13:03:07 -05001# Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors
Kent Hagerman6379e092020-02-18 18:05:57 -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 Hagerman3243ee52020-02-26 12:11:55 -050016 modules-download-mode: vendor
17
Andrey Pozolotin536ee582021-05-28 16:31:44 +030018issues:
19 exclude-use-default: false #we should decide ourselves about false positives
20 exclude-rules:
21 - linters:
22 - gosec
23 text: "G103:" #this rule is a false positive as there is no recommendation how to audit unsafe usages
24
Kent Hagerman3243ee52020-02-26 12:11:55 -050025linters:
26 enable:
27 #- gochecknoglobals
28 #- gochecknoinits
Andrey Pozolotin536ee582021-05-28 16:31:44 +030029 - gocritic
Kent Hagerman3243ee52020-02-26 12:11:55 -050030 - gofmt
Andrey Pozolotinda1e07a2020-08-14 01:58:13 +020031 - gosec
Andrey Pozolotin536ee582021-05-28 16:31:44 +030032 - errcheck
Kent Hagerman3243ee52020-02-26 12:11:55 -050033 #- unparam