Preparing report...

Report for github.com/RoboCup-SSL/ssl-quality-inspector

A+    Excellent!    Found 14 issues across 17 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!


golint17%

Golint is a linter for Go source code.

    • ssl-quality-inspector/pkg/vision/visionStats.go
    • Line 8: warning: exported type Stats should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStats should have comment or be unexported (golint)
    • Line 23: warning: exported method Stats.Log should have comment or be unexported (golint)
    • Line 28: warning: exported method Stats.Process should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/network/multicast-sources.go
    • Line 12: warning: exported type MulticastSourceWatcher should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMulticastSourceWatcher should have comment or be unexported (golint)
    • Line 22: warning: exported method MulticastSourceWatcher.GetSources should have comment or be unexported (golint)
    • Line 30: warning: exported method MulticastSourceWatcher.Watch should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/sslnet/multicast_server.go
    • Line 12: warning: exported type MulticastServer should have comment or be unexported (golint)
    • Line 21: warning: exported function NewMulticastServer should have comment or be unexported (golint)
    • Line 27: warning: exported method MulticastServer.Start should have comment or be unexported (golint)
    • Line 32: warning: exported method MulticastServer.Stop should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/timing/timing.go
    • Line 10: warning: exported type Timing should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTiming should have comment or be unexported (golint)
    • Line 27: warning: exported method Timing.Clear should have comment or be unexported (golint)
    • Line 33: warning: exported method Timing.Add should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/vision/objectStats.go
    • Line 9: warning: exported type ObjectStats should have comment or be unexported (golint)
    • Line 16: warning: exported type Detection should have comment or be unexported (golint)
    • Line 21: warning: exported function NewObjectStats should have comment or be unexported (golint)
    • Line 38: warning: exported method ObjectStats.Velocity should have comment or be unexported (golint)
    • Line 45: warning: exported method ObjectStats.Add should have comment or be unexported (golint)
    • Line 51: warning: exported method ObjectStats.Prune should have comment or be unexported (golint)
    • Line 55: warning: exported method ObjectStats.Clear should have comment or be unexported (golint)
    • Line 59: warning: exported method ObjectStats.Age should have comment or be unexported (golint)
    • Line 63: warning: exported method ObjectStats.TimeSinceLastDetection should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/clock/clock.go
    • Line 10: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 16: warning: exported type Data should have comment or be unexported (golint)
    • Line 21: warning: exported function NewWatcher should have comment or be unexported (golint)
    • Line 31: warning: exported method Watcher.GetData should have comment or be unexported (golint)
    • Line 37: warning: exported method Watcher.Watch should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/vision/camStats.go
    • Line 13: warning: exported type CamStats should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCamStats should have comment or be unexported (golint)
    • Line 53: warning: exported method CamStats.Clear should have comment or be unexported (golint)
    • Line 65: warning: exported method CamStats.Merge should have comment or be unexported (golint)
    • Line 125: warning: exported method CamStats.Prune should have comment or be unexported (golint)
    • Line 147: warning: exported method CamStats.NumVisibleRobots should have comment or be unexported (golint)
    • Line 157: warning: exported method CamStats.GetBallStats should have comment or be unexported (golint)
    • Line 177: warning: exported method CamStats.GetRobotStats should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/vision/robotId.go
    • Line 5: warning: exported type TeamColor should have comment or be unexported (golint)
    • Line 8: warning: exported const TeamYellow should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type RobotId should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRobotId should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/timing/frameStats.go
    • Line 10: warning: exported type FrameStats should have comment or be unexported (golint)
    • Line 18: warning: exported function NewFrameStats should have comment or be unexported (golint)
    • Line 26: warning: exported method FrameStats.Add should have comment or be unexported (golint)
    • Line 37: warning: exported method FrameStats.Prune should have comment or be unexported (golint)
    • Line 48: warning: exported method FrameStats.Clear should have comment or be unexported (golint)
    • Line 56: warning: exported method FrameStats.Quality should have comment or be unexported (golint)
    • Line 73: warning: exported method FrameStats.DeltaTime should have comment or be unexported (golint)
    • Line 91: warning: exported method FrameStats.NumFrames should have comment or be unexported (golint)
    • ssl-quality-inspector/pkg/timing/fps.go
    • Line 8: warning: exported type Fps should have comment or be unexported (golint)
    • Line 14: warning: exported function NewFps should have comment or be unexported (golint)
    • Line 21: warning: exported method Fps.Inc should have comment or be unexported (golint)
    • Line 38: warning: exported method Fps.Clear should have comment or be unexported (golint)
    • Line 44: warning: exported method Fps.Float32 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!