Preparing report...

Report for github.com/koangel/grapeTimer

A    Great!    Found 6 issues across 6 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!


gocyclo83%

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.


golint0%

Golint is a linter for Go source code.

    • grapeTimer/timerCaller.go
    • Line 1: warning: package comment should be of the form "Package grapeTimer ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; grapeTimer should be grapetimer (golint)
    • Line 8: warning: comment on exported function NewTickerOnce should be of the form "NewTickerOnce ..." (golint)
    • Line 14: warning: comment on exported function NewFromJson should be of the form "NewFromJson ..." (golint)
    • Line 29: warning: comment on exported function NewTickerLoop should be of the form "NewTickerLoop ..." (golint)
    • Line 47: warning: comment on exported function NewTimeDataOnce should be of the form "NewTimeDataOnce ..." (golint)
    • Line 52: warning: exported function NewTimeDataLoop should have comment or be unexported (golint)
    • Line 67: warning: exported function StopTimer should have comment or be unexported (golint)
    • Line 71: warning: exported function String should have comment or be unexported (golint)
    • Line 75: warning: exported function Format should have comment or be unexported (golint)
    • Line 79: warning: exported function List should have comment or be unexported (golint)
    • Line 83: warning: comment on exported function ToJson should be of the form "ToJson ..." (golint)
    • Line 88: warning: exported function SaveAll should have comment or be unexported (golint)
    • grapeTimer/timerExecute.go
    • Line 1: warning: package comment should be of the form "Package grapeTimer ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; grapeTimer should be grapetimer (golint)
    • Line 27: warning: exported type GrapeExecFn should have comment or be unexported (golint)
    • Line 41: warning: exported type GrapeTimer should have comment or be unexported (golint)
    • Line 76: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 91: warning: exported function PanicTrace should have comment or be unexported (golint)
    • Line 196: warning: exported method GrapeTimer.Format should have comment or be unexported (golint)
    • Line 200: warning: comment on exported method GrapeTimer.Execute should be of the form "Execute ..." (golint)
    • Line 226: warning: comment on exported method GrapeTimer.IsExpired should be of the form "IsExpired ..." (golint)
    • Line 238: warning: comment on exported method GrapeTimer.IsDestroy should be of the form "IsDestroy ..." (golint)
    • Line 300: warning: exported method GrapeTimer.Stop should have comment or be unexported (golint)
    • Line 314: warning: exported method GrapeTimer.ParserJson should have comment or be unexported (golint)
    • grapeTimer/timerParser.go
    • Line 1: warning: package comment should be of the form "Package grapeTimer ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; grapeTimer should be grapetimer (golint)
    • Line 17: warning: exported const TimeFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported const DayRegexp should be of the form "DayRegexp ..." (golint)
    • Line 22: warning: comment on exported const WeekRegexp should be of the form "WeekRegexp ..." (golint)
    • Line 24: warning: comment on exported const MonthRegexp should be of the form "MonthRegexp ..." (golint)
    • Line 30: warning: exported const Day should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: don't use underscores in Go names; const error_badFormat should be errorBadFormat (golint)
    • Line 38: warning: don't use underscores in Go names; const error_monthDay should be errorMonthDay (golint)
    • Line 39: warning: don't use underscores in Go names; const error_badLocation should be errorBadLocation (golint)
    • Line 40: warning: don't use underscores in Go names; const error_badWeekDay should be errorBadWeekDay (golint)
    • Line 43: warning: exported var DayCRegexp should have comment or be unexported (golint)
    • Line 44: warning: exported var WeekCRegexp should have comment or be unexported (golint)
    • Line 45: warning: exported var MonthCRegexp should have comment or be unexported (golint)
    • Line 67: warning: exported function AtTime should have comment or be unexported (golint)
    • Line 76: warning: comment on exported function Parser should be of the form "Parser ..." (golint)
    • Line 86: warning: comment on exported function ParserLoc should be of the form "ParserLoc ..." (golint)
    • grapeTimer/timerScheduler.go
    • Line 1: warning: package comment should be of the form "Package grapeTimer ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; grapeTimer should be grapetimer (golint)
    • Line 17: warning: exported const LoopOnce should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: comment on exported var CDebugMode should be of the form "CDebugMode ..." (golint)
    • Line 25: warning: comment on exported var UseAsyncExec should be of the form "UseAsyncExec ..." (golint)
    • Line 28: warning: comment on exported var SkipWaitTask should be of the form "SkipWaitTask ..." (golint)
    • Line 32: warning: comment on exported var RecoverPanic should be of the form "RecoverPanic ..." (golint)
    • Line 37: warning: comment on exported var RestartTask should be of the form "RestartTask ..." (golint)
    • Line 40: warning: comment on exported var RetryCount should be of the form "RetryCount ..." (golint)
    • Line 45: warning: comment on exported var LocationFormat should be of the form "LocationFormat ..." (golint)
    • Line 49: warning: exported type GrapeScheduler should have comment or be unexported (golint)
    • Line 60: warning: exported var GScheduler should have comment or be unexported (golint)
    • Line 62: warning: comment on exported function InitGrapeScheduler should be of the form "InitGrapeScheduler ..." (golint)
    • Line 88: warning: exported function PeekNextId should have comment or be unexported (golint)
    • Line 96: warning: exported function SetCreateGUID should have comment or be unexported (golint)
    • Line 100: warning: exported function SetGuidSeed should have comment or be unexported (golint)
    • Line 109: warning: comment on exported method GrapeScheduler.StopTimer should be of the form "StopTimer ..." (golint)
    • Line 127: warning: comment on exported method GrapeScheduler.List should be of the form "List ..." (golint)
    • Line 164: warning: exported method GrapeScheduler.Format should have comment or be unexported (golint)
    • Line 182: warning: exported method GrapeScheduler.ToJson should have comment or be unexported (golint)
    • Line 200: warning: exported method GrapeScheduler.SaveAll should have comment or be unexported (golint)
    • grapeTimer/cmd/main.go
    • Line 11: warning: exported var RunTick should have comment or be unexported (golint)
    • Line 13: warning: exported function OnOnceTick should have comment or be unexported (golint)
    • Line 19: warning: exported function OnOnceDayTick should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!