Preparing report...

Report for github.com/giacomocariello/terraform-provider-consulclient

A+    Excellent!    Found 9 issues across 21 files

Tweet

gofmt95%

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!


gocyclo85%

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.


golint80%

Golint is a linter for Go source code.

    • terraform-provider-consulclient/provider/config.go
    • Line 16: warning: exported type ProviderConfig should have comment or be unexported (golint)
    • Line 27: warning: exported method ProviderConfig.GetResolvedConfig should have comment or be unexported (golint)
    • Line 84: warning: comment on exported method ProviderConfig.NewClient should be of the form "NewClient ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign71%

IneffAssign detects ineffectual assignments in Go code.

    • terraform-provider-consulclient/provider/config.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/hashicorp/terraform/helper/schema (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/mitchellh/mapstructure (invalid package name: "") (ineffassign)
    • Line 8: warning: "net/http" imported but not used (ineffassign)
    • terraform-provider-consulclient/main.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/hashicorp/terraform/plugin (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/giacomocariello/terraform-provider-consulclient/provider (invalid package name: "") (ineffassign)

misspell95%

Misspell Finds commonly misspelled English words