Preparing report...

Report for github.com/emer/leabra

(v1.2.8)

A+    Excellent!    Found 32 issues across 137 files

Tweet

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!


gofmt89%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • examples/pvlv/pvlv_env.go
    • Line 399: warning: cyclomatic complexity 64 of function (*PVLVEnv).SetupOneAlphaTrial() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 22 of function (*PVLVEnv).SetTableTrialGpListFmDefnTable() is high (> 15) (gocyclo)
    • deep/basic_test.go
    • Line 232: warning: cyclomatic complexity 17 of function TestNetLearn() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 16 of function TestNetAct() is high (> 15) (gocyclo)
    • leabra/basic_test.go
    • Line 248: warning: cyclomatic complexity 17 of function TestNetLearn() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 16 of function TestInhibAct() is high (> 15) (gocyclo)
    • Line 140: warning: cyclomatic complexity 16 of function TestNetAct() is high (> 15) (gocyclo)
    • rl/rw.go
    • Line 171: warning: cyclomatic complexity 16 of function (*RWPrjn).DWt() is high (> 15) (gocyclo)
    • deep/trc.go
    • Line 223: warning: cyclomatic complexity 30 of function (*TRCLayer).SetDriverActs() is high (> 15) (gocyclo)
    • pvlv/vta.go
    • Line 111: warning: cyclomatic complexity 18 of function (*VTALayer).GetMonitorVal() is high (> 15) (gocyclo)
    • examples/mpi/ra25.go
    • Line 374: warning: cyclomatic complexity 19 of function (*Sim).AlphaCyc() is high (> 15) (gocyclo)
    • Line 1547: warning: cyclomatic complexity 18 of function (*Sim).CmdArgs() is high (> 15) (gocyclo)
    • pvlv/lhb_rmtg.go
    • Line 102: warning: cyclomatic complexity 19 of function (*LHbRMTgLayer).ActFmG() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 18 of function (*LHbRMTgLayer).GetMonitorVal() is high (> 15) (gocyclo)
    • examples/hip_bench/testing_effect/hip_bench_te.go
    • Line 507: warning: cyclomatic complexity 29 of function (*Sim).AlphaCyc() is high (> 15) (gocyclo)
    • Line 646: warning: cyclomatic complexity 28 of function (*Sim).AlphaCycRestudy() is high (> 15) (gocyclo)
    • Line 777: warning: cyclomatic complexity 27 of function (*Sim).AlphaCycRP() is high (> 15) (gocyclo)
    • Line 2525: warning: cyclomatic complexity 17 of function (*Sim).ConfigGui() is high (> 15) (gocyclo)
    • Line 1463: warning: cyclomatic complexity 17 of function (*Sim).SetParamsSet() is high (> 15) (gocyclo)
    • Line 2081: warning: cyclomatic complexity 16 of function (*Sim).LogTstEpc() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words

    • examples/mpi/ra25.go
    • Line 79: warning: "explictly" is a misspelling of "explicitly" (misspell)
    • Line 192: warning: "runing" is a misspelling of "running" (misspell)
    • Line 1343: warning: "occuring" is a misspelling of "occurring" (misspell)
    • examples/ra25/ra25.go
    • Line 86: warning: "explictly" is a misspelling of "explicitly" (misspell)
    • Line 162: warning: "runing" is a misspelling of "running" (misspell)
    • Line 753: warning: "occuring" is a misspelling of "occurring" (misspell)
    • examples/env/sim.go
    • Line 73: warning: "explictly" is a misspelling of "explicitly" (misspell)
    • Line 149: warning: "runing" is a misspelling of "running" (misspell)
    • Line 1155: warning: "occuring" is a misspelling of "occurring" (misspell)