Preparing report...

Report for github.com/tomoyane/http-continuous-benchmarking

A+    Excellent!    Found 5 issues across 11 files

Tweet

gofmt90%

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!


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!


golint54%

Golint is a linter for Go source code.

    • http-continuous-benchmarking/calculator.go
    • Line 12: warning: exported type Calculator should have comment or be unexported (golint)
    • Line 22: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 55: warning: exported method Metrics.CalculatePerTrial should have comment or be unexported (golint)
    • Line 117: warning: exported method Metrics.CalculateMethodErrors should have comment or be unexported (golint)
    • Line 136: warning: exported method Metrics.GetMetricsResult should have comment or be unexported (golint)
    • Line 140: warning: exported method Metrics.PercentileN should have comment or be unexported (golint)
    • http-continuous-benchmarking/client.go
    • Line 16: warning: exported type BenchmarkClient should have comment or be unexported (golint)
    • Line 24: warning: exported type HttpClient should have comment or be unexported (golint)
    • Line 30: warning: exported type Result should have comment or be unexported (golint)
    • Line 77: warning: exported method HttpClient.Attack should have comment or be unexported (golint)
    • Line 122: warning: exported method HttpClient.Warmup should have comment or be unexported (golint)
    • Line 134: warning: exported method HttpClient.GetRandomHttpRequests should have comment or be unexported (golint)
    • http-continuous-benchmarking/graph.go
    • Line 16: warning: exported type Graph should have comment or be unexported (golint)
    • Line 22: warning: exported type GraphImpl should have comment or be unexported (golint)
    • Line 30: warning: exported type GraphDetail should have comment or be unexported (golint)
    • Line 39: warning: exported function NewGraph should have comment or be unexported (golint)
    • Line 54: warning: exported method GraphImpl.Output should have comment or be unexported (golint)
    • Line 105: warning: exported method GraphImpl.GenerateCharts should have comment or be unexported (golint)
    • http-continuous-benchmarking/validation.go
    • Line 22: warning: exported function ValidateEnv should have comment or be unexported (golint)
    • Line 55: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 58: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 67: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 71: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 80: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 84: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 92: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 103: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 107: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 117: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 120: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 129: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 132: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 145: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 158: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!