Preparing report...

Report for github.com/fergusstrange/roundofbeer

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


golint41%

Golint is a linter for Go source code.

    • roundofbeer/api/round/round.go
    • Line 10: warning: exported type WithToken should have comment or be unexported (golint)
    • Line 16: warning: exported type Round should have comment or be unexported (golint)
    • Line 22: warning: exported type Participant should have comment or be unexported (golint)
    • Line 28: warning: exported function EncodeRoundToken should have comment or be unexported (golint)
    • Line 38: warning: exported function TransformRound should have comment or be unexported (golint)
    • Line 64: warning: exported function ParticipantsFromRound should have comment or be unexported (golint)
    • roundofbeer/api/jwt/jwt.go
    • Line 11: warning: exported type Helper should have comment or be unexported (golint)
    • Line 15: warning: exported type RoundToken should have comment or be unexported (golint)
    • Line 20: warning: exported function NewHelper should have comment or be unexported (golint)
    • Line 26: warning: exported method Helper.Encode should have comment or be unexported (golint)
    • Line 34: warning: exported method Helper.Decode should have comment or be unexported (golint)
    • roundofbeer/api/handlers/join/join_round.go
    • Line 12: warning: exported type RoundRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type ServiceContext should have comment or be unexported (golint)
    • Line 20: warning: exported function Handler should have comment or be unexported (golint)
    • Line 30: warning: exported function NewServiceContext should have comment or be unexported (golint)
    • Line 36: warning: exported method ServiceContext.ServiceHandler should have comment or be unexported (golint)
    • roundofbeer/api/persistence/persistence.go
    • Line 12: warning: exported type Persistence should have comment or be unexported (golint)
    • Line 19: warning: exported type DynamoDBPersistence should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDynamoDBPersistence should have comment or be unexported (golint)
    • Line 29: warning: exported type Round should have comment or be unexported (golint)
    • Line 37: warning: exported type Participant should have comment or be unexported (golint)
    • Line 43: warning: exported method DynamoDBPersistence.CreateRoundTable should have comment or be unexported (golint)
    • Line 58: warning: exported method DynamoDBPersistence.CreateRound should have comment or be unexported (golint)
    • Line 66: warning: exported method DynamoDBPersistence.FetchRound should have comment or be unexported (golint)
    • Line 78: warning: exported method DynamoDBPersistence.UpdateParticipantsAndCurrentCandidate should have comment or be unexported (golint)
    • roundofbeer/api/handlers/read/read_round.go
    • Line 11: warning: exported type ServiceContext should have comment or be unexported (golint)
    • Line 15: warning: exported function Handler should have comment or be unexported (golint)
    • Line 23: warning: exported function NewServiceContext should have comment or be unexported (golint)
    • Line 29: warning: exported method ServiceContext.ServiceHandler should have comment or be unexported (golint)
    • roundofbeer/api/app/app.go
    • Line 15: warning: exported type Application should have comment or be unexported (golint)
    • Line 21: warning: exported function NewApplication should have comment or be unexported (golint)
    • Line 29: warning: exported method Application.Initialise should have comment or be unexported (golint)
    • Line 33: warning: exported method Application.Run should have comment or be unexported (golint)
    • Line 37: warning: exported type ApplicationModule should have comment or be unexported (golint)
    • Line 44: warning: exported function NewApplicationModule should have comment or be unexported (golint)
    • Line 53: warning: exported function Handlers should have comment or be unexported (golint)
    • roundofbeer/api/handlers/create/create_round.go
    • Line 13: warning: exported type Request should have comment or be unexported (golint)
    • Line 17: warning: exported type ServiceContext should have comment or be unexported (golint)
    • Line 21: warning: exported function Handler should have comment or be unexported (golint)
    • Line 29: warning: exported function NewServiceContext should have comment or be unexported (golint)
    • Line 35: warning: exported method ServiceContext.ServiceHandler should have comment or be unexported (golint)
    • roundofbeer/api/handlers/next/next_round.go
    • Line 11: warning: exported type Response should have comment or be unexported (golint)
    • Line 15: warning: exported type ServiceContext should have comment or be unexported (golint)
    • Line 19: warning: exported function Handler should have comment or be unexported (golint)
    • Line 27: warning: exported function NewServiceContext should have comment or be unexported (golint)
    • Line 33: warning: exported method ServiceContext.ServiceHandler should have comment or be unexported (golint)
    • roundofbeer/api/testfixtures/test_fixtures.go
    • Line 8: warning: exported type MockPersistence should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockPersistence should have comment or be unexported (golint)
    • Line 18: warning: exported method MockPersistence.CreateRoundTable should have comment or be unexported (golint)
    • Line 20: warning: exported method MockPersistence.CreateRound should have comment or be unexported (golint)
    • Line 24: warning: exported method MockPersistence.FetchRound should have comment or be unexported (golint)
    • Line 28: warning: exported method MockPersistence.UpdateParticipantsAndCurrentCandidate should have comment or be unexported (golint)
    • Line 33: warning: exported method MockPersistence.NewTestRound should have comment or be unexported (golint)
    • Line 39: warning: exported function NewTestRound 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!