grokify/mogo

View on GitHub
time/timeutil/timemore.go

Summary

Maintainability
A
3 hrs
Test Coverage

TimeMore has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

type TimeMore struct {
    time         time.Time
    weekStartDay time.Weekday
}
Severity: Minor
Found in time/timeutil/timemore.go - About 2 hrs to fix

    Method TimeMore.SeasonMeteorological has 5 return statements (exceeds 4 allowed).
    Open

    func (tm TimeMore) SeasonMeteorological() Yearquarter {
        m := tm.time.Month()
        if m < 3 {
            return Winter // Starts December 1
        } else if m < 6 {
    Severity: Major
    Found in time/timeutil/timemore.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status