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 |
| 29 | |
Kent Hagerman | dcd4dcc | 2020-02-25 17:56:17 -0500 | [diff] [blame] | 30 | linters: |
| 31 | enable: |
Kent Hagerman | dcd4dcc | 2020-02-25 17:56:17 -0500 | [diff] [blame] | 32 | #- gochecknoglobals |
| 33 | #- gochecknoinits |
Andrey Pozolotin | 34dd63f | 2021-05-31 21:26:40 +0300 | [diff] [blame] | 34 | - gocritic |
| 35 | - gofmt |
| 36 | - gosec |
| 37 | - errcheck |
| 38 | #- unparam |