particledecay/kconf

View on GitHub
pkg/kubeconfig/write.go

Summary

Maintainability
A
1 hr
Test Coverage
A
93%

Showing 1 of 1 total issue

Method KConf.Merge has a Cognitive Complexity of 26 (exceeds 20 allowed). Consider refactoring.
Open

func (k *KConf) Merge(config *clientcmdapi.Config, name string) {
renamedClusters := make(map[string]string)
renamedUsers := make(map[string]string)
 
for clsName, cls := range config.Clusters {
Severity: Minor
Found in pkg/kubeconfig/write.go - About 1 hr to fix
Category
Status