blob: d110d8edcb031dcc79cd75c80a2d16ea83c1c048 [file] [log] [blame]
Joey Armstrong9cdee9f2024-01-03 04:56:14 -05001# Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors
Kent Hagermanfac11d42020-01-28 12:18:55 -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.
Abhay Kumar40252eb2025-10-13 13:25:53 +000014version: "2"
Kent Hagermanfac11d42020-01-28 12:18:55 -050015run:
Kent Hagerman3da1fd02020-02-26 10:54:07 -050016 modules-download-mode: vendor
Kent Hagerman3da1fd02020-02-26 10:54:07 -050017linters:
Abhay Kumar40252eb2025-10-13 13:25:53 +000018 exclusions:
19 generated: lax
20 presets:
21 - comments
22 - common-false-positives
23 - legacy
24 - std-error-handling
25 rules:
26 - path: (.+)\.go$
27 text: Package github.com/golang/protobuf/proto is deprecated
28 - path: (.+)\.go$
29 text: Package github.com/golang/protobuf/jsonpb is deprecated
30 - path: (.+)\.go$
31 text: 'SA1019: voltha.ImageDownload is deprecated'
32 - path: pkg/grpc/client\.go
33 text: 'SA1019: grpcreflect.NewClient is deprecated'
34 - path: pkg/grpc/client\.go
35 text: 'SA1019: grpc.Dial is deprecated'
36 - path: pkg/grpc/client\.go
37 text: 'SA1019: grpc.WithInsecure is deprecated'
38 paths:
39 - third_party$
40 - builtin$
41 - examples$
42formatters:
Kent Hagerman3da1fd02020-02-26 10:54:07 -050043 enable:
khenaidoo26721882021-08-11 17:42:52 -040044 - gofmt
Abhay Kumar40252eb2025-10-13 13:25:53 +000045 exclusions:
46 generated: lax
47 paths:
48 - third_party$
49 - builtin$
50 - examples$