Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [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 | check-shadowing: true |
| 18 | settings: |
| 19 | printf: |
| 20 | funcs: |
| 21 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof |
| 22 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf |
| 23 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf |
| 24 | - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf |
| 25 | golint: |
| 26 | min-confidence: 0 |
| 27 | |
| 28 | gocyclo: |
Devmalya Paul | 6f063a6 | 2020-02-19 19:19:06 -0500 | [diff] [blame^] | 29 | min-complexity: 17 |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 30 | |
| 31 | misspell: |
| 32 | locale: US |
| 33 | |
| 34 | linters: |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 35 | disable-all: true #TODO: enable default linters |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 36 | enable: |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 37 | #- gocritic |
| 38 | #- gochecknoglobals |
| 39 | #- gochecknoinits |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 40 | - gocyclo |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 41 | - gofmt |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 42 | - golint |
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 |
Kent Hagerman | e71b52d | 2020-02-26 11:13:42 -0500 | [diff] [blame] | 46 | #- unparam |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 47 | |
| 48 | run: |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 49 | modules-download-mode: vendor |
| 50 | |
| 51 | issues: |
| 52 | exclude-rules: |
| 53 | - text: "weak cryptographic primitive" |
| 54 | linters: |
| 55 | - gosec |
| 56 | exclude: |
| 57 | - "don't use underscores in Go names; method Adapter_descriptor" |
| 58 | - "don't use underscores in Go names; method Device_types" |
| 59 | - "don't use underscores in Go names; method Adopt_device" |
| 60 | - "don't use underscores in Go names; method Reconcile_device" |
| 61 | - "don't use underscores in Go names; method Abandon_device" |
| 62 | - "don't use underscores in Go names; method Disable_device" |
| 63 | - "don't use underscores in Go names; method Reenable_device" |
| 64 | - "don't use underscores in Go names; method Reboot_device" |
| 65 | - "don't use underscores in Go names; method Self_test_device" |
| 66 | - "don't use underscores in Go names; method Delete_device" |
| 67 | - "don't use underscores in Go names; method Get_device_details" |
| 68 | - "don't use underscores in Go names; method Update_flows_bulk" |
| 69 | - "don't use underscores in Go names; method Update_flows_incrementally" |
| 70 | - "don't use underscores in Go names; method Update_pm_config" |
| 71 | - "don't use underscores in Go names; method Receive_packet_out" |
Devmalya Paul | dd23a99 | 2019-11-14 07:06:31 +0000 | [diff] [blame] | 72 | - "don't use underscores in Go names; method Suppress_event" |
| 73 | - "don't use underscores in Go names; method Unsuppress_event" |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 74 | - "don't use underscores in Go names; method Get_ofp_device_info" |
| 75 | - "don't use underscores in Go names; method Get_ofp_port_info" |
| 76 | - "don't use underscores in Go names; method Process_inter_adapter_message" |
| 77 | - "don't use underscores in Go names; method Download_image" |
| 78 | - "don't use underscores in Go names; method Get_image_download_status" |
| 79 | - "don't use underscores in Go names; method Cancel_image_download" |
| 80 | - "don't use underscores in Go names; method Activate_image_update" |
| 81 | - "don't use underscores in Go names; method Revert_image_update" |
kesavand | 39e0aa3 | 2020-01-28 20:58:50 -0500 | [diff] [blame] | 82 | - "don't use underscores in Go names; method Disable_port" |
| 83 | - "don't use underscores in Go names; method Enable_port" |
Chaitrashree G S | 1a55b88 | 2020-02-04 17:35:35 -0500 | [diff] [blame] | 84 | - "don't use underscores in Go names; method Child_device_lost" |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 85 | exclude-use-default: false |