Preparing report...

Report for github.com/schmurfy/chipi

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


gocyclo88%

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.


golint59%

Golint is a linter for Go source code.

    • chipi/gen/constants.go
    • Line 4: warning: exported const RepBackticks should have comment (or a comment on this block) or be unexported (golint)
    • chipi/gen/generator.go
    • Line 68: warning: exported function FilterIncludeAll should have comment or be unexported (golint)
    • Line 72: warning: exported function InspectDir should have comment or be unexported (golint)
    • Line 148: warning: exported function GenerateAnnotations should have comment or be unexported (golint)
    • chipi/wrapper/wrapper.go
    • Line 23: warning: exported type BodyDecoder should have comment or be unexported (golint)
    • Line 27: warning: exported type ResponseEncoder should have comment or be unexported (golint)
    • Line 31: warning: exported type HandlerInterface should have comment or be unexported (golint)
    • Line 191: warning: exported function WrapRequest should have comment or be unexported (golint)
    • chipi/response/json_encoder.go
    • Line 8: warning: exported type JsonEncoder should have comment or be unexported (golint)
    • Line 10: warning: exported method JsonEncoder.EncodeResponse should have comment or be unexported (golint)
    • chipi/example/pet.go
    • Line 11: warning: exported type Pet should have comment or be unexported (golint)
    • Line 20: warning: exported type GetPetRequest should have comment or be unexported (golint)
    • Line 45: warning: exported method GetPetRequest.Handle should have comment or be unexported (golint)
    • Line 61: warning: exported type CreatePetRequest should have comment or be unexported (golint)
    • Line 78: warning: exported method CreatePetRequest.DecodeBody should have comment or be unexported (golint)
    • Line 86: warning: exported method CreatePetRequest.Handle should have comment or be unexported (golint)
    • chipi/schema/schema.go
    • Line 15: warning: exported type Schema should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Schema.GenerateSchemaFor should have comment or be unexported (golint)
    • chipi/example/user.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 16: warning: exported type GetUserRequest should have comment or be unexported (golint)
    • Line 36: warning: exported method GetUserRequest.Handle should have comment or be unexported (golint)
    • Line 51: warning: exported type UploadResumeRequest should have comment or be unexported (golint)
    • Line 63: warning: exported method UploadResumeRequest.Handle should have comment or be unexported (golint)
    • Line 67: warning: exported type DownloadResumeRequest should have comment or be unexported (golint)
    • Line 77: warning: exported method DownloadResumeRequest.Handle should have comment or be unexported (golint)
    • chipi/builder/builder.go
    • Line 18: warning: exported type Builder should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method Builder.AddServer should have comment or be unexported (golint)
    • Line 46: warning: exported method Builder.AddSecurityScheme should have comment or be unexported (golint)
    • Line 56: warning: exported method Builder.AddSecurityRequirement should have comment or be unexported (golint)
    • Line 60: warning: exported method Builder.ServeSchema should have comment or be unexported (golint)
    • Line 75: warning: exported type CallbackFunc should have comment or be unexported (golint)
    • Line 77: warning: exported method Builder.Get should have comment or be unexported (golint)
    • Line 82: warning: exported method Builder.Post should have comment or be unexported (golint)
    • Line 87: warning: exported method Builder.Patch should have comment or be unexported (golint)
    • Line 92: warning: exported method Builder.Method should have comment or be unexported (golint)
    • chipi/api.go
    • Line 8: warning: exported function New should have comment or be unexported (golint)
    • chipi/request/json_decoder.go
    • Line 8: warning: exported type JsonBodyDecoder should have comment or be unexported (golint)
    • Line 10: warning: exported method JsonBodyDecoder.DecodeBody should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words