Preparing report...

Report for github.com/cpmech/gosl

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


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo91%

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.

    • gosl/num/brent.go
    • Line 357: warning: cyclomatic complexity 34 of function (*Brent).MinUseD() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 21 of function (*Brent).Min() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 20 of function (*Brent).Root() is high (> 15) (gocyclo)
    • gosl/ode/erk.go
    • Line 180: warning: cyclomatic complexity 17 of function (*ExplicitRK).Step() is high (> 15) (gocyclo)
    • gosl/ode/ode.go
    • Line 102: warning: cyclomatic complexity 45 of function (*Solver).Solve() is high (> 15) (gocyclo)
    • gosl/gm/msh/mesh.go
    • Line 140: warning: cyclomatic complexity 25 of function (*Mesh).CheckAndCalcDerivedVars() is high (> 15) (gocyclo)
    • gosl/la/sparse_matrix.go
    • Line 206: warning: cyclomatic complexity 19 of function (*Triplet).ReadSmat() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 19 of function (*TripletC).ReadSmat() is high (> 15) (gocyclo)
    • gosl/fun/t_bessel_test.go
    • Line 103: warning: cyclomatic complexity 21 of function TestBessel02() is high (> 15) (gocyclo)
    • Line 19: warning: cyclomatic complexity 16 of function TestBessel01() is high (> 15) (gocyclo)
    • gosl/gm/nurbs.go
    • Line 514: warning: cyclomatic complexity 30 of function (*Nurbs).PointAndDerivs() is high (> 15) (gocyclo)
    • Line 949: warning: cyclomatic complexity 29 of function krefine() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 18 of function (*Nurbs).CalcBasisAndDerivs() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 17 of function (*Nurbs).CalcBasis() is high (> 15) (gocyclo)
    • Line 441: warning: cyclomatic complexity 16 of function (*Nurbs).PointAndFirstDerivs() is high (> 15) (gocyclo)
    • Line 388: warning: cyclomatic complexity 16 of function (*Nurbs).Point() is high (> 15) (gocyclo)
    • gosl/utl/sorting.go
    • Line 580: warning: cyclomatic complexity 19 of function (*Sorter).Init() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 18 of function Qsort2() is high (> 15) (gocyclo)
    • Line 376: warning: cyclomatic complexity 18 of function Qsort() is high (> 15) (gocyclo)
    • gosl/gm/grid.go
    • Line 877: warning: cyclomatic complexity 25 of function (*Grid).UnitNormal() is high (> 15) (gocyclo)
    • gosl/gm/t_grid_test.go
    • Line 168: warning: cyclomatic complexity 21 of function TestGrid02() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 17 of function TestGrid01() is high (> 15) (gocyclo)

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!