blob: 7478787cee519a629eca90435d43eb3c19a5b8a2 [file] [log] [blame]
Andrea Campanella8eee4712020-08-25 17:35:24 +02001#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
15linters-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 Hildebrandtd4d66e92020-10-27 15:40:08 +000028 min-complexity: 20
Andrea Campanella8eee4712020-08-25 17:35:24 +020029
30 misspell:
31 locale: US
mpagenko38662d02021-08-11 09:45:19 +000032 ignore-words:
33 - cancelled
Andrea Campanella8eee4712020-08-25 17:35:24 +020034
35linters:
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
49run:
50 modules-download-mode: vendor
51
52issues:
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"
mpagenkoc8bba412021-01-15 15:38:44 +000088 - "don't use underscores in Go names; method Single_get_value_request"
mpagenko83144272021-04-27 10:06:22 +000089 - "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 Gowdra50e56422021-06-01 16:46:04 -070095 - "don't use underscores in Go names; method Process_tech_profile_instance_request"
Himani Chawla0cf608d2020-09-09 16:36:03 +053096 - "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 Campanella8eee4712020-08-25 17:35:24 +0200102 exclude-use-default: false