| Joey Armstrong | 9cdee9f | 2024-01-03 04:56:14 -0500 | [diff] [blame] | 1 | # Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors |
| Kent Hagerman | fac11d4 | 2020-01-28 12:18:55 -0500 | [diff] [blame] | 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. |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 14 | version: "2" |
| Kent Hagerman | fac11d4 | 2020-01-28 12:18:55 -0500 | [diff] [blame] | 15 | run: |
| Kent Hagerman | 3da1fd0 | 2020-02-26 10:54:07 -0500 | [diff] [blame] | 16 | modules-download-mode: vendor |
| Kent Hagerman | 3da1fd0 | 2020-02-26 10:54:07 -0500 | [diff] [blame] | 17 | linters: |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 18 | 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$ |
| 42 | formatters: |
| Kent Hagerman | 3da1fd0 | 2020-02-26 10:54:07 -0500 | [diff] [blame] | 43 | enable: |
| khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 44 | - gofmt |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 45 | exclusions: |
| 46 | generated: lax |
| 47 | paths: |
| 48 | - third_party$ |
| 49 | - builtin$ |
| 50 | - examples$ |