Preparing report...

Report for github.com/klokare/evo

A+    Excellent!    Found 16 issues across 82 files

Tweet

gofmt92%

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!


gocyclo89%

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.

    • evo/comparer.go
    • Line 55: warning: cyclomatic complexity 27 of function (Comparison).Compare() is high (> 15) (gocyclo)

golint97%

Golint is a linter for Go source code.

    • evo/internal/mock/helpers.go
    • Line 9: warning: exported type Experiment should have comment or be unexported (golint)
    • Line 21: warning: exported method Experiment.Subscribers should have comment or be unexported (golint)
    • Line 23: warning: exported type Crosser should have comment or be unexported (golint)
    • Line 25: warning: exported method Crosser.Cross should have comment or be unexported (golint)
    • Line 34: warning: exported type Transcriber should have comment or be unexported (golint)
    • Line 36: warning: exported method Transcriber.Transcribe should have comment or be unexported (golint)
    • Line 45: warning: exported type Translator should have comment or be unexported (golint)
    • Line 47: warning: exported method Translator.Translate should have comment or be unexported (golint)
    • Line 56: warning: exported type Evaluator should have comment or be unexported (golint)
    • Line 58: warning: exported method Evaluator.Evaluate should have comment or be unexported (golint)
    • Line 67: warning: exported type Mutator should have comment or be unexported (golint)
    • Line 69: warning: exported method Mutator.Mutate should have comment or be unexported (golint)
    • Line 77: warning: exported type Populator should have comment or be unexported (golint)
    • Line 83: warning: exported method Populator.Populate should have comment or be unexported (golint)
    • Line 96: warning: exported type Searcher should have comment or be unexported (golint)
    • Line 98: warning: exported method Searcher.Search should have comment or be unexported (golint)
    • Line 107: warning: exported type Seeder should have comment or be unexported (golint)
    • Line 109: warning: exported method Seeder.Seed should have comment or be unexported (golint)
    • Line 131: warning: exported type Selector should have comment or be unexported (golint)
    • Line 133: warning: exported method Selector.Select should have comment or be unexported (golint)
    • Line 145: warning: exported type Speciator should have comment or be unexported (golint)
    • Line 147: warning: exported method Speciator.Speciate should have comment or be unexported (golint)
    • evo/internal/float/float64.go
    • Line 46: warning: exported function Range should have comment or be unexported (golint)
    • Line 50: warning: exported function Sum should have comment or be unexported (golint)
    • Line 58: warning: exported function Mean should have comment or be unexported (golint)
    • Line 65: warning: exported function Variance should have comment or be unexported (golint)
    • Line 77: warning: exported function Stdev should have comment or be unexported (golint)
    • Line 82: warning: exported function Median should have comment or be unexported (golint)
    • Line 101: warning: exported function Abs should have comment or be unexported (golint)
    • Line 108: warning: exported function Round should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!