Preparing report...

Report for github.com/jfrog/terraform-provider-project

(v0.0.0-20211216231502-729123db233e)

A    Great!    Found 8 issues across 15 files

Tweet

gofmt73%

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!


gocyclo93%

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.


golint60%

Golint is a linter for Go source code.

    • pkg/projects/resource_project_membership.go
    • Line 17: warning: comment on exported type Member should be of the form "Member ..." (with optional leading article) (golint)
    • Line 23: warning: exported method Member.Id should have comment or be unexported (golint)
    • Line 27: warning: exported method Member.Equals should have comment or be unexported (golint)
    • Line 27: warning: receiver name a should be consistent with previous receiver name m for Member (golint)
    • Line 51: warning: comment on exported type Membership should be of the form "Membership ..." (with optional leading article) (golint)
    • pkg/projects/resource_project_repo.go
    • Line 11: warning: exported type RepoKey should have comment or be unexported (golint)
    • Line 13: warning: exported method RepoKey.Id should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: exported method RepoKey.Equals should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • pkg/projects/resource_project_role.go
    • Line 56: warning: exported type Role should have comment or be unexported (golint)
    • Line 64: warning: exported method Role.Id should have comment or be unexported (golint)
    • Line 68: warning: exported method Role.Equals should have comment or be unexported (golint)
    • Line 68: warning: receiver name a should be consistent with previous receiver name r for Role (golint)
    • pkg/projects/util.go
    • Line 12: warning: exported type ResourceData should have comment or be unexported (golint)
    • Line 104: warning: exported type Lens should have comment or be unexported (golint)
    • Line 116: warning: exported function BytesToGibibytes should have comment or be unexported (golint)
    • Line 124: warning: exported function GibibytesToBytes should have comment or be unexported (golint)
    • Line 132: warning: exported type Identifiable should have comment or be unexported (golint)
    • Line 136: warning: exported type Equatable should have comment or be unexported (golint)
    • pkg/projects/provider.go
    • Line 16: warning: exported var Version should have comment or be unexported (golint)
    • Line 57: warning: exported type ProjectClient should have comment or be unexported (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!