Preparing report...

Report for github.com/drish/ben

A+    Excellent!    Found 7 issues across 16 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!


golint68%

Golint is a linter for Go source code.

    • ben/config/config.go
    • Line 36: warning: comment on exported type Environment should be of the form "Environment ..." (with optional leading article) (golint)
    • Line 45: warning: exported type Config should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Config.Validate should be of the form "Validate ..." (golint)
    • Line 81: warning: comment on exported function ParseConfig should be of the form "ParseConfig ..." (golint)
    • Line 96: warning: comment on exported function ReadConfig should be of the form "ReadConfig ..." (golint)
    • ben/reporter/reporter.go
    • Line 9: warning: exported type ReportData should have comment or be unexported (golint)
    • Line 24: warning: exported type Reporter should have comment or be unexported (golint)
    • Line 57: warning: comment on exported function NewReporter should be of the form "NewReporter ..." (golint)
    • Line 69: warning: comment on exported method Reporter.Run should be of the form "Run ..." (golint)
    • ben/cmd/ben/main.go
    • Line 16: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • ben/utils/utils.go
    • Line 17: warning: exported function StripCtlAndExtFromUnicode should have comment or be unexported (golint)
    • Line 30: warning: exported function RandString should have comment or be unexported (golint)
    • Line 40: warning: exported function Contains should have comment or be unexported (golint)
    • Line 49: warning: exported function Exists should have comment or be unexported (golint)
    • Line 54: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 82: warning: exported function Welcome should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell87%

Misspell Finds commonly misspelled English words