| # Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| version: "2" |
| run: |
| modules-download-mode: vendor |
| linters: |
| exclusions: |
| generated: lax |
| presets: |
| - comments |
| - common-false-positives |
| - legacy |
| - std-error-handling |
| rules: |
| - path: (.+)\.go$ |
| text: Package github.com/golang/protobuf/proto is deprecated |
| - path: (.+)\.go$ |
| text: Package github.com/golang/protobuf/jsonpb is deprecated |
| - path: (.+)\.go$ |
| text: 'SA1019: voltha.ImageDownload is deprecated' |
| - path: pkg/grpc/client\.go |
| text: 'SA1019: grpcreflect.NewClient is deprecated' |
| - path: pkg/grpc/client\.go |
| text: 'SA1019: grpc.Dial is deprecated' |
| - path: pkg/grpc/client\.go |
| text: 'SA1019: grpc.WithInsecure is deprecated' |
| paths: |
| - third_party$ |
| - builtin$ |
| - examples$ |
| formatters: |
| enable: |
| - gofmt |
| exclusions: |
| generated: lax |
| paths: |
| - third_party$ |
| - builtin$ |
| - examples$ |