Preparing report...

Report for github.com/asafschers/goscore

A    Great!    Found 4 issues across 15 files

Tweet

gofmt73%

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!


gocyclo93%

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.


golint80%

Golint is a linter for Go source code.

    • goscore/logistic_regression.go
    • Line 9: warning: exported type PMMLLR should have comment or be unexported (golint)
    • Line 14: warning: exported type LogisticRegression should have comment or be unexported (golint)
    • Line 26: warning: exported type RegressionTable should have comment or be unexported (golint)
    • Line 34: warning: exported type NumericPredictor should have comment or be unexported (golint)
    • Line 40: warning: exported type NormalizationMethodMap should have comment or be unexported (golint)
    • Line 42: warning: exported var NormalizationMethodMaps should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function SoftmaxNormalizationMethods should be of the form "SoftmaxNormalizationMethods ..." (golint)
    • Line 68: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 77: warning: exported function NewLogisticRegression should have comment or be unexported (golint)
    • Line 95: warning: comment on exported method LogisticRegression.Score should be of the form "Score ..." (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 142: warning: comment on exported method LogisticRegression.SetupNumbericPredictorMap should be of the form "SetupNumbericPredictorMap ..." (golint)
    • Line 155: warning: comment on exported method LogisticRegression.RegressionFunctionContinuous should be of the form "RegressionFunctionContinuous ..." (golint)
    • goscore/neural_network.go
    • Line 31: warning: exported var ActivationFunctions should have comment or be unexported (golint)
    • Line 32: warning: exported var NormalizationMethods should have comment or be unexported (golint)
    • Line 34: warning: exported type MiningField should have comment or be unexported (golint)
    • Line 37: warning: exported type NeuralNetWorkStructure should have comment or be unexported (golint)
    • Line 41: warning: exported type FieldRef should have comment or be unexported (golint)
    • Line 45: warning: exported type DerivedField should have comment or be unexported (golint)
    • Line 50: warning: exported type NormDiscrete should have comment or be unexported (golint)
    • Line 54: warning: exported method DerivedField.GetInputName should have comment or be unexported (golint)
    • Line 61: warning: exported type Contribution should have comment or be unexported (golint)
    • Line 65: warning: exported type Neuron should have comment or be unexported (golint)
    • Line 71: warning: exported type NeuralInputs should have comment or be unexported (golint)
    • Line 74: warning: exported type OutputField should have comment or be unexported (golint)
    • Line 78: warning: exported type Outputs should have comment or be unexported (golint)
    • Line 81: warning: exported type NeuralOutput should have comment or be unexported (golint)
    • Line 85: warning: exported type NeuralOutputs should have comment or be unexported (golint)
    • Line 88: warning: exported type NeuralLayer should have comment or be unexported (golint)
    • Line 94: warning: exported type NeuralNetwork should have comment or be unexported (golint)
    • Line 106: warning: exported type PMMLNN should have comment or be unexported (golint)
    • Line 110: warning: exported function NewNeuralNetwork should have comment or be unexported (golint)
    • Line 118: warning: exported function NewNeuralNetworkFromReader should have comment or be unexported (golint)
    • Line 127: warning: exported method NeuralNetwork.Score should have comment or be unexported (golint)
    • Line 144: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 151: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 164: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 171: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 203: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 217: warning: exported type ActivationFunction should have comment or be unexported (golint)
    • Line 218: warning: exported type NormalizationMethod should have comment or be unexported (golint)
    • Line 220: warning: error var ActivationFunctionNotImplemented should have name of the form ErrFoo (golint)
    • Line 220: warning: exported var ActivationFunctionNotImplemented should have comment or be unexported (golint)
    • Line 221: warning: error var NormalizationMethodNotImplemented should have name of the form ErrFoo (golint)
    • Line 221: warning: exported var NormalizationMethodNotImplemented should have comment or be unexported (golint)
    • Line 223: warning: exported function NewThresHoldFunction should have comment or be unexported (golint)
    • Line 227: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 232: warning: exported function IdentityActivationFunction should have comment or be unexported (golint)
    • Line 235: warning: exported function LogisticActivationFunction should have comment or be unexported (golint)
    • Line 238: warning: exported function TanhActivationFunction should have comment or be unexported (golint)
    • Line 241: warning: exported function ExponentialActivationFunction should have comment or be unexported (golint)
    • Line 244: warning: exported function ReciprocalActivationFunction should have comment or be unexported (golint)
    • Line 247: warning: exported function SquareActivationFunction should have comment or be unexported (golint)
    • Line 250: warning: exported function GaussActivationFunction should have comment or be unexported (golint)
    • Line 253: warning: exported function SineActivationFunction should have comment or be unexported (golint)
    • Line 256: warning: exported function CosineActivationFunction should have comment or be unexported (golint)
    • Line 259: warning: exported function ElliottActivationFunction should have comment or be unexported (golint)
    • Line 262: warning: exported function ArctanActivationFunction should have comment or be unexported (golint)
    • Line 265: warning: exported function RectifierActivationFunction should have comment or be unexported (golint)
    • Line 268: warning: exported function SoftmaxNormalizationMethod should have comment or be unexported (golint)

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!