grokify/mogo

View on GitHub
type/maputil/map_string_int.go

Summary

Maintainability
A
35 mins
Test Coverage

Method MapStringInt.Sorted has 5 return statements (exceeds 4 allowed).
Open

func (msi MapStringInt) Sorted(sortBy string) []Record {
    sortBy = strings.ToLower(strings.TrimSpace(sortBy))
    records := []Record{}
    for name, count := range msi {
        records = append(records, Record{Name: name, Value: count})
Severity: Major
Found in type/maputil/map_string_int.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status