Preparing report...

Report for github.com/RoboCup-SSL/ssl-match-stats

A+    Excellent!    Found 19 issues across 23 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-match-stats/pkg/matchstats/gamePhaseDetector.go
    • Line 9: warning: exported type GamePhaseDetector should have comment or be unexported (golint)
    • Line 14: warning: exported function NewGamePhaseDetector should have comment or be unexported (golint)
    • Line 62: warning: exported method GamePhaseDetector.OnNewStage should have comment or be unexported (golint)
    • Line 90: warning: exported method GamePhaseDetector.OnNewCommand should have comment or be unexported (golint)
    • Line 101: warning: exported method GamePhaseDetector.OnLastRefereeMessage should have comment or be unexported (golint)
    • Line 105: warning: exported method GamePhaseDetector.OnNewRefereeMessage should have comment or be unexported (golint)
    • ssl-match-stats/pkg/sqldbexport/sqldbexporter.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type SqlDbExporter should have comment or be unexported (golint)
    • Line 17: warning: exported method SqlDbExporter.Connect should have comment or be unexported (golint)
    • ssl-match-stats/pkg/csvexport/aggregator/aggregator.go
    • Line 11: warning: exported type Aggregator should have comment or be unexported (golint)
    • Line 18: warning: exported function NewAggregator should have comment or be unexported (golint)
    • Line 24: warning: exported method Aggregator.Aggregate should have comment or be unexported (golint)
    • Line 38: warning: exported function AggregateGamePhaseDurations should have comment or be unexported (golint)
    • Line 79: warning: exported function AggregateGameEventDurations should have comment or be unexported (golint)
    • ssl-match-stats/pkg/sqldbexport/gamevents.go
    • Line 11: warning: exported type GameEventKind should have comment or be unexported (golint)
    • Line 14: warning: exported const GameEventKindApplied should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported method SqlDbExporter.WriteGameEvents should have comment or be unexported (golint)
    • Line 77: warning: exported method SqlDbExporter.FindAutoRefId should have comment or be unexported (golint)
    • ssl-match-stats/pkg/matchstats/metaDataProcessor.go
    • Line 10: warning: exported type MetaDataProcessor should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMetaDataProcessor should have comment or be unexported (golint)
    • Line 30: warning: exported method MetaDataProcessor.OnNewStage should have comment or be unexported (golint)
    • Line 40: warning: exported method MetaDataProcessor.OnNewCommand should have comment or be unexported (golint)
    • Line 49: warning: exported method MetaDataProcessor.OnFirstRefereeMessage should have comment or be unexported (golint)
    • Line 62: warning: exported method MetaDataProcessor.OnLastRefereeMessage should have comment or be unexported (golint)
    • Line 114: warning: exported method MetaDataProcessor.OnNewRefereeMessage should have comment or be unexported (golint)
    • ssl-match-stats/pkg/csvexport/gamePhaseDuration.go
    • Line 10: warning: exported function WriteGamePhaseDurations should have comment or be unexported (golint)
    • Line 30: warning: exported function WriteGamePhaseDurationStats should have comment or be unexported (golint)
    • Line 59: warning: exported function WriteGamePhaseDurationStatsAggregated should have comment or be unexported (golint)
    • ssl-match-stats/pkg/matchstats/generator.go
    • Line 12: warning: exported type Generator should have comment or be unexported (golint)
    • Line 17: warning: exported function NewGenerator should have comment or be unexported (golint)
    • Line 24: warning: exported method Generator.Process should have comment or be unexported (golint)
    • Line 71: warning: exported method Generator.OnNewStage should have comment or be unexported (golint)
    • Line 76: warning: exported method Generator.OnNewCommand should have comment or be unexported (golint)
    • Line 81: warning: exported method Generator.OnFirstRefereeMessage should have comment or be unexported (golint)
    • Line 85: warning: exported method Generator.OnLastRefereeMessage should have comment or be unexported (golint)
    • Line 90: warning: exported method Generator.OnNewRefereeMessage should have comment or be unexported (golint)
    • ssl-match-stats/pkg/matchstats/collector.go
    • Line 11: warning: exported type Collector should have comment or be unexported (golint)
    • Line 15: warning: exported function NewCollector should have comment or be unexported (golint)
    • Line 22: warning: exported method Collector.Process should have comment or be unexported (golint)
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 34: warning: exported method Collector.WriteJson should have comment or be unexported (golint)
    • Line 48: warning: exported method Collector.WriteBin should have comment or be unexported (golint)
    • Line 65: warning: exported method Collector.ReadBin 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!