Preparing report...

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

(v0.0.0-20211215205407-0f9d7f7f8ae7)

A+    Excellent!    Found 5 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!


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!


golint64%

Golint is a linter for Go source code.

    • pkg/xray/resource_xray_security_policy_test.go
    • Line 252: warning: don't use underscores in Go names; func testAccXraySecurityPolicy_badSecurityType should be testAccXraySecurityPolicyBadSecurityType (golint)
    • Line 278: warning: don't use underscores in Go names; func testAccXraySecurityPolicy_badSecurity should be testAccXraySecurityPolicyBadSecurity (golint)
    • pkg/xray/util.go
    • Line 16: warning: exported type ResourceData should have comment or be unexported (golint)
    • Line 163: warning: exported type Lens should have comment or be unexported (golint)
    • Line 188: warning: exported function BoolPtr should have comment or be unexported (golint)
    • Line 190: warning: exported function IntPtr should have comment or be unexported (golint)
    • Line 192: warning: exported function Int64Ptr should have comment or be unexported (golint)
    • Line 194: warning: exported function Float64Ptr should have comment or be unexported (golint)
    • Line 196: warning: exported function StringPtr should have comment or be unexported (golint)
    • pkg/xray/watches.go
    • Line 14: warning: exported type WatchGeneralData should have comment or be unexported (golint)
    • Line 20: warning: exported type WatchFilterValue should have comment or be unexported (golint)
    • Line 25: warning: exported type WatchFilter should have comment or be unexported (golint)
    • Line 30: warning: exported type WatchProjectResource should have comment or be unexported (golint)
    • Line 37: warning: exported type WatchProjectResources should have comment or be unexported (golint)
    • Line 41: warning: exported type WatchAssignedPolicy should have comment or be unexported (golint)
    • Line 46: warning: exported type Watch should have comment or be unexported (golint)
    • pkg/xray/policies.go
    • Line 13: warning: exported type PolicyCVSSRange should have comment or be unexported (golint)
    • Line 18: warning: exported type PolicyRuleCriteria should have comment or be unexported (golint)
    • Line 38: warning: exported type BlockDownloadSettings should have comment or be unexported (golint)
    • Line 43: warning: exported type PolicyRuleActions should have comment or be unexported (golint)
    • Line 57: warning: exported type PolicyRule should have comment or be unexported (golint)
    • Line 64: warning: exported type Policy 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!


misspell92%

Misspell Finds commonly misspelled English words