Preparing report...

Report for github.com/tomyl/xl

A+    Excellent!    Found 10 issues across 16 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!


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!


golint37%

Golint is a linter for Go source code.

    • xl/statement.go
    • Line 11: warning: exported type Statementer should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 27: warning: comment on exported method Statement.Exec should be of the form "Exec ..." (golint)
    • Line 36: warning: exported method Statement.Queryx should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method Statement.QueryRowx should be of the form "QueryRowx ..." (golint)
    • Line 53: warning: comment on exported method Statement.All should be of the form "All ..." (golint)
    • Line 62: warning: comment on exported method Statement.First should be of the form "First ..." (golint)
    • Line 71: warning: comment on exported method Statement.ExecCount should be of the form "ExecCount ..." (golint)
    • Line 88: warning: comment on exported method Statement.ExecOne should be of the form "ExecOne ..." (golint)
    • xl/logger/logger.go
    • Line 23: warning: don't use underscores in Go names; var fg_yellow should be fgYellow (golint)
    • Line 24: warning: don't use underscores in Go names; var fg_cyan should be fgCyan (golint)
    • Line 25: warning: don't use underscores in Go names; var fg_magenta should be fgMagenta (golint)
    • Line 34: warning: exported function Simple should have comment or be unexported (golint)
    • Line 42: warning: exported function Plain should have comment or be unexported (golint)
    • Line 67: warning: exported function Color should have comment or be unexported (golint)
    • Line 102: warning: exported function PrettyParams should have comment or be unexported (golint)
    • xl/delete.go
    • Line 10: warning: exported type DeleteQuery should have comment or be unexported (golint)
    • Line 15: warning: exported function Delete should have comment or be unexported (golint)
    • Line 31: warning: exported method DeleteQuery.Statement should have comment or be unexported (golint)
    • Line 47: warning: exported method DeleteQuery.Exec should have comment or be unexported (golint)
    • Line 55: warning: exported method DeleteQuery.ExecErr should have comment or be unexported (golint)
    • Line 64: warning: exported method DeleteQuery.ExecCount should have comment or be unexported (golint)
    • Line 72: warning: exported method DeleteQuery.ExecOne should have comment or be unexported (golint)
    • xl/insert.go
    • Line 11: warning: exported type InsertQuery should have comment or be unexported (golint)
    • Line 17: warning: exported function Insert should have comment or be unexported (golint)
    • Line 24: warning: exported method InsertQuery.SetRaw should have comment or be unexported (golint)
    • Line 28: warning: exported method InsertQuery.Set should have comment or be unexported (golint)
    • Line 32: warning: exported method InsertQuery.Returning should have comment or be unexported (golint)
    • Line 36: warning: exported method InsertQuery.Statement should have comment or be unexported (golint)
    • Line 95: warning: exported method InsertQuery.Exec should have comment or be unexported (golint)
    • Line 103: warning: exported method InsertQuery.ExecErr should have comment or be unexported (golint)
    • Line 112: warning: exported method InsertQuery.ExecId should have comment or be unexported (golint)
    • Line 128: warning: exported method InsertQuery.First should have comment or be unexported (golint)
    • xl/transaction.go
    • Line 9: warning: comment on exported type Tx should be of the form "Tx ..." (with optional leading article) (golint)
    • Line 17: warning: exported method Tx.Dialect should have comment or be unexported (golint)
    • Line 23: warning: exported method Tx.Beginxl should have comment or be unexported (golint)
    • Line 37: warning: exported method Tx.Rollback should have comment or be unexported (golint)
    • Line 48: warning: exported method Tx.Commit should have comment or be unexported (golint)
    • Line 60: warning: exported method Tx.Exec should have comment or be unexported (golint)
    • Line 67: warning: exported method Tx.Query should have comment or be unexported (golint)
    • Line 74: warning: exported method Tx.Queryx should have comment or be unexported (golint)
    • Line 81: warning: exported method Tx.QueryRowx should have comment or be unexported (golint)
    • xl/update.go
    • Line 11: warning: exported type UpdateQuery should have comment or be unexported (golint)
    • Line 18: warning: exported function Update should have comment or be unexported (golint)
    • Line 57: warning: exported method UpdateQuery.Returning should have comment or be unexported (golint)
    • Line 61: warning: exported method UpdateQuery.Statement should have comment or be unexported (golint)
    • Line 100: warning: exported method UpdateQuery.Exec should have comment or be unexported (golint)
    • Line 108: warning: exported method UpdateQuery.ExecErr should have comment or be unexported (golint)
    • Line 117: warning: exported method UpdateQuery.ExecCount should have comment or be unexported (golint)
    • Line 125: warning: exported method UpdateQuery.ExecOne should have comment or be unexported (golint)
    • Line 133: warning: exported method UpdateQuery.First should have comment or be unexported (golint)
    • xl/xl.go
    • Line 81: warning: comment on exported type Queryer should be of the form "Queryer ..." (with optional leading article) (golint)
    • Line 106: warning: exported type NamedValue should have comment or be unexported (golint)
    • Line 138: warning: exported function NextInt64 should have comment or be unexported (golint)
    • Line 160: warning: exported function Placeholders should have comment or be unexported (golint)
    • xl/context.go
    • Line 8: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported type TXContext should have comment or be unexported (golint)
    • Line 23: warning: exported function WithDB should have comment or be unexported (golint)
    • Line 28: warning: exported method TXContext.Deadline should have comment or be unexported (golint)
    • Line 32: warning: exported method TXContext.Done should have comment or be unexported (golint)
    • Line 36: warning: exported method TXContext.Err should have comment or be unexported (golint)
    • Line 40: warning: exported method TXContext.Value should have comment or be unexported (golint)
    • Line 44: warning: exported method TXContext.WithValue should have comment or be unexported (golint)
    • Line 49: warning: exported method TXContext.DB should have comment or be unexported (golint)
    • Line 53: warning: exported method TXContext.Tx should have comment or be unexported (golint)
    • Line 57: warning: exported method TXContext.Begin should have comment or be unexported (golint)
    • Line 68: warning: exported method TXContext.Rollback should have comment or be unexported (golint)
    • Line 72: warning: exported method TXContext.Commit should have comment or be unexported (golint)
    • xl/select.go
    • Line 11: warning: exported type SelectQuery should have comment or be unexported (golint)
    • Line 23: warning: exported function NewSelect should have comment or be unexported (golint)
    • Line 27: warning: exported function Select should have comment or be unexported (golint)
    • Line 34: warning: exported function SelectAlias should have comment or be unexported (golint)
    • Line 40: warning: exported function From should have comment or be unexported (golint)
    • Line 46: warning: exported function FromAs should have comment or be unexported (golint)
    • Line 52: warning: exported method SelectQuery.From should have comment or be unexported (golint)
    • Line 60: warning: exported method SelectQuery.FromAs should have comment or be unexported (golint)
    • Line 68: warning: exported method SelectQuery.FromSubselect should have comment or be unexported (golint)
    • Line 75: warning: exported method SelectQuery.FromSubselectAs should have comment or be unexported (golint)
    • Line 82: warning: exported method SelectQuery.FromLateralSubselectAs should have comment or be unexported (golint)
    • Line 89: warning: exported method SelectQuery.Distinct should have comment or be unexported (golint)
    • Line 93: warning: exported method SelectQuery.Column should have comment or be unexported (golint)
    • Line 100: warning: exported method SelectQuery.Columns should have comment or be unexported (golint)
    • Line 109: warning: exported method SelectQuery.ColumnsAlias should have comment or be unexported (golint)
    • Line 124: warning: exported method SelectQuery.GroupBy should have comment or be unexported (golint)
    • Line 128: warning: exported method SelectQuery.OrderBy should have comment or be unexported (golint)
    • Line 132: warning: exported method SelectQuery.LimitOffset should have comment or be unexported (golint)
    • Line 137: warning: exported method SelectQuery.Statement should have comment or be unexported (golint)
    • Line 266: warning: exported method SelectQuery.Queryx should have comment or be unexported (golint)
    • Line 274: warning: exported method SelectQuery.First should have comment or be unexported (golint)
    • Line 282: warning: exported method SelectQuery.All should have comment or be unexported (golint)
    • Line 290: warning: exported method SelectQuery.Clone should have comment or be unexported (golint)
    • Line 384: warning: comment on exported method SelectQuery.Total should be of the form "Total ..." (golint)
    • Line 410: warning: exported method SelectQuery.InnerJoin should have comment or be unexported (golint)
    • Line 414: warning: exported method SelectQuery.LeftJoin should have comment or be unexported (golint)
    • Line 418: warning: exported method SelectQuery.Join 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!