blob: c645c98c6fbe442f42c8a753cc75ee779c1566a7 [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
32
33linters:
34 enable:
35 #- gocritic
36 #- gochecknoglobals
37 #- gochecknoinits
38 - gocyclo
39 - gofmt
40 - golint
41 - govet
42 - ineffassign
43 - misspell
44 - gosec
45 #- unparam
46
47run:
48 modules-download-mode: vendor
49
50issues:
51 exclude-rules:
52 - text: "weak cryptographic primitive"
53 linters:
54 - gosec
55 exclude:
56 - "don't use underscores in Go names; method Adapter_descriptor"
57 - "don't use underscores in Go names; method Device_types"
58 - "don't use underscores in Go names; method Adopt_device"
59 - "don't use underscores in Go names; method Reconcile_device"
60 - "don't use underscores in Go names; method Abandon_device"
61 - "don't use underscores in Go names; method Disable_device"
62 - "don't use underscores in Go names; method Reenable_device"
63 - "don't use underscores in Go names; method Reboot_device"
64 - "don't use underscores in Go names; method Self_test_device"
65 - "don't use underscores in Go names; method Delete_device"
66 - "don't use underscores in Go names; method Get_device_details"
67 - "don't use underscores in Go names; method Update_flows_bulk"
68 - "don't use underscores in Go names; method Update_flows_incrementally"
69 - "don't use underscores in Go names; method Update_pm_config"
70 - "don't use underscores in Go names; method Receive_packet_out"
71 - "don't use underscores in Go names; method Suppress_event"
72 - "don't use underscores in Go names; method Unsuppress_event"
73 - "don't use underscores in Go names; method Get_ofp_device_info"
74 - "don't use underscores in Go names; method Get_ofp_port_info"
75 - "don't use underscores in Go names; method Process_inter_adapter_message"
76 - "don't use underscores in Go names; method Download_image"
77 - "don't use underscores in Go names; method Get_image_download_status"
78 - "don't use underscores in Go names; method Cancel_image_download"
79 - "don't use underscores in Go names; method Activate_image_update"
80 - "don't use underscores in Go names; method Revert_image_update"
81 - "don't use underscores in Go names; method Disable_port"
82 - "don't use underscores in Go names; method Enable_port"
83 - "don't use underscores in Go names; method Child_device_lost"
84 - "don't use underscores in Go names; method Start_omci_test"
85 - "don't use underscores in Go names; method Get_ext_value"
mpagenkoc8bba412021-01-15 15:38:44 +000086 - "don't use underscores in Go names; method Single_get_value_request"
mpagenko83144272021-04-27 10:06:22 +000087 - "don't use underscores in Go names; method Download_onu_image"
88 - "don't use underscores in Go names; method Get_onu_image_status"
89 - "don't use underscores in Go names; method Abort_onu_image_upgrade"
90 - "don't use underscores in Go names; method Get_onu_images"
91 - "don't use underscores in Go names; method Activate_onu_image"
92 - "don't use underscores in Go names; method Commit_onu_image"
Girish Gowdra50e56422021-06-01 16:46:04 -070093 - "don't use underscores in Go names; method Process_tech_profile_instance_request"
Himani Chawla0cf608d2020-09-09 16:36:03 +053094 - "Error return value of `dh.coreProxy.PortStateUpdate` is not checked"
95 - "Error return value of `rxCallbackEntry.cbFunction` is not checked"
96 - "Error return value of `oo.sendNextRequest` is not checked"
97 - "Error return value of `oo.pDevOmciCC.send` is not checked"
98 - "Error return value of `onuDeviceEntry.mibDbClass` is not checked"
99 - "Error return value of `handler.rebootDevice` is not checked"
Andrea Campanella8eee4712020-08-25 17:35:24 +0200100 exclude-use-default: false