Joey Armstrong | 11f5a57 | 2024-01-12 19:11:32 -0500 | [diff] [blame] | 1 | #Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [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. |
| 14 | |
| 15 | linters-settings: |
| 16 | govet: |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 17 | settings: |
| 18 | printf: |
| 19 | funcs: |
| 20 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof |
| 21 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf |
| 22 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf |
| 23 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf |
Akash Kankanala | 041a212 | 2024-10-16 15:49:22 +0530 | [diff] [blame] | 24 | enable: |
| 25 | - shadow |
| 26 | - fieldalignment |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 27 | golint: |
| 28 | min-confidence: 0 |
| 29 | |
| 30 | gocyclo: |
Devmalya Paul | 6f063a6 | 2020-02-19 19:19:06 -0500 | [diff] [blame] | 31 | min-complexity: 17 |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 32 | |
| 33 | misspell: |
| 34 | locale: US |
| 35 | |
| 36 | linters: |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 37 | enable: |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 38 | #- gocritic |
| 39 | #- gochecknoglobals |
| 40 | #- gochecknoinits |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 41 | - gocyclo |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 42 | - gofmt |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 43 | - govet |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 44 | - ineffassign |
| 45 | - misspell |
Andrey Pozolotin | ff797a9 | 2020-08-14 01:54:57 +0200 | [diff] [blame] | 46 | - gosec |
Akash Kankanala | 041a212 | 2024-10-16 15:49:22 +0530 | [diff] [blame] | 47 | - errcheck |
| 48 | - whitespace |
| 49 | - goimports |
| 50 | - gosimple |
| 51 | - staticcheck |
| 52 | - unused |
| 53 | - unparam |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 54 | |
| 55 | run: |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 56 | modules-download-mode: vendor |
| 57 | |
| 58 | issues: |
| 59 | exclude-rules: |
| 60 | - text: "weak cryptographic primitive" |
| 61 | linters: |
| 62 | - gosec |
Akash Kankanala | 041a212 | 2024-10-16 15:49:22 +0530 | [diff] [blame] | 63 | - path: ".*_test.go" |
| 64 | linters: |
| 65 | - govet |
| 66 | - fieldalignment |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 67 | exclude-use-default: false |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 68 | exclude: |
| 69 | - "SA1019: voltha.ImageDownloads is deprecated" |
| 70 | - "SA1019: voltha.ImageDownload is deprecated" |
Akash Kankanala | 041a212 | 2024-10-16 15:49:22 +0530 | [diff] [blame] | 71 | - 'G115: integer overflow conversion' |