kubenetworks/kubevpn

View on GitHub
pkg/util/krew/main.go

Summary

Maintainability
A
1 hr
Test Coverage

Function main has 70 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func main() {
    // git describe --tags `git rev-list --tags --max-count=1`
    commitId, err2 := exec.Command("git", "rev-list", "--tags", "--max-count=1").Output()
    if err2 != nil {
        panic(err2)
Severity: Minor
Found in pkg/util/krew/main.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status