Preparing report...

Report for github.com/stevepartridge/mlb

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


golint57%

Golint is a linter for Go source code.

    • mlb/api.go
    • Line 17: warning: exported method Mlb.Call should have comment or be unexported (golint)
    • mlb/api_models.go
    • Line 3: warning: exported type Response should have comment or be unexported (golint)
    • Line 17: warning: exported type Date should have comment or be unexported (golint)
    • Line 26: warning: exported type Game should have comment or be unexported (golint)
    • Line 55: warning: exported type GameStatus should have comment or be unexported (golint)
    • Line 63: warning: exported type Venue should have comment or be unexported (golint)
    • Line 69: warning: exported type Event should have comment or be unexported (golint)
    • Line 71: warning: exported type GameTeam should have comment or be unexported (golint)
    • Line 80: warning: exported type Team should have comment or be unexported (golint)
    • Line 99: warning: exported type LeagueRecord should have comment or be unexported (golint)
    • Line 105: warning: exported type Sport should have comment or be unexported (golint)
    • Line 111: warning: exported type League should have comment or be unexported (golint)
    • Line 118: warning: exported type Division should have comment or be unexported (golint)
    • mlb/divisions.go
    • Line 8: warning: exported const AmericanLeagueEast should have comment (or a comment on this block) or be unexported (golint)
    • mlb/games.go
    • Line 9: warning: comment on exported method Mlb.GetGamesByDate should be of the form "GetGamesByDate ..." (golint)
    • Line 14: warning: comment on exported method Mlb.GetGamesByDateRange should be of the form "GetGamesByDateRange ..." (golint)
    • Line 19: warning: comment on exported method Mlb.GetGamesByDateForTeam should be of the form "GetGamesByDateForTeam ..." (golint)
    • Line 24: warning: comment on exported method Mlb.GetGamesByDateRangeForTeam should be of the form "GetGamesByDateRangeForTeam ..." (golint)
    • Line 29: warning: exported method Mlb.GetGames should have comment or be unexported (golint)
    • mlb/mlb.go
    • Line 7: warning: exported type Mlb should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • mlb/teams.go
    • Line 8: warning: exported const Angels should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported method Mlb.GetTeams 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!