Preparing report...

Report for github.com/intercom/speakeasy

A    Great!    Found 6 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!


golint37%

Golint is a linter for Go source code.

    • speakeasy/server.go
    • Line 10: warning: exported type Server should have comment or be unexported (golint)
    • Line 15: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 22: warning: exported type Engine should have comment or be unexported (golint)
    • Line 26: warning: exported method Server.Start should have comment or be unexported (golint)
    • speakeasy/sample/backend/engine.go
    • Line 10: warning: exported type SampleEngine should have comment or be unexported (golint)
    • Line 16: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 22: warning: exported method SampleEngine.Reset should have comment or be unexported (golint)
    • Line 27: warning: exported method SampleEngine.WrapHandler should have comment or be unexported (golint)
    • Line 39: warning: exported method SampleEngine.Setup should have comment or be unexported (golint)
    • speakeasy/sample/backend/models.go
    • Line 10: warning: exported type Timestamp should have comment or be unexported (golint)
    • Line 12: warning: exported method Timestamp.MarshalJSON should have comment or be unexported (golint)
    • Line 18: warning: exported method Timestamp.Unix should have comment or be unexported (golint)
    • Line 22: warning: exported method Timestamp.UnixNano should have comment or be unexported (golint)
    • Line 26: warning: exported type User should have comment or be unexported (golint)
    • Line 31: warning: exported type Message should have comment or be unexported (golint)
    • Line 38: warning: exported type Channel should have comment or be unexported (golint)
    • Line 43: warning: exported type AppState should have comment or be unexported (golint)
    • Line 50: warning: exported type ChannelsResponse should have comment or be unexported (golint)
    • Line 54: warning: exported type MessagesResponse should have comment or be unexported (golint)
    • Line 59: warning: exported type NewMessageRequest should have comment or be unexported (golint)
    • Line 64: warning: exported type NewChannelRequest should have comment or be unexported (golint)
    • Line 69: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 73: warning: exported type Error should have comment or be unexported (golint)
    • Line 78: warning: exported function DefaultAppState should have comment or be unexported (golint)
    • Line 101: warning: exported method AppState.PutChannel should have comment or be unexported (golint)
    • Line 108: warning: exported method AppState.PutUser should have comment or be unexported (golint)
    • Line 115: warning: exported method Channel.AddMessage should have comment or be unexported (golint)
    • Line 119: warning: exported method Channel.LastMessage should have comment or be unexported (golint)
    • Line 123: warning: exported method Channel.UserList should have comment or be unexported (golint)
    • Line 137: warning: exported method AppState.ChannelList should have comment or be unexported (golint)
    • Line 147: warning: exported method AppState.ChannelNameList should have comment or be unexported (golint)
    • Line 158: warning: exported function CreateMessage 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!