Preparing report...

Report for github.com/dikhan/terraform-provider-openapi

C    Needs some work    Found 18 issues across 155 files

Tweet

gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (signal: killed)


golint90%

Golint is a linter for Go source code.

    • terraform-provider-openapi/examples/swaggercodegen/api/api/cdn.go
    • Line 15: warning: exported function ContentDeliveryNetworkCreateV1 should have comment or be unexported (golint)
    • Line 43: warning: exported function ContentDeliveryNetworkGetV1 should have comment or be unexported (golint)
    • Line 62: warning: exported function ContentDeliveryNetworkUpdateV1 should have comment or be unexported (golint)
    • Line 88: warning: exported function ContentDeliveryNetworkDeleteV1 should have comment or be unexported (golint)
    • terraform-provider-openapi/examples/swaggercodegen/api/api/lb_api.go
    • Line 41: warning: exported function LBGetV1 should have comment or be unexported (golint)
    • Line 50: warning: exported function LBCreateV1 should have comment or be unexported (golint)
    • Line 66: warning: exported function LBUpdateV1 should have comment or be unexported (golint)
    • Line 85: warning: exported function UpdateLBV1 should have comment or be unexported (golint)
    • Line 95: warning: exported function LBDeleteV1 should have comment or be unexported (golint)

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!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 3)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words