Preparing report...

Report for github.com/google/gnostic-grpc

A+    Excellent!    Found 11 issues across 16 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!


gocyclo87%

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.


golint50%

Golint is a linter for Go source code.

    • gnostic-grpc/examples/end-to-end-grpc-gateway/bookstore/server.go
    • Line 170: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 171: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 183: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 184: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 189: warning: exported function RunServer should have comment or be unexported (golint)
    • gnostic-grpc/generator/checker.go
    • Line 22: warning: exported type GrpcChecker should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function NewGrpcChecker should be of the form "NewGrpcChecker ..." (golint)
    • Line 34: warning: comment on exported method GrpcChecker.Run should be of the form "Run ..." (golint)
    • gnostic-grpc/generator/language.go
    • Line 1: warning: package comment should be of the form "Package generator ..." (golint)
    • Line 24: warning: exported type ProtoLanguageModel should have comment or be unexported (golint)
    • Line 26: warning: exported function NewProtoLanguageModel should have comment or be unexported (golint)
    • Line 286: warning: comment on exported function CleanName should be of the form "CleanName ..." (golint)
    • gnostic-grpc/generator/linewriter.go
    • Line 19: warning: exported type LineWriter should have comment or be unexported (golint)
    • Line 23: warning: exported function NewLineWriter should have comment or be unexported (golint)
    • Line 27: warning: exported method LineWriter.WriteLine should have comment or be unexported (golint)
    • gnostic-grpc/generator/main.go
    • Line 15: warning: package comment should be of the form "Package generator ..." (golint)
    • Line 30: warning: comment on exported function RunProtoGenerator should be of the form "RunProtoGenerator ..." (golint)
    • gnostic-grpc/generator/renderer.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 45: warning: comment on exported method Renderer.Render should be of the form "Render ..." (golint)
    • Line 80: warning: exported method Renderer.RenderProto should have comment or be unexported (golint)
    • Line 103: warning: exported method Renderer.RenderDescriptor should have comment or be unexported (golint)
    • gnostic-grpc/examples/end-to-end/bookstore/server.go
    • Line 170: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 171: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 183: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 184: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 189: warning: exported function RunServer should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign81%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!