Preparing report...

Report for github.com/tliron/puccini-terraform

(v0.0.0-20220207144923-0906be090e89)

A    Great!    Found 4 issues across 4 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!


golint0%

Golint is a linter for Go source code.

    • terraform-provider-tosca/clout.go
    • Line 19: warning: exported type CloutResourceType should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method CloutResourceType.GetSchema should be of the form "GetSchema ..." (golint)
    • Line 22: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: comment on exported method CloutResourceType.NewResource should be of the form "NewResource ..." (golint)
    • Line 44: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: exported type CloutResource should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method CloutResource.Create should be of the form "Create ..." (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 113: warning: comment on exported method CloutResource.Update should be of the form "Update ..." (golint)
    • Line 114: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 117: warning: comment on exported method CloutResource.Delete should be of the form "Delete ..." (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 121: warning: comment on exported method CloutResource.ImportState should be of the form "ImportState ..." (golint)
    • Line 122: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • terraform-provider-tosca/provider.go
    • Line 21: warning: exported type ToscaProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function ProviderFactory should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method ToscaProvider.GetSchema should be of the form "GetSchema ..." (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method ToscaProvider.Configure should be of the form "Configure ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 149: warning: comment on exported method ToscaProvider.GetResources should be of the form "GetResources ..." (golint)
    • Line 150: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 156: warning: comment on exported method ToscaProvider.GetDataSources should be of the form "GetDataSources ..." (golint)
    • Line 157: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 161: warning: exported type ProviderConfig should have comment or be unexported (golint)
    • terraform-provider-tosca/util.go
    • Line 10: warning: exported type ProviderConfigureHelper should have comment or be unexported (golint)
    • Line 16: warning: exported method ProviderConfigureHelper.Get should have comment or be unexported (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 26: warning: exported type CreateResourceHelper should have comment or be unexported (golint)
    • Line 32: warning: exported method CreateResourceHelper.AddError should have comment or be unexported (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 36: warning: exported method CreateResourceHelper.GetAttribute should have comment or be unexported (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: exported method CreateResourceHelper.SetAttribute should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: exported type ImportResourceStateHelper should have comment or be unexported (golint)
    • Line 60: warning: exported method ImportResourceStateHelper.PassthroughID should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!