Preparing report...

Report for github.com/davidebianchi/gswagger

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


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign14%

IneffAssign detects ineffectual assignments in Go code.

    • gswagger/main.go
    • Line 10: warning: missing go.sum entry for module providing package github.com/getkin/kin-openapi/openapi3 (imported by github.com/davidebianchi/gswagger); to add: (ineffassign)
    • Line 10: warning: could not import github.com/getkin/kin-openapi/openapi3 (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/getkin/kin-openapi/openapi3 (invalid package name: "") (ineffassign)
    • gswagger/operation.go
    • Line 21: warning: o.RequestBody undefined (type *Operation has no field or method RequestBody) (ineffassign)
    • Line 30: warning: o.Responses undefined (type *Operation has no field or method Responses) (ineffassign)
    • Line 31: warning: o.Responses undefined (type *Operation has no field or method Responses) (ineffassign)
    • Line 21: warning: o.RequestBody undefined (type *Operation has no field or method RequestBody) (ineffassign)
    • Line 30: warning: o.Responses undefined (type *Operation has no field or method Responses) (ineffassign)
    • Line 31: warning: o.Responses undefined (type *Operation has no field or method Responses) (ineffassign)
    • gswagger/route.go
    • Line 33: warning: operation.Validate undefined (type Operation has no field or method Validate) (ineffassign)
    • Line 95: warning: operation.Responses undefined (type Operation has no field or method Responses) (ineffassign)
    • Line 181: warning: operation.Responses undefined (type Operation has no field or method Responses) (ineffassign)
    • Line 243: warning: operation.AddParameter undefined (type Operation has no field or method AddParameter) (ineffassign)
    • Line 33: warning: operation.Validate undefined (type Operation has no field or method Validate) (ineffassign)
    • Line 95: warning: operation.Responses undefined (type Operation has no field or method Responses) (ineffassign)
    • Line 181: warning: operation.Responses undefined (type Operation has no field or method Responses) (ineffassign)
    • Line 243: warning: operation.AddParameter undefined (type Operation has no field or method AddParameter) (ineffassign)
    • gswagger/integration_test.go
    • Line 13: warning: missing go.sum entry for module providing package github.com/stretchr/testify/require (imported by github.com/davidebianchi/gswagger); to add: (ineffassign)
    • Line 13: warning: could not import github.com/stretchr/testify/require (invalid package name: "") (ineffassign)
    • gswagger/route_test.go
    • Line 616: warning: operation.MarshalJSON undefined (type Operation has no field or method MarshalJSON) (ineffassign)
    • Line 755: warning: operation.Responses undefined (type Operation has no field or method Responses) (ineffassign)
    • Line 760: warning: operation.MarshalJSON undefined (type Operation has no field or method MarshalJSON) (ineffassign)
    • Line 929: warning: operation.MarshalJSON undefined (type Operation has no field or method MarshalJSON) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!