Preparing report...

Report for github.com/percipia/eslgo

A+    Excellent!    Found 27 issues across 43 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!


golint37%

Golint is a linter for Go source code.

    • eslgo/utils.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • eslgo/command/call/execute.go
    • Line 1: warning: package comment should be of the form "Package call ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 20: warning: exported type Execute should have comment or be unexported (golint)
    • Line 31: warning: comment on exported type Set should be of the form "Set ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type Export should be of the form "Export ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type Push should be of the form "Push ..." (with optional leading article) (golint)
    • Line 58: warning: exported method Set.BuildMessage should have comment or be unexported (golint)
    • Line 62: warning: exported method Export.BuildMessage should have comment or be unexported (golint)
    • Line 66: warning: exported method Push.BuildMessage should have comment or be unexported (golint)
    • Line 70: warning: exported method Execute.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/api.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type API should have comment or be unexported (golint)
    • Line 21: warning: exported method API.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/log.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type Log should have comment or be unexported (golint)
    • Line 20: warning: exported method Log.BuildMessage should have comment or be unexported (golint)
    • eslgo/connection.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 25: warning: exported type Conn should have comment or be unexported (golint)
    • Line 56: warning: exported const EndOfMessage should have comment or be unexported (golint)
    • eslgo/command/call/unicast.go
    • Line 1: warning: package comment should be of the form "Package call ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 19: warning: comment on exported type Unicast should be of the form "Unicast ..." (with optional leading article) (golint)
    • Line 34: warning: exported method Unicast.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/exit.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 13: warning: exported type Exit should have comment or be unexported (golint)
    • Line 15: warning: exported method Exit.BuildMessage should have comment or be unexported (golint)
    • eslgo/logger.go
    • Line 7: warning: exported type Logger should have comment or be unexported (golint)
    • Line 14: warning: exported type NilLogger should have comment or be unexported (golint)
    • Line 15: warning: exported type NormalLogger should have comment or be unexported (golint)
    • Line 17: warning: exported method NormalLogger.Debug should have comment or be unexported (golint)
    • Line 21: warning: exported method NormalLogger.Info should have comment or be unexported (golint)
    • Line 25: warning: exported method NormalLogger.Warn should have comment or be unexported (golint)
    • Line 34: warning: exported method NilLogger.Debug should have comment or be unexported (golint)
    • Line 35: warning: exported method NilLogger.Info should have comment or be unexported (golint)
    • Line 36: warning: exported method NilLogger.Warn should have comment or be unexported (golint)
    • eslgo/command/call/hangup.go
    • Line 1: warning: package comment should be of the form "Package call ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 18: warning: exported type Hangup should have comment or be unexported (golint)
    • Line 25: warning: exported method Hangup.BuildMessage should have comment or be unexported (golint)
    • eslgo/helper_call.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 98: warning: comment on exported method Conn.AnswerCall should be of the form "AnswerCall ..." (golint)
    • eslgo/response.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 23: warning: exported const TypeEventPlain should have comment (or a comment on this block) or be unexported (golint)
    • eslgo/command/call/nomedia.go
    • Line 1: warning: package comment should be of the form "Package call ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 18: warning: exported type NoMedia should have comment or be unexported (golint)
    • Line 25: warning: exported method NoMedia.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/filter.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type Filter should have comment or be unexported (golint)
    • Line 21: warning: exported method Filter.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/sendmsg.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 21: warning: exported type SendMessage should have comment or be unexported (golint)
    • Line 29: warning: exported method SendMessage.BuildMessage should have comment or be unexported (golint)
    • eslgo/event.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 24: warning: exported type EventListener should have comment or be unexported (golint)
    • Line 26: warning: exported type Event should have comment or be unexported (golint)
    • Line 32: warning: exported const EventListenAll should have comment (or a comment on this block) or be unexported (golint)
    • eslgo/command/call/transfer.go
    • Line 1: warning: package comment should be of the form "Package call ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 18: warning: comment on exported type Transfer should be of the form "Transfer ..." (with optional leading article) (golint)
    • Line 26: warning: exported method Transfer.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/linger.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 13: warning: exported type Linger should have comment or be unexported (golint)
    • Line 17: warning: exported method Linger.BuildMessage should have comment or be unexported (golint)
    • eslgo/helper.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 23: warning: exported method Conn.EnableEvents should have comment or be unexported (golint)
    • Line 46: warning: exported method Conn.DebugOff should have comment or be unexported (golint)
    • Line 75: warning: comment on exported method Conn.WaitForDTMF should be of the form "WaitForDTMF ..." (golint)
    • eslgo/command/auth.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type Auth should have comment or be unexported (golint)
    • Line 20: warning: exported method Auth.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/command.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • eslgo/command/connect.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 13: warning: exported type Connect should have comment or be unexported (golint)
    • Line 15: warning: exported method Connect.BuildMessage should have comment or be unexported (golint)
    • eslgo/command/event.go
    • Line 1: warning: package comment should be of the form "Package command ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 21: warning: exported type Event should have comment or be unexported (golint)
    • Line 27: warning: exported type MyEvents should have comment or be unexported (golint)
    • Line 32: warning: exported type DisableEvents should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type DivertEvents should be of the form "DivertEvents ..." (with optional leading article) (golint)
    • Line 39: warning: exported type SendEvent should have comment or be unexported (golint)
    • Line 45: warning: exported method Event.BuildMessage should have comment or be unexported (golint)
    • Line 53: warning: exported method MyEvents.BuildMessage should have comment or be unexported (golint)
    • Line 61: warning: exported method DisableEvents.BuildMessage should have comment or be unexported (golint)
    • Line 65: warning: exported method DivertEvents.BuildMessage should have comment or be unexported (golint)
    • Line 72: warning: exported method SendEvent.BuildMessage should have comment or be unexported (golint)
    • eslgo/outbound.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 21: warning: exported type OutboundHandler should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function ListenAndServe should be of the form "ListenAndServe ..." (golint)
    • eslgo/inbound.go
    • Line 1: warning: package comment should be of the form "Package eslgo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 30: warning: comment on exported var DefaultInboundOptions should be of the form "DefaultInboundOptions ..." (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (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!