Preparing report...

Report for github.com/EricsmOOn/GoGep

A    Great!    Found 9 issues across 10 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!


gocyclo90%

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.


golint10%

Golint is a linter for Go source code.

    • GoGep/chart/chart.go
    • Line 12: warning: exported var MaxFitness should have comment or be unexported (golint)
    • Line 14: warning: exported var AvaFitness should have comment or be unexported (golint)
    • Line 16: warning: exported var XValue should have comment or be unexported (golint)
    • Line 18: warning: exported var XValueTestPred should have comment or be unexported (golint)
    • Line 20: warning: exported var YValueTestPred should have comment or be unexported (golint)
    • Line 22: warning: exported var YValueTestPredError should have comment or be unexported (golint)
    • Line 24: warning: exported var XValueSamplePred should have comment or be unexported (golint)
    • Line 26: warning: exported var YValueSamplePred should have comment or be unexported (golint)
    • Line 28: warning: exported var YValueSamplePredError should have comment or be unexported (golint)
    • Line 30: warning: exported var Gene should have comment or be unexported (golint)
    • Line 32: warning: exported var MaxPrinter should have comment or be unexported (golint)
    • Line 34: warning: exported function GetPredictResult should have comment or be unexported (golint)
    • Line 67: warning: exported function GetChartData should have comment or be unexported (golint)
    • Line 85: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 158: warning: exported function Handler should have comment or be unexported (golint)
    • GoGep/gep/calculate.go
    • Line 9: warning: exported var Wg should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CalculateFitnessOpt should be of the form "CalculateFitnessOpt ..." (golint)
    • GoGep/gep/gene.go
    • Line 8: warning: exported var R should have comment or be unexported (golint)
    • Line 10: warning: exported type Gene should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function CreateGenes should be of the form "CreateGenes ..." (golint)
    • Line 63: warning: comment on exported function Evolution should be of the form "Evolution ..." (golint)
    • Line 70: warning: comment on exported function Select should be of the form "Select ..." (golint)
    • Line 81: warning: comment on exported function Turn should be of the form "Turn ..." (golint)
    • Line 101: warning: comment on exported function Elite should be of the form "Elite ..." (golint)
    • Line 115: warning: comment on exported function EliteNone should be of the form "EliteNone ..." (golint)
    • GoGep/gep/global.go
    • Line 22: warning: exported var TermSetAll should have comment or be unexported (golint)
    • Line 30: warning: comment on exported var CsvSampleFileName should be of the form "CsvSampleFileName ..." (golint)
    • Line 39: warning: comment on exported var ViewStyle should be of the form "ViewStyle ..." (golint)
    • Line 42: warning: comment on exported var TenCheck should be of the form "TenCheck ..." (golint)
    • Line 45: warning: comment on exported var MoreFunc should be of the form "MoreFunc ..." (golint)
    • Line 48: warning: comment on exported var Chart should be of the form "Chart ..." (golint)
    • Line 51: warning: comment on exported var ChartInterval should be of the form "ChartInterval ..." (golint)
    • Line 54: warning: comment on exported var ChartPort should be of the form "ChartPort ..." (golint)
    • Line 57: warning: comment on exported var MaxGenerations should be of the form "MaxGenerations ..." (golint)
    • Line 60: warning: comment on exported var FitnessFunc should be of the form "FitnessFunc ..." (golint)
    • Line 63: warning: comment on exported var HeadLength should be of the form "HeadLength ..." (golint)
    • Line 69: warning: comment on exported var PopulationsSize should be of the form "PopulationsSize ..." (golint)
    • Line 72: warning: comment on exported var SelectRang should be of the form "SelectRang ..." (golint)
    • Line 75: warning: comment on exported var ResultSampleAvg should be of the form "ResultSampleAvg ..." (golint)
    • Line 78: warning: comment on exported var Precision should be of the form "Precision ..." (golint)
    • Line 81: warning: comment on exported var NumOfGenes should be of the form "NumOfGenes ..." (golint)
    • Line 84: warning: comment on exported var LinkFun should be of the form "LinkFun ..." (golint)
    • Line 87: warning: comment on exported var FunSet should be of the form "FunSet ..." (golint)
    • Line 90: warning: comment on exported var TermSet should be of the form "TermSet ..." (golint)
    • Line 93: warning: comment on exported var DcMutationRate should be of the form "DcMutationRate ..." (golint)
    • Line 96: warning: comment on exported var OnePointRecombinationRate should be of the form "OnePointRecombinationRate ..." (golint)
    • Line 99: warning: comment on exported var TwoPointRecombinationRate should be of the form "TwoPointRecombinationRate ..." (golint)
    • Line 102: warning: comment on exported var RecombinationRate should be of the form "RecombinationRate ..." (golint)
    • Line 105: warning: comment on exported var ISTranspositionRate should be of the form "ISTranspositionRate ..." (golint)
    • Line 108: warning: comment on exported var ISElementsLength should be of the form "ISElementsLength ..." (golint)
    • Line 111: warning: comment on exported var RISTranspositionRate should be of the form "RISTranspositionRate ..." (golint)
    • Line 114: warning: comment on exported var RISElementsLength should be of the form "RISElementsLength ..." (golint)
    • Line 117: warning: comment on exported var GeneTranspositionRate should be of the form "GeneTranspositionRate ..." (golint)
    • Line 120: warning: comment on exported var MaxFactorNum should be of the form "MaxFactorNum ..." (golint)
    • Line 123: warning: comment on exported var TailLength should be of the form "TailLength ..." (golint)
    • Line 126: warning: comment on exported var GeneLength should be of the form "GeneLength ..." (golint)
    • Line 129: warning: comment on exported var ResultRang should be of the form "ResultRang ..." (golint)
    • Line 132: warning: comment on exported var DynamicDcMutation should be of the form "DynamicDcMutation ..." (golint)
    • Line 138: warning: comment on exported var DynamicDcMutationRate should be of the form "DynamicDcMutationRate ..." (golint)
    • Line 141: warning: comment on exported var EliteNum should be of the form "EliteNum ..." (golint)
    • Line 144: warning: comment on exported var NonEliteNum should be of the form "NonEliteNum ..." (golint)
    • Line 147: warning: comment on exported var TurnNum should be of the form "TurnNum ..." (golint)
    • GoGep/gep/printer.go
    • Line 7: warning: comment on exported function PrintSelf should be of the form "PrintSelf ..." (golint)
    • Line 15: warning: comment on exported function PrintSelfEasy should be of the form "PrintSelfEasy ..." (golint)
    • Line 26: warning: exported var MaxFitness should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function PrintMostEasy should be of the form "PrintMostEasy ..." (golint)
    • Line 54: warning: exported function PrintGreat should have comment or be unexported (golint)
    • GoGep/gep/test.go
    • Line 3: warning: exported function GetTestResult should have comment or be unexported (golint)
    • Line 12: warning: exported function GetSampleResult should have comment or be unexported (golint)
    • Line 24: warning: exported function GetPredictTestResult should have comment or be unexported (golint)
    • Line 36: warning: exported function GetPredictSampleResult should have comment or be unexported (golint)
    • GoGep/gep/data.go
    • Line 9: warning: exported type Data should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadSampleData should have comment or be unexported (golint)
    • Line 22: warning: exported function ReadTestData should have comment or be unexported (golint)
    • Line 26: warning: exported function InitSampleData should have comment or be unexported (golint)
    • Line 67: warning: exported function GetVarSetNum should have comment or be unexported (golint)
    • Line 72: warning: exported function GetSampleDataNum should have comment or be unexported (golint)
    • Line 77: warning: exported function GetTestDataNum should have comment or be unexported (golint)
    • Line 82: warning: exported function GetSampleResultAvg should have comment or be unexported (golint)
    • GoGep/gep/opreation.go
    • Line 7: warning: comment on exported function GetOperationFactorNum should be of the form "GetOperationFactorNum ..." (golint)
    • Line 21: warning: comment on exported function GetMaxFactorNum should be of the form "GetMaxFactorNum ..." (golint)
    • Line 43: warning: comment on exported function GetInfixExpressions should be of the form "GetInfixExpressions ..." (golint)
    • Line 51: warning: comment on exported function GetInfixExpression should be of the form "GetInfixExpression ..." (golint)
    • Line 126: warning: comment on exported function GetEffectGene should be of the form "GetEffectGene ..." (golint)
    • Line 149: warning: comment on exported function GetEffectGenes should be of the form "GetEffectGenes ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!