Preparing report...

Report for github.com/verifa/terraplate

(v0.0.0-20211231134523-ea964ff26648)

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


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.


golint35%

Golint is a linter for Go source code.

    • cmd/plan.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • cmd/root.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • parser/parser.go
    • Line 10: warning: exported type TerraConfig should have comment or be unexported (golint)
    • Line 14: warning: exported method TerraConfig.BuildFiles should have comment or be unexported (golint)
    • Line 24: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported function Parse should have comment or be unexported (golint)
    • parser/terrafile.go
    • Line 16: warning: exported type Terrafile should have comment or be unexported (golint)
    • Line 35: warning: exported type TerraValues should have comment or be unexported (golint)
    • Line 39: warning: exported type TerraVariables should have comment or be unexported (golint)
    • Line 43: warning: exported type TerraRequiredProviders should have comment or be unexported (golint)
    • Line 47: warning: exported type RequiredProvider should have comment or be unexported (golint)
    • Line 52: warning: exported type TerraTemplate should have comment or be unexported (golint)
    • Line 70: warning: exported function ParseTerrafile should have comment or be unexported (golint)
    • Line 166: warning: exported method Terrafile.TraverseAncestors should have comment or be unexported (golint)
    • Line 209: warning: exported method TerraTemplate.BuildTarget should have comment or be unexported (golint)
    • Line 221: warning: exported method Terrafile.BuildVariables should have comment or be unexported (golint)
    • Line 239: warning: exported method Terrafile.BuildValues should have comment or be unexported (golint)
    • Line 290: warning: exported method Terrafile.BuildRequiredProviders should have comment or be unexported (golint)
    • Line 308: warning: exported method Terrafile.BuildRequiredVersion should have comment or be unexported (golint)
    • Line 321: warning: exported method Terrafile.BuildTemplates should have comment or be unexported (golint)
    • cmd/apply.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • cmd/init.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • runner/runner.go
    • Line 20: warning: exported function Run should have comment or be unexported (golint)
    • Line 57: warning: exported function RunValidate should have comment or be unexported (golint)
    • Line 63: warning: exported function RunInit should have comment or be unexported (golint)
    • Line 69: warning: exported function RunPlan should have comment or be unexported (golint)
    • Line 75: warning: exported function RunApply should have comment or be unexported (golint)
    • Line 81: warning: exported type TerraRun should have comment or be unexported (golint)
    • cmd/build.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (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!