grokify/mogo

View on GitHub
time/month/strconv.go

Summary

Maintainability
A
1 hr
Test Coverage

Function DT6sToString has 6 return statements (exceeds 4 allowed).
Open

func DT6sToString(startDT6, endDT6 int32, layout, presentText, prefixText, joinText, suffixText string) (string, error) {
    if startDT6 <= 0 && endDT6 <= 0 {
        return "", nil
    }
    startText, endText, err := DT6sToStrings(startDT6, endDT6, layout, presentText)
Severity: Major
Found in time/month/strconv.go - About 40 mins to fix

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

    func StartEndDT6s(dt6s []int32) (int32, int32) {
        if len(dt6s) == 0 {
            return -1, -1
        }
    
    
    Severity: Major
    Found in time/month/strconv.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status