Kent Hagerman | 6379e09 | 2020-02-18 18:05:57 -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 | 3243ee5 | 2020-02-26 12:11:55 -0500 | [diff] [blame] | 16 | modules-download-mode: vendor |
| 17 | |
Andrey Pozolotin | 536ee58 | 2021-05-28 16:31:44 +0300 | [diff] [blame] | 18 | issues: |
| 19 | exclude-use-default: false #we should decide ourselves about false positives |
| 20 | exclude-rules: |
| 21 | - linters: |
| 22 | - gosec |
| 23 | text: "G103:" #this rule is a false positive as there is no recommendation how to audit unsafe usages |
| 24 | |
Kent Hagerman | 3243ee5 | 2020-02-26 12:11:55 -0500 | [diff] [blame] | 25 | linters: |
| 26 | enable: |
| 27 | #- gochecknoglobals |
| 28 | #- gochecknoinits |
Andrey Pozolotin | 536ee58 | 2021-05-28 16:31:44 +0300 | [diff] [blame] | 29 | - gocritic |
Kent Hagerman | 3243ee5 | 2020-02-26 12:11:55 -0500 | [diff] [blame] | 30 | - gofmt |
Andrey Pozolotin | da1e07a | 2020-08-14 01:58:13 +0200 | [diff] [blame] | 31 | - gosec |
Andrey Pozolotin | 536ee58 | 2021-05-28 16:31:44 +0300 | [diff] [blame] | 32 | - errcheck |
Kent Hagerman | 3243ee5 | 2020-02-26 12:11:55 -0500 | [diff] [blame] | 33 | #- unparam |