Andrea Campanella | 8eee471 | 2020-08-25 17:35:24 +0200 | [diff] [blame] | 1 | #Copyright 2018-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 | linters-settings: |
| 16 | govet: |
| 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 |
| 24 | golint: |
| 25 | min-confidence: 0 |
| 26 | |
| 27 | gocyclo: |
Holger Hildebrandt | d4d66e9 | 2020-10-27 15:40:08 +0000 | [diff] [blame] | 28 | min-complexity: 20 |
Andrea Campanella | 8eee471 | 2020-08-25 17:35:24 +0200 | [diff] [blame] | 29 | |
| 30 | misspell: |
| 31 | locale: US |
mpagenko | 38662d0 | 2021-08-11 09:45:19 +0000 | [diff] [blame] | 32 | ignore-words: |
| 33 | - cancelled |
Andrea Campanella | 8eee471 | 2020-08-25 17:35:24 +0200 | [diff] [blame] | 34 | |
| 35 | linters: |
| 36 | enable: |
| 37 | #- gocritic |
| 38 | #- gochecknoglobals |
| 39 | #- gochecknoinits |
| 40 | - gocyclo |
| 41 | - gofmt |
| 42 | - golint |
| 43 | - govet |
| 44 | - ineffassign |
| 45 | - misspell |
| 46 | - gosec |
| 47 | #- unparam |
| 48 | |
| 49 | run: |
| 50 | modules-download-mode: vendor |
| 51 | |
| 52 | issues: |
| 53 | exclude-rules: |
| 54 | - text: "weak cryptographic primitive" |
| 55 | linters: |
| 56 | - gosec |
| 57 | exclude: |
Himani Chawla | 0cf608d | 2020-09-09 16:36:03 +0530 | [diff] [blame] | 58 | - "Error return value of `rxCallbackEntry.cbFunction` is not checked" |
| 59 | - "Error return value of `oo.sendNextRequest` is not checked" |
| 60 | - "Error return value of `oo.pDevOmciCC.send` is not checked" |
| 61 | - "Error return value of `onuDeviceEntry.mibDbClass` is not checked" |
khenaidoo | 42dcdfd | 2021-10-19 17:34:12 -0400 | [diff] [blame] | 62 | - "SA1019: voltha.ImageDownload is deprecated" |
Andrea Campanella | 8eee471 | 2020-08-25 17:35:24 +0200 | [diff] [blame] | 63 | exclude-use-default: false |