Preparing report...

Report for github.com/intuit/go-loadgen

A    Great!    Found 9 issues across 13 files

Tweet

gofmt76%

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!


gocyclo92%

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.


golint38%

Golint is a linter for Go source code.

    • go-loadgen/constants/constants.go
    • Line 12: warning: comment on exported const DefaultMetricsServerPort should be of the form "DefaultMetricsServerPort ..." (golint)
    • Line 27: warning: comment on exported const DefaultLinesPerSecond should be of the form "DefaultLinesPerSecond ..." (golint)
    • Line 39: warning: exported const TestOutputFileRootPath should have comment or be unexported (golint)
    • go-loadgen/eventbreaker/eventbreaker.go
    • Line 5: warning: exported type KnownEventBreakers should have comment or be unexported (golint)
    • Line 9: warning: comment on exported function NewEventBreakers should be of the form "NewEventBreakers ..." (golint)
    • Line 32: warning: exported method KnownEventBreakers.HasKnownEventBreakerString should have comment or be unexported (golint)
    • Line 40: warning: exported method KnownEventBreakers.HasKnownEventBreakerBytes should have comment or be unexported (golint)
    • go-loadgen/cli/cli.go
    • Line 36: warning: exported function InputValidation should have comment or be unexported (golint)
    • Line 73: warning: exported function Run should have comment or be unexported (golint)
    • go-loadgen/loadgenerator/generator.go
    • Line 32: warning: comment on exported function GenerateLoadFromInputFile should be of the form "GenerateLoadFromInputFile ..." (golint)
    • Line 168: warning: comment on exported function GenerateAlphaNumeric should be of the form "GenerateAlphaNumeric ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign84%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!