blob: 45b224ea94e8f3b581b889e3d8775e342df681c4 [file] [log] [blame]
Girish Gowdru6a80bbd2019-07-02 07:36:09 -07001#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:
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070017 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:
Devmalya Paul6f063a62020-02-19 19:19:06 -050028 min-complexity: 17
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070029
30 misspell:
31 locale: US
32
33linters:
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070034 enable:
Kent Hagermane71b52d2020-02-26 11:13:42 -050035 #- gocritic
36 #- gochecknoglobals
37 #- gochecknoinits
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070038 - gocyclo
Kent Hagermane71b52d2020-02-26 11:13:42 -050039 - gofmt
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070040 - golint
Kent Hagermane71b52d2020-02-26 11:13:42 -050041 - govet
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070042 - ineffassign
43 - misspell
Andrey Pozolotinff797a92020-08-14 01:54:57 +020044 - gosec
Kent Hagermane71b52d2020-02-26 11:13:42 -050045 #- unparam
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070046
47run:
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070048 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"
Devmalya Pauldd23a992019-11-14 07:06:31 +000071 - "don't use underscores in Go names; method Suppress_event"
72 - "don't use underscores in Go names; method Unsuppress_event"
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070073 - "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"
kesavand39e0aa32020-01-28 20:58:50 -050081 - "don't use underscores in Go names; method Disable_port"
82 - "don't use underscores in Go names; method Enable_port"
Chaitrashree G S1a55b882020-02-04 17:35:35 -050083 - "don't use underscores in Go names; method Child_device_lost"
Scott Baker24f83e22020-03-30 16:14:28 -070084 - "don't use underscores in Go names; method Start_omci_test"
Andrea Campanella9931ad62020-04-28 15:11:06 +020085 - "don't use underscores in Go names; method Get_ext_value"
kesavand62126212021-01-12 04:56:06 -050086 - "don't use underscores in Go names; method Single_get_value_request"
Girish Gowdru6a80bbd2019-07-02 07:36:09 -070087 exclude-use-default: false