Preparing report...

Report for github.com/vlorc/timer

A    Great!    Found 7 issues across 8 files

Tweet

gofmt75%

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


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!


golint12%

Golint is a linter for Go source code.

    • timer/timer.go
    • Line 6: warning: exported type Complete should have comment or be unexported (golint)
    • Line 8: warning: exported type Timer should have comment or be unexported (golint)
    • Line 43: warning: exported function NewTimer should have comment or be unexported (golint)
    • Line 52: warning: exported function NewTimerTable should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTimerPeriodic should have comment or be unexported (golint)
    • Line 77: warning: exported function NewTimerCustom should have comment or be unexported (golint)
    • Line 92: warning: exported method Timer.Cancel should have comment or be unexported (golint)
    • timer/timing.go
    • Line 13: warning: exported type OperationCode should have comment or be unexported (golint)
    • Line 16: warning: exported const OP_REMOVE should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Operation should have comment or be unexported (golint)
    • Line 26: warning: exported type TimingWheel should have comment or be unexported (golint)
    • Line 40: warning: exported function Default should have comment or be unexported (golint)
    • Line 52: warning: exported function NewTimingWheel should have comment or be unexported (golint)
    • Line 79: warning: exported method TimingWheel.Count should have comment or be unexported (golint)
    • Line 83: warning: exported method TimingWheel.Step should have comment or be unexported (golint)
    • Line 97: warning: exported method TimingWheel.Wait should have comment or be unexported (golint)
    • Line 101: warning: exported method TimingWheel.After should have comment or be unexported (golint)
    • Line 128: warning: exported method TimingWheel.At should have comment or be unexported (golint)
    • Line 132: warning: exported method TimingWheel.AtInterval should have comment or be unexported (golint)
    • Line 152: warning: exported method TimingWheel.AfterInterval should have comment or be unexported (golint)
    • Line 156: warning: exported method TimingWheel.Interval should have comment or be unexported (golint)
    • Line 160: warning: exported method TimingWheel.Add should have comment or be unexported (golint)
    • Line 164: warning: exported method TimingWheel.Cancel should have comment or be unexported (golint)
    • Line 170: warning: exported method TimingWheel.Start should have comment or be unexported (golint)
    • Line 182: warning: exported method TimingWheel.Stop should have comment or be unexported (golint)
    • timer/types.go
    • Line 6: warning: exported type Scheduler should have comment or be unexported (golint)
    • Line 12: warning: exported type Dispatcher should have comment or be unexported (golint)
    • timer/wheel.go
    • Line 10: warning: exported type Wheel should have comment or be unexported (golint)
    • Line 30: warning: exported function NewWheel should have comment or be unexported (golint)
    • Line 42: warning: exported method Wheel.Push should have comment or be unexported (golint)
    • Line 46: warning: exported method Wheel.Pop should have comment or be unexported (golint)
    • Line 53: warning: exported method Wheel.Clear should have comment or be unexported (golint)
    • Line 60: warning: exported method Wheel.Slot should have comment or be unexported (golint)
    • Line 70: warning: exported method Wheel.Step should have comment or be unexported (golint)
    • timer/dispatcher.go
    • Line 10: warning: exported type HashDispatcher should have comment or be unexported (golint)
    • Line 16: warning: exported function NewHashDispatcher should have comment or be unexported (golint)
    • Line 30: warning: exported method HashDispatcher.Start should have comment or be unexported (golint)
    • Line 38: warning: exported method HashDispatcher.Stop should have comment or be unexported (golint)
    • Line 46: warning: exported method HashDispatcher.Dispatch should have comment or be unexported (golint)
    • Line 51: warning: exported type QueueDispatcher should have comment or be unexported (golint)
    • Line 57: warning: exported function NewQueueDispatcher should have comment or be unexported (golint)
    • Line 64: warning: exported method QueueDispatcher.Start should have comment or be unexported (golint)
    • Line 74: warning: exported method QueueDispatcher.Stop should have comment or be unexported (golint)
    • Line 79: warning: exported method QueueDispatcher.Dispatch should have comment or be unexported (golint)
    • Line 90: warning: exported type SimpleDispatcher should have comment or be unexported (golint)
    • Line 92: warning: exported function NewSimpleDispatcher should have comment or be unexported (golint)
    • Line 95: warning: exported method SimpleDispatcher.Start should have comment or be unexported (golint)
    • Line 97: warning: exported method SimpleDispatcher.Stop should have comment or be unexported (golint)
    • Line 99: warning: exported method SimpleDispatcher.Dispatch should have comment or be unexported (golint)
    • timer/scheduler.go
    • Line 6: warning: exported type SimpleScheduler should have comment or be unexported (golint)
    • Line 10: warning: exported function NewSimpleScheduler should have comment or be unexported (golint)
    • Line 15: warning: exported method SimpleScheduler.Start should have comment or be unexported (golint)
    • Line 19: warning: exported method SimpleScheduler.Stop should have comment or be unexported (golint)
    • Line 23: warning: exported method SimpleScheduler.Schedule should have comment or be unexported (golint)
    • Line 27: warning: exported type EmptyScheduler should have comment or be unexported (golint)
    • Line 29: warning: exported function NewEmptyScheduler should have comment or be unexported (golint)
    • Line 33: warning: exported method EmptyScheduler.Start should have comment or be unexported (golint)
    • Line 37: warning: exported method EmptyScheduler.Stop should have comment or be unexported (golint)
    • Line 41: warning: exported method EmptyScheduler.Schedule should have comment or be unexported (golint)
    • timer/slot.go
    • Line 6: warning: exported type Slot should have comment or be unexported (golint)
    • Line 11: warning: exported function NewSlot should have comment or be unexported (golint)
    • Line 15: warning: exported method Slot.Front should have comment or be unexported (golint)
    • Line 19: warning: exported method Slot.Len should have comment or be unexported (golint)
    • Line 23: warning: exported method Slot.Back should have comment or be unexported (golint)
    • Line 30: warning: exported method Slot.Clear should have comment or be unexported (golint)
    • Line 35: warning: exported method Slot.Push should have comment or be unexported (golint)
    • Line 52: warning: exported method Slot.Pop should have comment or be unexported (golint)
    • Line 70: warning: exported method Slot.Remove should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!