Preparing report...

Report for github.com/kniren/gota

B    Not bad!    Found 8 issues across 11 files

Tweet

gofmt63%

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!


gocyclo63%

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.

    • gota/series/series.go
    • Line 128: warning: cyclomatic complexity 21 of function New() is high (> 15) (gocyclo)
    • Line 368: warning: cyclomatic complexity 20 of function (Series).Compare() is high (> 15) (gocyclo)
    • gota/dataframe/dataframe.go
    • Line 104: warning: cyclomatic complexity 34 of function (DataFrame).print() is high (> 15) (gocyclo)
    • Line 1513: warning: cyclomatic complexity 32 of function (DataFrame).OuterJoin() is high (> 15) (gocyclo)
    • Line 1405: warning: cyclomatic complexity 25 of function (DataFrame).RightJoin() is high (> 15) (gocyclo)
    • Line 1307: warning: cyclomatic complexity 23 of function (DataFrame).LeftJoin() is high (> 15) (gocyclo)
    • Line 588: warning: cyclomatic complexity 23 of function (DataFrame).Rapply() is high (> 15) (gocyclo)
    • Line 1787: warning: cyclomatic complexity 21 of function parseSelectIndexes() is high (> 15) (gocyclo)
    • Line 924: warning: cyclomatic complexity 20 of function LoadRecords() is high (> 15) (gocyclo)
    • Line 804: warning: cyclomatic complexity 20 of function LoadStructs() is high (> 15) (gocyclo)
    • Line 1228: warning: cyclomatic complexity 19 of function (DataFrame).InnerJoin() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • gota/dataframe/dataframe.go
    • Line 1395: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 1499: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 1601: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 1627: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign63%

IneffAssign detects ineffectual assignments in Go code.

    • gota/series/series.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import gonum.org/v1/gonum/stat (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import gonum.org/v1/gonum/stat (invalid package name: "") (ineffassign)
    • gota/dataframe/dataframe.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/go-gota/gota/series (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/go-gota/gota/series (invalid package name: "") (ineffassign)
    • gota/dataframe/benchmark_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/go-gota/gota/dataframe (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/go-gota/gota/series (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!