Kent Hagerman | 812b257 | 2020-01-28 11:57:51 -0500 | [diff] [blame] | 1 | # 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 | |
| 15 | run: |
Kent Hagerman | dcd4dcc | 2020-02-25 17:56:17 -0500 | [diff] [blame] | 16 | modules-download-mode: vendor |
| 17 | |
Andrey Pozolotin | 34dd63f | 2021-05-31 21:26:40 +0300 | [diff] [blame] | 18 | issues: |
| 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 |
khenaidoo | d948f77 | 2021-08-11 17:49:24 -0400 | [diff] [blame] | 29 | exclude: |
| 30 | - "Package github.com/golang/protobuf/proto is deprecated" |
| 31 | - "Package github.com/golang/protobuf/jsonpb is deprecated" |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 32 | - "SA1019: voltha.ImageDownloads is deprecated" |
| 33 | - "SA1019: voltha.ImageDownload is deprecated" |
Andrey Pozolotin | 34dd63f | 2021-05-31 21:26:40 +0300 | [diff] [blame] | 34 | |
Kent Hagerman | dcd4dcc | 2020-02-25 17:56:17 -0500 | [diff] [blame] | 35 | linters: |
| 36 | enable: |
Kent Hagerman | dcd4dcc | 2020-02-25 17:56:17 -0500 | [diff] [blame] | 37 | #- gochecknoglobals |
| 38 | #- gochecknoinits |
Andrey Pozolotin | 34dd63f | 2021-05-31 21:26:40 +0300 | [diff] [blame] | 39 | - gocritic |
| 40 | - gofmt |
| 41 | - gosec |
| 42 | - errcheck |
| 43 | #- unparam |