Preparing report...

Report for github.com/spatialcurrent/go-dfl

A+    Excellent!    Found 90 issues across 162 files

Tweet

gofmt93%

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!


golint51%

Golint is a linter for Go source code.

    • go-dfl/pkg/dfl/In.go
    • Line 25: warning: exported method In.Dfl should have comment or be unexported (golint)
    • Line 29: warning: exported method In.Sql should have comment or be unexported (golint)
    • Line 55: warning: exported method In.Map should have comment or be unexported (golint)
    • Line 59: warning: exported method In.Compile should have comment or be unexported (golint)
    • Line 65: warning: exported method In.Evaluate should have comment or be unexported (golint)
    • Line 86: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 89: warning: should omit 2nd value from range; this loop is equivalent to `for j := range ...` (golint)
    • Line 111: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 114: warning: should omit 2nd value from range; this loop is equivalent to `for j := range ...` (golint)
    • go-dfl/pkg/cli/output.go
    • Line 17: warning: exported const FlagOutputGo should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function InitOutputFlags should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Like.go
    • Line 24: warning: exported method Like.Dfl should have comment or be unexported (golint)
    • Line 33: warning: exported method Like.Map should have comment or be unexported (golint)
    • Line 37: warning: exported method Like.Compile should have comment or be unexported (golint)
    • Line 43: warning: exported method Like.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Null.go
    • Line 13: warning: exported method Null.Dfl should have comment or be unexported (golint)
    • Line 17: warning: exported method Null.Sql should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Concat.go
    • Line 82: warning: exported method Concat.Compile should have comment or be unexported (golint)
    • Line 91: warning: exported method Concat.Map should have comment or be unexported (golint)
    • Line 95: warning: exported method Concat.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Function.go
    • Line 22: warning: exported method Function.Dfl should have comment or be unexported (golint)
    • Line 82: warning: exported method Function.Compile should have comment or be unexported (golint)
    • Line 86: warning: exported method Function.Map should have comment or be unexported (golint)
    • Line 98: warning: exported method Function.Evaluate should have comment or be unexported (golint)
    • Line 117: 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)
    • go-dfl/pkg/dfl/functions.go
    • Line 133: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 148: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 314: warning: don't use underscores in Go names; var output_slice should be outputSlice (golint)
    • Line 493: warning: don't use underscores in Go names; var dfl_value should be dflValue (golint)
    • Line 495: warning: don't use underscores in Go names; var node_values should be nodeValues (golint)
    • Line 499: warning: don't use underscores in Go names; var dfl_key should be dflKey (golint)
    • Line 501: warning: don't use underscores in Go names; var node_key should be nodeKey (golint)
    • Line 512: warning: don't use underscores in Go names; var x_key should be xKey (golint)
    • Line 516: warning: don't use underscores in Go names; var x_key_str should be xKeyStr (golint)
    • Line 521: warning: don't use underscores in Go names; var x_values should be xValues (golint)
    • Line 527: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 527: warning: should omit 2nd value from range; this loop is equivalent to `for x_value := range ...` (golint)
    • Line 531: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 531: warning: should omit 2nd value from range; this loop is equivalent to `for x_value := range ...` (golint)
    • Line 535: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 539: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 556: warning: don't use underscores in Go names; var x_key should be xKey (golint)
    • Line 560: warning: don't use underscores in Go names; var x_key_str should be xKeyStr (golint)
    • Line 565: warning: don't use underscores in Go names; var x_values should be xValues (golint)
    • Line 571: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 575: warning: don't use underscores in Go names; range var x_value should be xValue (golint)
    • Line 654: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 660: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 769: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-dfl/pkg/dfl/reflect.go
    • Line 10: warning: exported type Lengther should have comment or be unexported (golint)
    • Line 14: warning: exported function CreateGroups should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Assign.go
    • Line 23: warning: exported method Assign.Dfl should have comment or be unexported (golint)
    • Line 44: warning: exported method Assign.Sql should have comment or be unexported (golint)
    • Line 64: warning: exported method Assign.Map should have comment or be unexported (golint)
    • Line 75: warning: exported method Assign.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/MultiOperator.go
    • Line 31: warning: exported method MultiOperator.Map should have comment or be unexported (golint)
    • Line 42: warning: exported method MultiOperator.Attributes should have comment or be unexported (golint)
    • Line 56: warning: exported method MultiOperator.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/cache/Cache.go
    • Line 61: warning: comment on exported method Cache.ParseCompile should be of the form "ParseCompile ..." (golint)
    • Line 89: warning: comment on exported function New should be of the form "New ..." (golint)
    • go-dfl/pkg/dfl/AssignMultiply.go
    • Line 24: warning: exported method AssignMultiply.Dfl should have comment or be unexported (golint)
    • Line 45: warning: exported method AssignMultiply.Sql should have comment or be unexported (golint)
    • Line 65: warning: exported method AssignMultiply.Map should have comment or be unexported (golint)
    • Line 76: warning: exported method AssignMultiply.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfljs/dfljs.go
    • Line 48: warning: exported method Node.Pretty should have comment or be unexported (golint)
    • Line 52: warning: exported method Node.Compile should have comment or be unexported (golint)
    • Line 59: warning: exported method Node.Evaluate should have comment or be unexported (golint)
    • Line 103: warning: exported var Exports should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/TryConvertMap.go
    • Line 45: warning: should omit 2nd value from range; this loop is equivalent to `for x := range ...` (golint)
    • Line 52: warning: should omit 2nd value from range; this loop is equivalent to `for x := range ...` (golint)
    • go-dfl/pkg/dfl/TernaryOperator.go
    • Line 23: warning: exported method TernaryOperator.Dfl should have comment or be unexported (golint)
    • Line 34: warning: exported method TernaryOperator.Sql should have comment or be unexported (golint)
    • Line 38: warning: exported method TernaryOperator.Map should have comment or be unexported (golint)
    • Line 47: warning: exported method TernaryOperator.Compile should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 68: warning: exported method TernaryOperator.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Pipeline.go
    • Line 37: warning: exported method Pipeline.Map should have comment or be unexported (golint)
    • Line 50: warning: exported method Pipeline.Evaluate should have comment or be unexported (golint)
    • Line 61: warning: exported method Pipeline.Attributes should have comment or be unexported (golint)
    • Line 75: warning: exported method Pipeline.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/AssignAdd.go
    • Line 24: warning: exported method AssignAdd.Dfl should have comment or be unexported (golint)
    • Line 45: warning: exported method AssignAdd.Sql should have comment or be unexported (golint)
    • Line 65: warning: exported method AssignAdd.Map should have comment or be unexported (golint)
    • Line 76: warning: exported method AssignAdd.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/BinaryOperator.go
    • Line 21: warning: exported method BinaryOperator.Builder should have comment or be unexported (golint)
    • Line 25: warning: exported method BinaryOperator.Dfl should have comment or be unexported (golint)
    • Line 48: warning: exported method BinaryOperator.Sql should have comment or be unexported (golint)
    • Line 52: warning: exported method BinaryOperator.Map should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Extract.go
    • Line 23: warning: don't use underscores in Go names; var index_questionmark should be indexQuestionmark (golint)
    • Line 24: warning: don't use underscores in Go names; var index_period should be indexPeriod (golint)
    • Line 25: warning: don't use underscores in Go names; var index_start should be indexStart (golint)
    • Line 26: warning: don't use underscores in Go names; var index_end should be indexEnd (golint)
    • Line 92: warning: don't use underscores in Go names; var index_questionmark should be indexQuestionmark (golint)
    • Line 92: warning: don't use underscores in Go names; var index_period should be indexPeriod (golint)
    • Line 92: warning: don't use underscores in Go names; var slice_start_index should be sliceStartIndex (golint)
    • Line 92: warning: don't use underscores in Go names; var slice_end_index should be sliceEndIndex (golint)
    • Line 140: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 270: warning: don't use underscores in Go names; var slice_index should be sliceIndex (golint)
    • Line 293: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 299: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 306: warning: don't use underscores in Go names; var slice_index should be sliceIndex (golint)
    • Line 323: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-dfl/pkg/dfl/Attribute.go
    • Line 23: warning: exported method Attribute.Dfl should have comment or be unexported (golint)
    • Line 30: warning: exported method Attribute.Sql should have comment or be unexported (golint)
    • Line 37: warning: exported method Attribute.Map should have comment or be unexported (golint)
    • Line 43: warning: exported method Attribute.Compile should have comment or be unexported (golint)
    • Line 47: warning: exported method Attribute.Evaluate should have comment or be unexported (golint)
    • Line 55: warning: exported method Attribute.Attributes should have comment or be unexported (golint)
    • Line 59: warning: exported method Attribute.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/FunctionMap.go
    • Line 26: warning: exported function NewFuntionMapWithDefaults should have comment or be unexported (golint)
    • Line 157: warning: exported var DefaultFunctionMap should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/GreaterThan.go
    • Line 16: warning: exported method GreaterThan.Dfl should have comment or be unexported (golint)
    • Line 25: warning: exported method GreaterThan.Map should have comment or be unexported (golint)
    • Line 29: warning: exported method GreaterThan.Compile should have comment or be unexported (golint)
    • Line 46: warning: exported method GreaterThan.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/NotEqual.go
    • Line 42: warning: exported method NotEqual.Map should have comment or be unexported (golint)
    • Line 46: warning: exported method NotEqual.Compile should have comment or be unexported (golint)
    • Line 52: warning: exported method NotEqual.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Or.go
    • Line 15: warning: exported method Or.Dfl should have comment or be unexported (golint)
    • Line 24: warning: exported method Or.Map should have comment or be unexported (golint)
    • Line 50: warning: exported method Or.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Set.go
    • Line 26: warning: exported method Set.Dfl should have comment or be unexported (golint)
    • Line 49: warning: exported method Set.Map should have comment or be unexported (golint)
    • Line 49: warning: receiver name a should be consistent with previous receiver name s for Set (golint)
    • Line 58: warning: receiver name a should be consistent with previous receiver name s for Set (golint)
    • Line 82: warning: exported method Set.Evaluate should have comment or be unexported (golint)
    • Line 82: warning: receiver name a should be consistent with previous receiver name s for Set (golint)
    • Line 105: warning: exported method Set.Attributes should have comment or be unexported (golint)
    • Line 105: warning: receiver name a should be consistent with previous receiver name s for Set (golint)
    • Line 119: warning: exported method Set.Variables should have comment or be unexported (golint)
    • Line 119: warning: receiver name a should be consistent with previous receiver name s for Set (golint)
    • go-dfl/pkg/dfl/TryConvertString.go
    • Line 38: warning: don't use underscores in Go names; var s_lc should be sLc (golint)
    • Line 77: warning: don't use underscores in Go names; var left_f64 should be leftF64 (golint)
    • Line 83: warning: don't use underscores in Go names; var left_int should be leftInt (golint)
    • Line 88: warning: don't use underscores in Go names; var left_time should be leftTime (golint)
    • Line 103: warning: don't use underscores in Go names; var left_ipv4 should be leftIpv4 (golint)
    • Line 108: warning: don't use underscores in Go names; var left_net should be leftNet (golint)
    • go-dfl/pkg/dfl/Variable.go
    • Line 23: warning: exported method Variable.Dfl should have comment or be unexported (golint)
    • Line 27: warning: exported method Variable.Sql should have comment or be unexported (golint)
    • Line 34: warning: exported method Variable.Map should have comment or be unexported (golint)
    • Line 40: warning: exported method Variable.Compile should have comment or be unexported (golint)
    • Line 44: warning: exported method Variable.Evaluate should have comment or be unexported (golint)
    • Line 52: warning: exported method Variable.Attributes should have comment or be unexported (golint)
    • Line 56: warning: exported method Variable.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/builder/Builder.go
    • Line 19: warning: exported type Node should have comment or be unexported (golint)
    • Line 24: warning: exported type Builder should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 48: warning: exported method Builder.Pretty should have comment or be unexported (golint)
    • Line 61: warning: exported method Builder.Indent should have comment or be unexported (golint)
    • Line 74: warning: exported method Builder.Tabs should have comment or be unexported (golint)
    • Line 87: warning: exported method Builder.Left should have comment or be unexported (golint)
    • Line 100: warning: exported method Builder.Op should have comment or be unexported (golint)
    • Line 113: warning: exported method Builder.Right should have comment or be unexported (golint)
    • Line 126: warning: exported method Builder.TrimRight should have comment or be unexported (golint)
    • Line 139: warning: exported method Builder.Dfl should have comment or be unexported (golint)
    • Line 170: warning: exported method Builder.Sql should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Context.go
    • Line 24: warning: exported method Context.Len should have comment or be unexported (golint)
    • Line 28: warning: exported method Context.Has should have comment or be unexported (golint)
    • Line 33: warning: exported method Context.Get should have comment or be unexported (golint)
    • Line 37: warning: exported method Context.Set should have comment or be unexported (golint)
    • Line 41: warning: exported method Context.Values should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Before.go
    • Line 16: warning: exported method Before.Dfl should have comment or be unexported (golint)
    • Line 25: warning: exported method Before.Map should have comment or be unexported (golint)
    • Line 29: warning: exported method Before.Compile should have comment or be unexported (golint)
    • Line 46: warning: exported method Before.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/cli/fmt.go
    • Line 17: warning: exported const FlagUri should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function InitFmtFlags should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Subtract.go
    • Line 16: warning: exported type Subtract should have comment or be unexported (golint)
    • Line 20: warning: exported method Subtract.Dfl should have comment or be unexported (golint)
    • Line 24: warning: exported method Subtract.Sql should have comment or be unexported (golint)
    • Line 28: warning: exported method Subtract.Map should have comment or be unexported (golint)
    • Line 32: warning: exported method Subtract.Compile should have comment or be unexported (golint)
    • Line 49: warning: exported method Subtract.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Array.go
    • Line 52: warning: exported method Array.Map should have comment or be unexported (golint)
    • Line 76: warning: exported method Array.Evaluate should have comment or be unexported (golint)
    • Line 88: warning: exported method Array.Attributes should have comment or be unexported (golint)
    • Line 102: warning: exported method Array.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Dictionary.go
    • Line 19: warning: exported function NewDictionary should have comment or be unexported (golint)
    • Line 36: warning: exported method Dictionary.Dfl should have comment or be unexported (golint)
    • Line 66: warning: exported method Dictionary.Map should have comment or be unexported (golint)
    • Line 81: warning: exported method Dictionary.Evaluate should have comment or be unexported (golint)
    • Line 97: warning: exported method Dictionary.Attributes should have comment or be unexported (golint)
    • Line 114: warning: exported method Dictionary.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Literal.go
    • Line 23: warning: exported method Literal.Dfl should have comment or be unexported (golint)
    • Line 38: warning: exported method Literal.Map should have comment or be unexported (golint)
    • Line 44: warning: exported method Literal.Compile should have comment or be unexported (golint)
    • Line 48: warning: exported method Literal.Evaluate should have comment or be unexported (golint)
    • Line 52: warning: exported method Literal.Attributes should have comment or be unexported (golint)
    • Line 56: warning: exported method Literal.Variables should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/StringSet.go
    • Line 20: warning: exported method StringSet.Dfl should have comment or be unexported (golint)
    • Line 32: warning: exported method StringSet.Contains should have comment or be unexported (golint)
    • Line 37: warning: exported method StringSet.Len should have comment or be unexported (golint)
    • Line 49: warning: exported method StringSet.Union should have comment or be unexported (golint)
    • Line 71: warning: exported method StringSet.Intersection should have comment or be unexported (golint)
    • Line 97: warning: exported method StringSet.Intersects should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/LessThanOrEqual.go
    • Line 16: warning: comment on exported method LessThanOrEqual.Dfl should be of the form "Dfl ..." (golint)
    • Line 26: warning: exported method LessThanOrEqual.Map should have comment or be unexported (golint)
    • Line 30: warning: exported method LessThanOrEqual.Compile should have comment or be unexported (golint)
    • Line 47: warning: exported method LessThanOrEqual.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/AssignSubtract.go
    • Line 24: warning: exported method AssignSubtract.Dfl should have comment or be unexported (golint)
    • Line 45: warning: exported method AssignSubtract.Sql should have comment or be unexported (golint)
    • Line 65: warning: exported method AssignSubtract.Map should have comment or be unexported (golint)
    • Line 76: warning: exported method AssignSubtract.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Equal.go
    • Line 21: warning: exported method Equal.Dfl should have comment or be unexported (golint)
    • Line 39: warning: exported method Equal.Map should have comment or be unexported (golint)
    • Line 43: warning: exported method Equal.Compile should have comment or be unexported (golint)
    • Line 49: warning: exported method Equal.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/GreaterThanOrEqual.go
    • Line 16: warning: exported method GreaterThanOrEqual.Dfl should have comment or be unexported (golint)
    • Line 25: warning: exported method GreaterThanOrEqual.Map should have comment or be unexported (golint)
    • Line 29: warning: exported method GreaterThanOrEqual.Compile should have comment or be unexported (golint)
    • Line 46: warning: exported method GreaterThanOrEqual.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/IIn.go
    • Line 19: warning: comment on exported type IIn should be of the form "IIn ..." (with optional leading article) (golint)
    • Line 27: warning: exported method IIn.Dfl should have comment or be unexported (golint)
    • Line 31: warning: exported method IIn.Sql should have comment or be unexported (golint)
    • Line 36: warning: exported method IIn.Map should have comment or be unexported (golint)
    • Line 40: warning: exported method IIn.Compile should have comment or be unexported (golint)
    • Line 46: warning: exported method IIn.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/ILike.go
    • Line 22: warning: exported type ILike should have comment or be unexported (golint)
    • Line 26: warning: exported method ILike.Dfl should have comment or be unexported (golint)
    • Line 35: warning: exported method ILike.Map should have comment or be unexported (golint)
    • Line 39: warning: exported method ILike.Compile should have comment or be unexported (golint)
    • Line 45: warning: exported method ILike.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/shell/History.go
    • Line 10: warning: exported type History should have comment or be unexported (golint)
    • Line 15: warning: exported method History.Get should have comment or be unexported (golint)
    • Line 19: warning: exported method History.Forward should have comment or be unexported (golint)
    • Line 23: warning: exported method History.Back should have comment or be unexported (golint)
    • Line 27: warning: exported method History.Last should have comment or be unexported (golint)
    • Line 34: warning: exported method History.Line should have comment or be unexported (golint)
    • Line 38: warning: exported method History.Len should have comment or be unexported (golint)
    • Line 42: warning: exported method History.Empty should have comment or be unexported (golint)
    • Line 46: warning: exported method History.Push should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/After.go
    • Line 16: warning: exported method After.Dfl should have comment or be unexported (golint)
    • Line 25: warning: exported method After.Map should have comment or be unexported (golint)
    • Line 29: warning: exported method After.Compile should have comment or be unexported (golint)
    • Line 46: warning: exported method After.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/And.go
    • Line 19: warning: exported method And.Dfl should have comment or be unexported (golint)
    • Line 28: warning: exported method And.Map should have comment or be unexported (golint)
    • Line 54: warning: exported method And.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/LessThan.go
    • Line 16: warning: comment on exported method LessThan.Dfl should be of the form "Dfl ..." (golint)
    • Line 26: warning: exported method LessThan.Map should have comment or be unexported (golint)
    • Line 30: warning: exported method LessThan.Compile should have comment or be unexported (golint)
    • Line 47: warning: exported method LessThan.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Xor.go
    • Line 17: warning: exported method Xor.Dfl should have comment or be unexported (golint)
    • Line 38: warning: exported method Xor.Map should have comment or be unexported (golint)
    • Line 64: warning: exported method Xor.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/shell/Shell.go
    • Line 24: warning: exported type Executor should have comment or be unexported (golint)
    • Line 29: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 33: warning: exported type Shell should have comment or be unexported (golint)
    • Line 41: warning: exported method Shell.PrintHeader should have comment or be unexported (golint)
    • Line 47: warning: exported method Shell.PrintHelp should have comment or be unexported (golint)
    • Line 57: warning: exported method Shell.PrintHistory should have comment or be unexported (golint)
    • Line 64: warning: exported method Shell.PrintFunctions should have comment or be unexported (golint)
    • Line 67: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 74: warning: exported method Shell.PrintExamples should have comment or be unexported (golint)
    • Line 84: warning: exported method Shell.MoveLeft should have comment or be unexported (golint)
    • Line 91: warning: exported method Shell.MoveRight should have comment or be unexported (golint)
    • Line 98: warning: exported method Shell.GetKey should have comment or be unexported (golint)
    • Line 102: warning: exported method Shell.ClearLine should have comment or be unexported (golint)
    • Line 107: warning: exported method Shell.UpdateScreen should have comment or be unexported (golint)
    • Line 112: warning: exported method Shell.SetLine should have comment or be unexported (golint)
    • Line 117: warning: exported method Shell.CutLine should have comment or be unexported (golint)
    • Line 128: warning: exported method Shell.PasteLine should have comment or be unexported (golint)
    • Line 137: warning: exported method Shell.Exec should have comment or be unexported (golint)
    • Line 154: warning: exported method Shell.ResetLine should have comment or be unexported (golint)
    • Line 159: warning: exported method Shell.WriteString should have comment or be unexported (golint)
    • Line 177: warning: exported method Shell.Backspace should have comment or be unexported (golint)
    • Line 202: warning: exported method Shell.CleanLine should have comment or be unexported (golint)
    • Line 206: warning: exported function New should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Coalesce.go
    • Line 19: warning: exported method Coalesce.Dfl should have comment or be unexported (golint)
    • Line 28: warning: exported method Coalesce.Map should have comment or be unexported (golint)
    • Line 45: warning: exported method Coalesce.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/Pipe.go
    • Line 22: warning: exported method Pipe.Last should have comment or be unexported (golint)
    • Line 30: warning: exported method Pipe.Dfl should have comment or be unexported (golint)
    • Line 57: warning: exported method Pipe.Map should have comment or be unexported (golint)
    • Line 77: warning: exported method Pipe.Evaluate should have comment or be unexported (golint)
    • go-dfl/pkg/dfl/dfl.go
    • Line 74: warning: exported var DefaultTab should have comment or be unexported (golint)
    • Line 75: warning: exported var DefaultQuotes should have comment or be unexported (golint)
    • Line 77: warning: exported var SqlArrayPrefix should have comment or be unexported (golint)
    • Line 78: warning: exported var SqlArraySuffix should have comment or be unexported (golint)
    • Line 79: warning: exported var SqlQuote should have comment or be unexported (golint)
    • Line 80: warning: exported var NoVars should have comment or be unexported (golint)
    • Line 81: warning: exported var NoContext should have comment or be unexported (golint)
    • go-dfl/plugins/dfl/main.go
    • Line 25: warning: comment on exported function Format should be of the form "Format ..." (golint)
    • Line 64: warning: comment on exported function EvaluateBool should be of the form "EvaluateBool ..." (golint)
    • Line 90: warning: comment on exported function EvaluateString should be of the form "EvaluateString ..." (golint)

gocyclo88%

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.

    • go-dfl/pkg/dfl/functions.go
    • Line 486: warning: cyclomatic complexity 64 of function histArray() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 38 of function groupArray() is high (> 15) (gocyclo)
    • Line 271: warning: cyclomatic complexity 18 of function filterArray() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!