Preparing report...

Report for github.com/libi/funsql

A    Great!    Found 9 issues across 12 files

Tweet

gofmt91%

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.

    • funsql/util/underscore.go
    • Line 3: warning: exported function IsUpper should have comment or be unexported (golint)
    • Line 7: warning: exported function IsLower should have comment or be unexported (golint)
    • Line 11: warning: exported function ToUpper should have comment or be unexported (golint)
    • Line 15: warning: exported function ToLower should have comment or be unexported (golint)
    • funsql/builder/builder.go
    • Line 14: warning: comment on exported type FunBuilder should be of the form "FunBuilder ..." (with optional leading article) (golint)
    • Line 30: warning: exported type Join should have comment or be unexported (golint)
    • Line 36: warning: exported type Where should have comment or be unexported (golint)
    • Line 44: warning: exported type Having should have comment or be unexported (golint)
    • Line 45: warning: exported type Order should have comment or be unexported (golint)
    • Line 58: warning: exported method FunBuilder.SetGrammar should have comment or be unexported (golint)
    • Line 65: warning: exported method FunBuilder.GetTable should have comment or be unexported (golint)
    • Line 68: warning: exported method FunBuilder.GetColumns should have comment or be unexported (golint)
    • Line 71: warning: exported method FunBuilder.GetJoins should have comment or be unexported (golint)
    • Line 74: warning: exported method FunBuilder.GetWheres should have comment or be unexported (golint)
    • Line 77: warning: exported method FunBuilder.GetBindings should have comment or be unexported (golint)
    • Line 80: warning: exported method FunBuilder.GetGroups should have comment or be unexported (golint)
    • Line 83: warning: exported method FunBuilder.GetHavings should have comment or be unexported (golint)
    • Line 86: warning: exported method FunBuilder.GetOrders should have comment or be unexported (golint)
    • Line 89: warning: exported method FunBuilder.GetLimit should have comment or be unexported (golint)
    • Line 92: warning: exported method FunBuilder.GetOffset should have comment or be unexported (golint)
    • Line 96: warning: comment on exported method FunBuilder.Select should be of the form "Select ..." (golint)
    • Line 102: warning: comment on exported method FunBuilder.Update should be of the form "Update ..." (golint)
    • Line 107: warning: comment on exported method FunBuilder.Insert should be of the form "Insert ..." (golint)
    • Line 112: warning: comment on exported method FunBuilder.Delete should be of the form "Delete ..." (golint)
    • Line 117: warning: exported method FunBuilder.Join should have comment or be unexported (golint)
    • Line 126: warning: exported method FunBuilder.Where should have comment or be unexported (golint)
    • Line 137: warning: exported method FunBuilder.OrWhere should have comment or be unexported (golint)
    • Line 147: warning: exported method FunBuilder.WhereIn should have comment or be unexported (golint)
    • Line 157: warning: exported method FunBuilder.WhereNotIn should have comment or be unexported (golint)
    • Line 168: warning: exported method FunBuilder.OrWhereIn should have comment or be unexported (golint)
    • Line 179: warning: exported method FunBuilder.OrWhereNotIn should have comment or be unexported (golint)
    • Line 189: warning: exported method FunBuilder.OrWhereNotBetween should have comment or be unexported (golint)
    • Line 199: warning: exported method FunBuilder.OrWhereBetween should have comment or be unexported (golint)
    • Line 209: warning: exported method FunBuilder.WhereNotBetween should have comment or be unexported (golint)
    • Line 219: warning: exported method FunBuilder.WhereBetween should have comment or be unexported (golint)
    • Line 230: warning: exported method FunBuilder.WhereRaw should have comment or be unexported (golint)
    • Line 240: warning: exported method FunBuilder.OrWhereRaw should have comment or be unexported (golint)
    • Line 251: warning: exported method FunBuilder.Group should have comment or be unexported (golint)
    • Line 258: warning: exported method FunBuilder.Having should have comment or be unexported (golint)
    • Line 269: warning: exported method FunBuilder.OrHaving should have comment or be unexported (golint)
    • Line 280: warning: exported method FunBuilder.HavingNotBetween should have comment or be unexported (golint)
    • Line 290: warning: exported method FunBuilder.HavingBetween should have comment or be unexported (golint)
    • Line 300: warning: exported method FunBuilder.OrHavingNotBetween should have comment or be unexported (golint)
    • Line 310: warning: exported method FunBuilder.OrHavingBetween should have comment or be unexported (golint)
    • Line 321: warning: exported method FunBuilder.HavingRaw should have comment or be unexported (golint)
    • Line 331: warning: exported method FunBuilder.OrHavingRaw should have comment or be unexported (golint)
    • Line 341: warning: exported method FunBuilder.OrderBy should have comment or be unexported (golint)
    • Line 351: warning: exported method FunBuilder.OrderByDesc should have comment or be unexported (golint)
    • Line 361: warning: exported method FunBuilder.Limit should have comment or be unexported (golint)
    • Line 365: warning: exported method FunBuilder.Offset should have comment or be unexported (golint)
    • funsql/builder/grammar.go
    • Line 5: warning: exported type Grammar should have comment or be unexported (golint)
    • Line 12: warning: exported function RegisterGrammar should have comment or be unexported (golint)
    • funsql/funsql.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported function Table should have comment or be unexported (golint)
    • funsql/scaner/scan.go
    • Line 11: warning: exported function Scan should have comment or be unexported (golint)
    • Line 99: warning: exported function ScanRow should have comment or be unexported (golint)
    • funsql/builder/errors.go
    • Line 6: warning: error var NoTableNameErr should have name of the form ErrFoo (golint)
    • Line 6: warning: exported var NoTableNameErr should have comment or be unexported (golint)
    • Line 7: warning: error var WhereBetweenParamErr should have name of the form ErrFoo (golint)
    • Line 8: warning: error var WhereParamErr should have name of the form ErrFoo (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!