Preparing report...

Report for github.com/dubbogo/timer

A    Great!    Found 4 issues across 8 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint62%

Golint is a linter for Go source code.

    • timer/count.go
    • Line 29: warning: exported type CountWatch should have comment or be unexported (golint)
    • Line 33: warning: exported method CountWatch.Start should have comment or be unexported (golint)
    • Line 40: warning: exported method CountWatch.Reset should have comment or be unexported (golint)
    • Line 44: warning: exported method CountWatch.Count should have comment or be unexported (golint)
    • timer/time.go
    • Line 26: warning: exported function TimeDayDuratioin should have comment or be unexported (golint)
    • Line 30: warning: exported function TimeHourDuratioin should have comment or be unexported (golint)
    • Line 34: warning: exported function TimeMinuteDuration should have comment or be unexported (golint)
    • Line 38: warning: exported function TimeSecondDuration should have comment or be unexported (golint)
    • Line 42: warning: exported function TimeMillisecondDuration should have comment or be unexported (golint)
    • Line 46: warning: exported function TimeMicrosecondDuration should have comment or be unexported (golint)
    • Line 50: warning: exported function TimeNanosecondDuration should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function YMD should be of the form "YMD ..." (golint)
    • Line 62: warning: comment on exported function YMDUTC should be of the form "YMDUTC ..." (golint)
    • Line 67: warning: exported function YMDPrint should have comment or be unexported (golint)
    • Line 71: warning: exported function Future should have comment or be unexported (golint)
    • Line 75: warning: exported function Unix2Time should have comment or be unexported (golint)
    • Line 79: warning: exported function UnixNano2Time should have comment or be unexported (golint)
    • Line 83: warning: exported function UnixString2Time should have comment or be unexported (golint)
    • Line 92: warning: comment on exported function Time2Unix should be of the form "Time2Unix ..." (golint)
    • Line 97: warning: exported function Time2UnixNano should have comment or be unexported (golint)
    • Line 101: warning: exported function GetEndtime should have comment or be unexported (golint)
    • timer/timer.go
    • Line 35: warning: comment on exported var ErrTimeChannelFull should be of the form "ErrTimeChannelFull ..." (golint)
    • Line 37: warning: comment on exported var ErrTimeChannelClosed should be of the form "ErrTimeChannelClosed ..." (golint)
    • Line 48: warning: exported function GetDefaultTimerWheel should have comment or be unexported (golint)
    • Line 129: warning: exported const ADD_TIMER should have comment (or a comment on this block) or be unexported (golint)
    • Line 497: warning: exported const TimerOnce should have comment (or a comment on this block) or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!