zephinzer/dev

View on GitHub
internal/config/repositories.go

Summary

Maintainability
A
35 mins
Test Coverage
B
87%

Method Repositories.Less has 5 return statements (exceeds 4 allowed).
Open

func (r Repositories) Less(i, j int) bool {
    if len(r[i].Name) > 0 && len(r[j].Name) > 0 {
        comparison := strings.Compare(r[i].Name, r[j].Name)
        if comparison != 0 {
            return comparison <= 0
Severity: Major
Found in internal/config/repositories.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status