Disable excluding of issues about comments from golint.
Fix golint issues.
This commit is contained in:
parent
e8f189ab36
commit
b8197e2855
|
@ -41,3 +41,7 @@ linters:
|
|||
- unused
|
||||
- varcheck
|
||||
|
||||
issues:
|
||||
# The list of ids of default excludes to include or disable. By default it's empty.
|
||||
include:
|
||||
- EXC0002 # disable excluding of issues about comments from golint
|
||||
|
|
|
@ -18,6 +18,7 @@ import (
|
|||
"github.com/huawei-cloudnative/karmada/cmd/controller-manager/app/options"
|
||||
)
|
||||
|
||||
// NewLeaderElector builds a leader elector.
|
||||
func NewLeaderElector(opts *options.Options, fnStartControllers func(*options.Options, <-chan struct{})) (*leaderelection.LeaderElector, error) {
|
||||
const component = "controller-manager"
|
||||
rest.AddUserAgent(opts.KubeConfig, "leader-election")
|
||||
|
|
|
@ -23,6 +23,7 @@ type Options struct {
|
|||
LeaderElection componentbaseconfig.LeaderElectionConfiguration
|
||||
}
|
||||
|
||||
// NewOptions builds an empty options.
|
||||
func NewOptions() *Options {
|
||||
return &Options{}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue