horizoncd/horizon

View on GitHub
pkg/cluster/tekton/client.go

Summary

Maintainability
A
35 mins
Test Coverage
F
47%

Showing 1 of 1 total issue

Function InitClient has 5 return statements (exceeds 4 allowed).
Open

func InitClient(kubeconfig string) (*Client, error) {
var config *rest.Config
var err error
 
// startWith "/", kubeconfig is a filePath, else kubeconfig is fileContent
Severity: Major
Found in pkg/cluster/tekton/client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status