Preparing report...

Report for github.com/luno/jettison

A+    Excellent!    Found 17 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!


gocyclo97%

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.


golint67%

Golint is a linter for Go source code.

    • jettison/j/j.go
    • Line 35: warning: exported method MKV.Apply should have comment or be unexported (golint)
    • Line 47: warning: exported method MKS.Apply should have comment or be unexported (golint)
    • jettison/jettison.go
    • Line 15: warning: exported method OptionFunc.Apply should have comment or be unexported (golint)
    • Line 26: warning: exported function WithKeyValueString should have comment or be unexported (golint)
    • Line 32: warning: exported function WithSource should have comment or be unexported (golint)
    • jettison/internal/models.go
    • Line 12: warning: exported function NewError should have comment or be unexported (golint)
    • Line 20: warning: exported function NewHop should have comment or be unexported (golint)
    • jettison/log/log.go
    • Line 18: warning: exported const LevelInfo should have comment (or a comment on this block) or be unexported (golint)
    • jettison/models/models.go
    • Line 10: warning: exported type Level should have comment or be unexported (golint)
    • Line 12: warning: exported type Log should have comment or be unexported (golint)
    • Line 44: warning: exported type Hop should have comment or be unexported (golint)
    • Line 87: warning: exported type Error should have comment or be unexported (golint)
    • Line 108: warning: exported type KeyValue should have comment or be unexported (golint)
    • jettison/example/serverclient/server.go
    • Line 17: warning: exported type Server should have comment or be unexported (golint)
    • Line 45: warning: exported method Server.SetClient should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.GetURL should have comment or be unexported (golint)
    • Line 53: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 57: warning: exported function NewServer should have comment or be unexported (golint)
    • jettison/log/logger.go
    • Line 32: warning: exported function SetCmdLoggerForTesting should have comment or be unexported (golint)
    • Line 41: warning: exported function SetDefaultLoggerForTesting should have comment or be unexported (golint)
    • jettison/errors/errors.go
    • Line 59: warning: exported function New should have comment or be unexported (golint)
    • Line 75: warning: exported function Wrap should have comment or be unexported (golint)
    • jettison/example/serverclient/client.go
    • Line 15: warning: exported type Client should have comment or be unexported (golint)
    • Line 20: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.Hop should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.Close should have comment or be unexported (golint)
    • jettison/errors/testgrpc/client.go
    • Line 13: warning: exported type Client should have comment or be unexported (golint)
    • Line 18: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 32: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.ClientPB should have comment or be unexported (golint)
    • Line 40: warning: exported method Client.ErrorWithCode should have comment or be unexported (golint)
    • Line 48: warning: exported method Client.WrapErrorWithCode should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.StreamThenError should have comment or be unexported (golint)
    • jettison/errors/testgrpc/server.go
    • Line 15: warning: exported type Server should have comment or be unexported (golint)
    • Line 17: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 37: warning: exported method Server.ErrorWithCode should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.WrapErrorWithCode should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.StreamThenError should have comment or be unexported (golint)
    • jettison/internal/context.go
    • Line 52: warning: exported method ContextDetails.SetKey should have comment or be unexported (golint)
    • Line 57: warning: exported method ContextDetails.SetSource should have comment or be unexported (golint)
    • Line 61: warning: exported method ContextDetails.ToGrpcMetadata should have comment or be unexported (golint)
    • Line 85: warning: exported function FromJettisonKey should have comment or be unexported (golint)
    • Line 93: warning: exported function ToJettisonKey should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words