Preparing report...

Report for github.com/schrius/prisma-cloud-hub

A+    Excellent!    Found 13 issues across 28 files

Tweet

gofmt96%

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!


gocyclo96%

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.


golint64%

Golint is a linter for Go source code.

    • prisma-cloud-hub/api/prisma/alert/false.go
    • Line 8: warning: exported const DetachInternetGateway should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported function FalseAWSRegionViolationAlert should be of the form "FalseAWSRegionViolationAlert ..." (golint)
    • prisma-cloud-hub/events/onboard.go
    • Line 3: warning: exported type OnBoardEvent should have comment or be unexported (golint)
    • Line 11: warning: exported type AWSAccount should have comment or be unexported (golint)
    • Line 19: warning: exported type AzureAccount should have comment or be unexported (golint)
    • Line 28: warning: exported type CloudAccount should have comment or be unexported (golint)
    • Line 35: warning: exported type GCP should have comment or be unexported (golint)
    • prisma-cloud-hub/api/prisma/api.go
    • Line 15: warning: exported type PrismaHTTPiface should have comment or be unexported (golint)
    • Line 23: warning: exported type PrismaClient should have comment or be unexported (golint)
    • Line 29: warning: exported type AccountGroups should have comment or be unexported (golint)
    • Line 34: warning: exported type CloudResponse should have comment or be unexported (golint)
    • Line 53: warning: exported type AccountNames should have comment or be unexported (golint)
    • Line 68: warning: exported type PrismaAPIRequestOutput should have comment or be unexported (golint)
    • Line 72: warning: exported type ListAlertsPayload should have comment or be unexported (golint)
    • Line 77: warning: exported type ListAlertsInput should have comment or be unexported (golint)
    • Line 82: warning: exported type Filters should have comment or be unexported (golint)
    • Line 88: warning: exported type ListAlertsResponse should have comment or be unexported (golint)
    • Line 111: warning: exported type DismissAlertFilter should have comment or be unexported (golint)
    • Line 116: warning: exported type FilterTimeRange should have comment or be unexported (golint)
    • Line 121: warning: exported type TimeRangeValue should have comment or be unexported (golint)
    • Line 126: warning: exported type Alerts should have comment or be unexported (golint)
    • Line 167: warning: exported type RegisterAccountInput 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!


misspell96%

Misspell Finds commonly misspelled English words