Preparing report...

Report for github.com/camptocamp/terraboard

A+    Excellent!    Found 82 issues across 287 files

Tweet

gofmt97%

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!


gocyclo90%

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.


golint85%

Golint is a linter for Go source code.

    • terraboard/internal/terraform/states/remote/state.go
    • Line 41: warning: comment on exported method State.State should be of the form "State ..." (golint)
    • Line 57: warning: comment on exported method State.WriteState should be of the form "WriteState ..." (golint)
    • Line 100: warning: comment on exported method State.RefreshState should be of the form "RefreshState ..." (golint)
    • Line 141: warning: comment on exported method State.PersistState should be of the form "PersistState ..." (golint)
    • terraboard/internal/terraform/modsdir/manifest.go
    • Line 51: warning: exported method Manifest.ModuleKey should have comment or be unexported (golint)
    • Line 66: warning: exported function ReadManifestSnapshot should have comment or be unexported (golint)
    • Line 107: warning: exported function ReadManifestSnapshotForDir should have comment or be unexported (golint)
    • Line 119: warning: exported method Manifest.WriteSnapshot should have comment or be unexported (golint)
    • Line 146: warning: exported method Manifest.WriteSnapshotToDir should have comment or be unexported (golint)
    • terraboard/config/yaml.go
    • Line 9: warning: exported method S3BucketConfig.UnmarshalYAML should have comment or be unexported (golint)
    • Line 22: warning: exported method GitlabConfig.UnmarshalYAML should have comment or be unexported (golint)
    • terraboard/internal/terraform/tfdiags/diagnostic.go
    • Line 7: warning: exported type Diagnostic should have comment or be unexported (golint)
    • Line 18: warning: exported type Severity should have comment or be unexported (golint)
    • Line 23: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Description should have comment or be unexported (golint)
    • Line 33: warning: exported type Source should have comment or be unexported (golint)
    • Line 38: warning: exported type FromExpr should have comment or be unexported (golint)
    • terraboard/internal/terraform/tfdiags/rpc_friendly.go
    • Line 8: warning: don't use underscores in Go names; struct field Severity_ should be Severity (golint)
    • Line 9: warning: don't use underscores in Go names; struct field Summary_ should be Summary (golint)
    • Line 10: warning: don't use underscores in Go names; struct field Detail_ should be Detail (golint)
    • Line 11: warning: don't use underscores in Go names; struct field Subject_ should be Subject (golint)
    • Line 12: warning: don't use underscores in Go names; struct field Context_ should be Context (golint)
    • terraboard/internal/terraform/configs/hcl2shim/single_attr_body.go
    • Line 21: warning: exported method SingleAttrBody.Content should have comment or be unexported (golint)
    • Line 36: warning: exported method SingleAttrBody.PartialContent should have comment or be unexported (golint)
    • Line 72: warning: exported method SingleAttrBody.JustAttributes should have comment or be unexported (golint)
    • Line 83: warning: exported method SingleAttrBody.MissingItemRange should have comment or be unexported (golint)
    • terraboard/internal/terraform/configs/configschema/empty_value.go
    • Line 46: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 52: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • terraboard/internal/terraform/states/statemgr/lock.go
    • Line 14: warning: exported method LockDisabled.State should have comment or be unexported (golint)
    • Line 18: warning: exported method LockDisabled.WriteState should have comment or be unexported (golint)
    • Line 22: warning: exported method LockDisabled.RefreshState should have comment or be unexported (golint)
    • Line 26: warning: exported method LockDisabled.PersistState should have comment or be unexported (golint)
    • Line 30: warning: exported method LockDisabled.Lock should have comment or be unexported (golint)
    • Line 34: warning: exported method LockDisabled.Unlock should have comment or be unexported (golint)
    • terraboard/internal/terraform/addrs/resource.go
    • Line 31: warning: exported method Resource.Equal should have comment or be unexported (golint)
    • Line 82: warning: exported method ResourceInstance.ContainingResource should have comment or be unexported (golint)
    • Line 93: warning: exported method ResourceInstance.Equal should have comment or be unexported (golint)
    • Line 173: warning: exported method AbsResource.Equal should have comment or be unexported (golint)
    • Line 238: warning: exported method AbsResourceInstance.Equal should have comment or be unexported (golint)
    • Line 322: warning: exported method ConfigResource.Equal should have comment or be unexported (golint)
    • terraboard/types/db.go
    • Line 36: warning: exported type Lineage should have comment or be unexported (golint)
    • Line 238: warning: exported type PlanStateResourceAttribute should have comment or be unexported (golint)
    • Line 291: warning: exported type PlanOutput should have comment or be unexported (golint)
    • terraboard/internal/terraform/addrs/provider_config.go
    • Line 218: warning: exported function ParseLegacyAbsProviderConfigStr should have comment or be unexported (golint)
    • Line 371: warning: comment on exported method AbsProviderConfig.LegacyString should be of the form "LegacyString ..." (golint)
    • Line 376: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words

    • terraboard/internal/terraform/states/state_deepcopy.go
    • Line 14: warning: "reciever" is a misspelling of "receiver" (misspell)
    • Line 18: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 40: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 75: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 100: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 124: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 183: warning: "recieving" is a misspelling of "receiving" (misspell)
    • Line 219: warning: "recieving" is a misspelling of "receiving" (misspell)