Preparing report...

Report for github.com/jonhadfield/aws-inspector-reporter

F    ... is for lots of things to Fix!    Found 4 issues across 15 files

Tweet

gofmt0%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/jonhadfield/aws-inspector-reporter/lambda/air/stat main.go: no such file or directory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " no such file or directory": invalid syntax)


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (exit status 2)


golint80%

Golint is a linter for Go source code.

    • aws-inspector-reporter/air/main.go
    • Line 20: warning: exported type Report should have comment or be unexported (golint)
    • Line 29: warning: exported const DefaultMaxReportAge should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type AppConfig should have comment or be unexported (golint)
    • Line 69: warning: exported function Run should have comment or be unexported (golint)
    • aws-inspector-reporter/air/airtest/mocks.go
    • Line 16: warning: exported type MockSTSClient should have comment or be unexported (golint)
    • Line 20: warning: exported type MockIAMClient should have comment or be unexported (golint)
    • Line 24: warning: exported method MockSTSClient.GetCallerIdentity should have comment or be unexported (golint)
    • Line 31: warning: exported method MockIAMClient.ListAccountAliases should have comment or be unexported (golint)
    • Line 41: warning: exported type MockInspectorClient1 should have comment or be unexported (golint)
    • Line 45: warning: exported method MockInspectorClient1.ListAssessmentRuns should have comment or be unexported (golint)
    • Line 64: warning: exported method MockInspectorClient1.ListAssessmentTargets should have comment or be unexported (golint)
    • Line 83: warning: exported method MockInspectorClient1.ListFindings should have comment or be unexported (golint)
    • Line 102: warning: exported method MockInspectorClient1.ListAssessmentTemplates should have comment or be unexported (golint)
    • Line 121: warning: exported method MockInspectorClient1.DescribeAssessmentRuns should have comment or be unexported (golint)
    • Line 168: warning: exported method MockInspectorClient1.ListRulesPackages should have comment or be unexported (golint)
    • Line 187: warning: exported method MockInspectorClient1.DescribeRulesPackages should have comment or be unexported (golint)
    • Line 230: warning: exported method MockInspectorClient1.DescribeFindings should have comment or be unexported (golint)
    • Line 271: warning: exported method MockInspectorClient1.DescribeAssessmentTemplates should have comment or be unexported (golint)

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!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!