Preparing report...

Report for github.com/thanos-io/thanosbench

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


gocyclo96%

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.


golint53%

Golint is a linter for Go source code.

    • thanosbench/pkg/seriesgen/seriesgen.go
    • Line 43: warning: exported type SeriesGen should have comment or be unexported (golint)
    • Line 49: warning: exported function NewSeriesGen should have comment or be unexported (golint)
    • Line 55: warning: exported method SeriesGen.Labels should have comment or be unexported (golint)
    • Line 57: warning: exported method SeriesGen.Iterator should have comment or be unexported (golint)
    • Line 63: warning: exported type Characteristics should have comment or be unexported (golint)
    • Line 71: warning: exported type GaugeGen should have comment or be unexported (golint)
    • Line 86: warning: exported function NewGaugeGen should have comment or be unexported (golint)
    • Line 99: warning: exported method GaugeGen.Next should have comment or be unexported (golint)
    • Line 121: warning: exported method GaugeGen.At should have comment or be unexported (golint)
    • Line 125: warning: exported method GaugeGen.Err should have comment or be unexported (golint)
    • Line 127: warning: comment on exported type CounterGen should be of the form "CounterGen ..." (with optional leading article) (golint)
    • Line 147: warning: exported function NewCounterGen should have comment or be unexported (golint)
    • Line 161: warning: exported method CounterGen.Next should have comment or be unexported (golint)
    • Line 214: warning: exported method CounterGen.At should have comment or be unexported (golint)
    • Line 216: warning: exported method CounterGen.Err should have comment or be unexported (golint)
    • Line 218: warning: exported type ValGen should have comment or be unexported (golint)
    • Line 228: warning: exported function NewValGen should have comment or be unexported (golint)
    • Line 239: warning: exported method ValGen.Next should have comment or be unexported (golint)
    • Line 250: warning: exported method ValGen.At should have comment or be unexported (golint)
    • Line 254: warning: exported method ValGen.Err should have comment or be unexported (golint)
    • thanosbench/pkg/walgen/walgen.go
    • Line 22: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 29: warning: exported type Series should have comment or be unexported (golint)
    • Line 41: warning: exported type QueryData should have comment or be unexported (golint)
    • Line 46: warning: exported function GenerateTSDBWAL should have comment or be unexported (golint)
    • Line 109: warning: exported type Set should have comment or be unexported (golint)
    • Line 114: warning: exported method Set.Next should have comment or be unexported (golint)
    • Line 122: warning: exported method Set.At should have comment or be unexported (golint)
    • Line 124: warning: exported method Set.Err should have comment or be unexported (golint)
    • thanosbench/configs/kubernetes/remote-read.go
    • Line 22: warning: exported function GenRemoteReadBenchPrometheusWith10h10kSeriesWAL should have comment or be unexported (golint)
    • Line 100: warning: exported function GenRemoteReadBenchPrometheusWith1MoBlocks1kSeries should have comment or be unexported (golint)
    • thanosbench/pkg/blockgen/blockgen.go
    • Line 30: warning: comment on exported type BlockSpec should be of the form "BlockSpec ..." (with optional leading article) (golint)
    • Line 36: warning: exported type GenType should have comment or be unexported (golint)
    • Line 39: warning: exported const Random should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported method GenType.Create should have comment or be unexported (golint)
    • Line 57: warning: exported type SeriesSpec should have comment or be unexported (golint)
    • thanosbench/pkg/blockgen/profiles.go
    • Line 17: warning: exported type PlanFn should have comment or be unexported (golint)
    • Line 18: warning: exported type ProfileMap should have comment or be unexported (golint)
    • Line 20: warning: exported method ProfileMap.Keys should have comment or be unexported (golint)
    • Line 28: warning: exported var Profiles should have comment or be unexported (golint)
    • thanosbench/configs/kubernetes/prometheus.go
    • Line 30: warning: exported function GenMonitor should have comment or be unexported (golint)
    • Line 244: warning: exported type PrometheusOpts should have comment or be unexported (golint)
    • Line 267: warning: comment on exported function GenPrometheus should be of the form "GenPrometheus ..." (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!