Preparing report...

Report for github.com/src-d/proteus

A+    Excellent!    Found 16 issues across 36 files

Tweet

gofmt83%

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!


golint66%

Golint is a linter for Go source code.

    • proteus/report/report.go
    • Line 13: warning: exported function Silent should have comment or be unexported (golint)
    • Line 17: warning: exported function TestMode should have comment or be unexported (golint)
    • Line 22: warning: exported function EndTestMode should have comment or be unexported (golint)
    • Line 27: warning: exported function ResetTestModeStack should have comment or be unexported (golint)
    • Line 31: warning: exported function MessageStack should have comment or be unexported (golint)
    • proteus/doc.go
    • Line 1: warning: package comment should be of the form "Package proteus ..." (golint)
    • proteus/protobuf/mapping.go
    • Line 29: warning: exported method ProtoType.Decorate should have comment or be unexported (golint)
    • Line 34: warning: receiver name t should be consistent with previous receiver name pt for ProtoType (golint)
    • Line 51: warning: exported function NewDecorators should have comment or be unexported (golint)
    • Line 61: warning: exported method Decorator.Run should have comment or be unexported (golint)
    • Line 65: warning: exported method Decorators.Run should have comment or be unexported (golint)
    • Line 71: warning: exported function CastToBasicType should have comment or be unexported (golint)
    • Line 88: warning: exported var DefaultMappings should have comment or be unexported (golint)
    • proteus/example/client/client.go
    • Line 11: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 20: warning: exported method Client.RequestRandomNumber should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.RequestAlphaTime should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.RequestOmegaTime should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.RequestRandomCategory should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.RequestPhone should have comment or be unexported (golint)
    • Line 47: warning: exported method Client.RequestDurationForLength should have comment or be unexported (golint)
    • Line 51: warning: exported function NewClient should have comment or be unexported (golint)
    • proteus/example/models.go
    • Line 13: warning: comment on exported type Product should be of the form "Product ..." (with optional leading article) (golint)
    • Line 27: warning: exported type Prices should have comment or be unexported (golint)
    • Line 29: warning: exported type Price should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type Category should be of the form "Category ..." (with optional leading article) (golint)
    • Line 48: warning: exported type Tags should have comment or be unexported (golint)
    • Line 55: warning: exported const Public should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported const Blue should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: exported type MyTime should have comment or be unexported (golint)
    • Line 104: warning: comment on exported type MyDuration should be of the form "MyDuration ..." (with optional leading article) (golint)
    • Line 110: warning: comment on exported function RandomNumber should be of the form "RandomNumber ..." (golint)
    • Line 116: warning: comment on exported function RandomCategory should be of the form "RandomCategory ..." (golint)
    • Line 124: warning: comment on exported function GetAlphaTime should be of the form "GetAlphaTime ..." (golint)
    • Line 129: warning: comment on exported function GetOmegaTime should be of the form "GetOmegaTime ..." (golint)
    • Line 139: warning: comment on exported function GetDurationForLength should be of the form "GetDurationForLength ..." (golint)
    • Line 147: warning: comment on exported function GetDurationForLengthCtx should be of the form "GetDurationForLengthCtx ..." (golint)
    • Line 160: warning: comment on exported function GetPhone should be of the form "GetPhone ..." (golint)
    • Line 171: warning: exported function RandomBool should have comment or be unexported (golint)
    • proteus/fixtures/foo.go
    • Line 22: warning: comment on exported type MyInt should be of the form "MyInt ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type MyMap should be of the form "MyMap ..." (with optional leading article) (golint)
    • proteus/protobuf/protobuf.go
    • Line 271: warning: exported method Basic.IsNullable should have comment or be unexported (golint)
    • Line 301: warning: exported method Map.IsNullable should have comment or be unexported (golint)
    • proteus/scanner/package.go
    • Line 102: warning: comment on exported method BaseType.UnqualifiedName should be of the form "UnqualifiedName ..." (golint)
    • Line 180: warning: exported function NewAlias should have comment or be unexported (golint)
    • Line 187: warning: exported method Alias.IsNullable should have comment or be unexported (golint)
    • Line 188: warning: exported method Alias.IsRepeated 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!