Preparing report...

Report for github.com/LuKks/neural-go

(v1.0.1)

D    Needs lots of improvement    Found 4 issues across 4 files

Tweet

gofmt0%

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!


gocyclo100%

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.

No problems detected. Good job!


golint25%

Golint is a linter for Go source code.

    • index.go
    • Line 9: warning: exported type Neuron should have comment or be unexported (golint)
    • Line 19: warning: exported type Layer should have comment or be unexported (golint)
    • Line 27: warning: exported type Neural should have comment or be unexported (golint)
    • Line 32: warning: exported function NewNeuron should have comment or be unexported (golint)
    • Line 47: warning: exported method Neuron.Think should have comment or be unexported (golint)
    • Line 59: warning: exported function NewLayer should have comment or be unexported (golint)
    • Line 87: warning: exported method Layer.Think should have comment or be unexported (golint)
    • Line 97: warning: exported function NewNeural should have comment or be unexported (golint)
    • Line 106: warning: exported method Neural.ThinkRaw should have comment or be unexported (golint)
    • Line 116: warning: exported method Neural.LearnRaw should have comment or be unexported (golint)
    • Line 163: warning: comment on exported function NewInputLayer should be of the form "NewInputLayer ..." (golint)
    • Line 168: warning: exported function NewHiddenLayer should have comment or be unexported (golint)
    • Line 172: warning: exported function NewOutputLayer should have comment or be unexported (golint)
    • Line 176: warning: exported method Neural.Think should have comment or be unexported (golint)
    • Line 180: warning: exported method Neural.Learn should have comment or be unexported (golint)
    • Line 184: warning: exported method Neural.InputValuesToRaw should have comment or be unexported (golint)
    • Line 195: warning: exported method Neural.OutputValuesToRaw should have comment or be unexported (golint)
    • Line 206: warning: exported method Neural.OutputValuesFromRaw should have comment or be unexported (golint)
    • Line 218: warning: exported method Neural.InputRange should have comment or be unexported (golint)
    • Line 228: warning: exported method Neural.OutputRange should have comment or be unexported (golint)
    • examples/learning.go
    • Line 7: warning: exported type AnyNeuron should have comment or be unexported (golint)
    • Line 11: warning: exported type Neuron should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!