Preparing report...

Report for github.com/camilamacedo86/audit

A    Great!    Found 22 issues across 26 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!


gocyclo73%

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.


golint23%

Golint is a linter for Go source code.

    • audit/pkg/models/package.go
    • Line 17: warning: exported type AuditPackage should have comment or be unexported (golint)
    • Line 24: warning: exported function NewAuditPackage should have comment or be unexported (golint)
    • audit/pkg/reports/bundles/data.go
    • Line 29: warning: exported type Data should have comment or be unexported (golint)
    • Line 34: warning: exported method Data.PrepareReport should have comment or be unexported (golint)
    • Line 108: warning: exported method Data.OutputReport should have comment or be unexported (golint)
    • Line 127: warning: exported method Data.BuildBundlesQuery should have comment or be unexported (golint)
    • audit/pkg/models/channel.go
    • Line 17: warning: exported type AuditChannel should have comment or be unexported (golint)
    • Line 26: warning: exported function NewAuditChannels should have comment or be unexported (golint)
    • audit/pkg/reports/packages/data.go
    • Line 29: warning: exported type Data should have comment or be unexported (golint)
    • Line 35: warning: exported method Data.PrepareReport should have comment or be unexported (golint)
    • Line 179: warning: exported method Data.OutputReport should have comment or be unexported (golint)
    • Line 196: warning: exported method Data.BuildPackagesQuery should have comment or be unexported (golint)
    • audit/pkg/reports/channels/data.go
    • Line 30: warning: exported type Data should have comment or be unexported (golint)
    • Line 35: warning: exported method Data.PrepareReport should have comment or be unexported (golint)
    • Line 94: warning: exported method Data.OutputReport should have comment or be unexported (golint)
    • Line 111: warning: exported method Data.BuildChannelsQuery should have comment or be unexported (golint)
    • audit/pkg/reports/bundles/columns.go
    • Line 38: warning: exported type Columns should have comment or be unexported (golint)
    • Line 79: warning: exported method Columns.AddDataFromCSV should have comment or be unexported (golint)
    • Line 156: warning: exported method Columns.AddDataFromBundle should have comment or be unexported (golint)
    • Line 165: warning: exported method Columns.AddDataFromScorecard should have comment or be unexported (golint)
    • Line 177: warning: exported method Columns.AddDataFromValidators should have comment or be unexported (golint)
    • audit/pkg/helpers.go
    • Line 32: warning: exported const JSON should have comment or be unexported (golint)
    • Line 33: warning: exported const Xls should have comment or be unexported (golint)
    • Line 34: warning: exported const Yes should have comment or be unexported (golint)
    • Line 35: warning: exported const No should have comment or be unexported (golint)
    • Line 36: warning: exported const Unknown should have comment or be unexported (golint)
    • Line 37: warning: exported const NotUsed should have comment or be unexported (golint)
    • Line 39: warning: exported const TableFormat should have comment or be unexported (golint)
    • Line 56: warning: comment on exported function RunCommand should be of the form "RunCommand ..." (golint)
    • Line 68: warning: comment on exported function GetFormatArrayWithBreakLine should be of the form "GetFormatArrayWithBreakLine ..." (golint)
    • Line 83: warning: exported function WriteJSON should have comment or be unexported (golint)
    • Line 100: warning: exported function GetReportName should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!