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: |
| 58 | - "don't use underscores in Go names; method Adapter_descriptor" |
| 59 | - "don't use underscores in Go names; method Device_types" |
| 60 | - "don't use underscores in Go names; method Adopt_device" |
| 61 | - "don't use underscores in Go names; method Reconcile_device" |
| 62 | - "don't use underscores in Go names; method Abandon_device" |
| 63 | - "don't use underscores in Go names; method Disable_device" |
| 64 | - "don't use underscores in Go names; method Reenable_device" |
| 65 | - "don't use underscores in Go names; method Reboot_device" |
| 66 | - "don't use underscores in Go names; method Self_test_device" |
| 67 | - "don't use underscores in Go names; method Delete_device" |
| 68 | - "don't use underscores in Go names; method Get_device_details" |
| 69 | - "don't use underscores in Go names; method Update_flows_bulk" |
| 70 | - "don't use underscores in Go names; method Update_flows_incrementally" |
| 71 | - "don't use underscores in Go names; method Update_pm_config" |
| 72 | - "don't use underscores in Go names; method Receive_packet_out" |
| 73 | - "don't use underscores in Go names; method Suppress_event" |
| 74 | - "don't use underscores in Go names; method Unsuppress_event" |
| 75 | - "don't use underscores in Go names; method Get_ofp_device_info" |
| 76 | - "don't use underscores in Go names; method Get_ofp_port_info" |
| 77 | - "don't use underscores in Go names; method Process_inter_adapter_message" |
| 78 | - "don't use underscores in Go names; method Download_image" |
| 79 | - "don't use underscores in Go names; method Get_image_download_status" |
| 80 | - "don't use underscores in Go names; method Cancel_image_download" |
| 81 | - "don't use underscores in Go names; method Activate_image_update" |
| 82 | - "don't use underscores in Go names; method Revert_image_update" |
| 83 | - "don't use underscores in Go names; method Disable_port" |
| 84 | - "don't use underscores in Go names; method Enable_port" |
| 85 | - "don't use underscores in Go names; method Child_device_lost" |
| 86 | - "don't use underscores in Go names; method Start_omci_test" |
| 87 | - "don't use underscores in Go names; method Get_ext_value" |
mpagenko | c8bba41 | 2021-01-15 15:38:44 +0000 | [diff] [blame] | 88 | - "don't use underscores in Go names; method Single_get_value_request" |
mpagenko | 8314427 | 2021-04-27 10:06:22 +0000 | [diff] [blame] | 89 | - "don't use underscores in Go names; method Download_onu_image" |
| 90 | - "don't use underscores in Go names; method Get_onu_image_status" |
| 91 | - "don't use underscores in Go names; method Abort_onu_image_upgrade" |
| 92 | - "don't use underscores in Go names; method Get_onu_images" |
| 93 | - "don't use underscores in Go names; method Activate_onu_image" |
| 94 | - "don't use underscores in Go names; method Commit_onu_image" |
Girish Gowdra | 50e5642 | 2021-06-01 16:46:04 -0700 | [diff] [blame] | 95 | - "don't use underscores in Go names; method Process_tech_profile_instance_request" |
Himani Chawla | 0cf608d | 2020-09-09 16:36:03 +0530 | [diff] [blame] | 96 | - "Error return value of `dh.coreProxy.PortStateUpdate` is not checked" |
| 97 | - "Error return value of `rxCallbackEntry.cbFunction` is not checked" |
| 98 | - "Error return value of `oo.sendNextRequest` is not checked" |
| 99 | - "Error return value of `oo.pDevOmciCC.send` is not checked" |
| 100 | - "Error return value of `onuDeviceEntry.mibDbClass` is not checked" |
| 101 | - "Error return value of `handler.rebootDevice` is not checked" |
Andrea Campanella | 8eee471 | 2020-08-25 17:35:24 +0200 | [diff] [blame] | 102 | exclude-use-default: false |