Preparing report...

Report for github.com/go-liewhite/sqlx/v2

(v2.21.1)

A+    Excellent!    Found 59 issues across 95 files

Tweet

gofmt98%

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!


gocyclo92%

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.


golint40%

Golint is a linter for Go source code.

    • builder/addition_order_by.go
    • Line 7: warning: exported type OrderByAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method OrderByAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function OrderBy should have comment or be unexported (golint)
    • Line 51: warning: exported function AscOrder should have comment or be unexported (golint)
    • Line 55: warning: exported function DescOrder should have comment or be unexported (golint)
    • Line 61: warning: exported type Order should have comment or be unexported (golint)
    • Line 66: warning: exported method Order.IsNil should have comment or be unexported (golint)
    • Line 70: warning: exported method Order.Ex should have comment or be unexported (golint)
    • builder/interfaces.go
    • Line 3: warning: comment on exported type ValuerExpr should be of the form "ValuerExpr ..." (with optional leading article) (golint)
    • Line 12: warning: exported type DataTypeDescriber should have comment or be unexported (golint)
    • Line 16: warning: exported type Model should have comment or be unexported (golint)
    • Line 20: warning: exported type WithTableDescription should have comment or be unexported (golint)
    • Line 24: warning: exported type Indexes should have comment or be unexported (golint)
    • Line 26: warning: exported type WithPrimaryKey should have comment or be unexported (golint)
    • Line 30: warning: exported type WithUniqueIndexes should have comment or be unexported (golint)
    • Line 34: warning: exported type WithIndexes should have comment or be unexported (golint)
    • Line 38: warning: exported type WithComments should have comment or be unexported (golint)
    • Line 42: warning: exported type WithRelations should have comment or be unexported (golint)
    • Line 46: warning: exported type WithColDescriptions should have comment or be unexported (golint)
    • Line 50: warning: exported type Dialect should have comment or be unexported (golint)
    • generator/sql_func_generator.go
    • Line 12: warning: exported function NewSqlFuncGenerator should have comment or be unexported (golint)
    • Line 18: warning: exported type SqlFuncGenerator should have comment or be unexported (golint)
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 40: warning: exported method Config.SetDefaults should have comment or be unexported (golint)
    • Line 58: warning: exported method SqlFuncGenerator.Scan should have comment or be unexported (golint)
    • Line 70: warning: exported method SqlFuncGenerator.Output should have comment or be unexported (golint)
    • builder/functions.go
    • Line 7: warning: exported function Count should have comment or be unexported (golint)
    • Line 14: warning: exported function Avg should have comment or be unexported (golint)
    • Line 18: warning: exported function Distinct should have comment or be unexported (golint)
    • Line 22: warning: exported function Min should have comment or be unexported (golint)
    • Line 26: warning: exported function Max should have comment or be unexported (golint)
    • Line 30: warning: exported function First should have comment or be unexported (golint)
    • Line 34: warning: exported function Last should have comment or be unexported (golint)
    • Line 38: warning: exported function Sum should have comment or be unexported (golint)
    • Line 42: warning: exported function Func should have comment or be unexported (golint)
    • Line 52: warning: exported type Function should have comment or be unexported (golint)
    • Line 57: warning: exported method Function.IsNil should have comment or be unexported (golint)
    • Line 61: warning: exported method Function.Ex should have comment or be unexported (golint)
    • postgresqlconnector/schemas.go
    • Line 106: warning: exported var SchemaDatabase should have comment or be unexported (golint)
    • Line 158: warning: exported type ColumnSchema should have comment or be unexported (golint)
    • Line 170: warning: exported method ColumnSchema.TableName should have comment or be unexported (golint)
    • Line 174: warning: exported type IndexSchema should have comment or be unexported (golint)
    • Line 181: warning: exported method IndexSchema.TableName should have comment or be unexported (golint)
    • builder/stmt_delete.go
    • Line 7: warning: exported function Delete should have comment or be unexported (golint)
    • Line 11: warning: exported type StmtDelete should have comment or be unexported (golint)
    • Line 16: warning: exported method StmtDelete.IsNil should have comment or be unexported (golint)
    • Line 20: warning: exported method StmtDelete.From should have comment or be unexported (golint)
    • Line 26: warning: exported method StmtDelete.Ex should have comment or be unexported (golint)
    • nullable/null_ignore_scanner.go
    • Line 5: 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 NewNullIgnoreScanner should have comment or be unexported (golint)
    • Line 14: warning: exported type NullIgnoreScanner should have comment or be unexported (golint)
    • Line 18: warning: exported method NullIgnoreScanner.Scan should have comment or be unexported (golint)
    • datatypes/timestamp.go
    • Line 13: warning: exported var UTC should have comment or be unexported (golint)
    • Line 19: warning: exported type MySQLTimestamp should have comment or be unexported (golint)
    • Line 21: warning: comment on exported type Timestamp should be of the form "Timestamp ..." (with optional leading article) (golint)
    • Line 24: warning: exported method Timestamp.DataType should have comment or be unexported (golint)
    • Line 28: warning: exported function ParseTimestampFromString should have comment or be unexported (golint)
    • Line 35: warning: exported function ParseTimestampFromStringWithLayout should have comment or be unexported (golint)
    • Line 48: warning: exported method Timestamp.Scan should have comment or be unexported (golint)
    • Line 70: warning: exported method Timestamp.Value should have comment or be unexported (golint)
    • Line 85: warning: exported method Timestamp.Format should have comment or be unexported (golint)
    • Line 94: warning: exported method Timestamp.MarshalText should have comment or be unexported (golint)
    • Line 98: warning: exported method Timestamp.UnmarshalText should have comment or be unexported (golint)
    • Line 107: warning: exported method Timestamp.Unix should have comment or be unexported (golint)
    • Line 111: warning: exported method Timestamp.IsZero should have comment or be unexported (golint)
    • Line 116: warning: exported method Timestamp.In should have comment or be unexported (golint)
    • helpers.go
    • Line 7: warning: exported function InsertToDB should have comment or be unexported (golint)
    • Line 13: warning: exported function AsAssignments should have comment or be unexported (golint)
    • Line 18: warning: exported function FieldValuesFromModel should have comment or be unexported (golint)
    • postgresqlconnector/postgresql_connector.go
    • Line 24: warning: exported type PostgreSQLConnector should have comment or be unexported (golint)
    • Line 31: warning: exported method PostgreSQLConnector.Connect should have comment or be unexported (golint)
    • Line 60: warning: exported method PostgreSQLConnector.Driver should have comment or be unexported (golint)
    • Line 71: warning: exported method PostgreSQLConnector.WithDBName should have comment or be unexported (golint)
    • Line 76: warning: exported method PostgreSQLConnector.Migrate should have comment or be unexported (golint)
    • Line 144: warning: exported method PostgreSQLConnector.DriverName should have comment or be unexported (golint)
    • Line 148: warning: exported method PostgreSQLConnector.PrimaryKeyName should have comment or be unexported (golint)
    • Line 152: warning: exported method PostgreSQLConnector.IsErrorUnknownDatabase should have comment or be unexported (golint)
    • Line 159: warning: exported method PostgreSQLConnector.IsErrorConflict should have comment or be unexported (golint)
    • Line 166: warning: exported method PostgreSQLConnector.CreateDatabase should have comment or be unexported (golint)
    • Line 173: warning: exported method PostgreSQLConnector.CreateSchema should have comment or be unexported (golint)
    • Line 180: warning: exported method PostgreSQLConnector.DropDatabase should have comment or be unexported (golint)
    • Line 187: warning: exported method PostgreSQLConnector.AddIndex should have comment or be unexported (golint)
    • Line 236: warning: exported method PostgreSQLConnector.DropIndex should have comment or be unexported (golint)
    • Line 256: warning: exported method PostgreSQLConnector.CreateTableIsNotExists should have comment or be unexported (golint)
    • Line 308: warning: exported method PostgreSQLConnector.DropTable should have comment or be unexported (golint)
    • Line 315: warning: exported method PostgreSQLConnector.TruncateTable should have comment or be unexported (golint)
    • Line 322: warning: exported method PostgreSQLConnector.AddColumn should have comment or be unexported (golint)
    • Line 333: warning: exported method PostgreSQLConnector.RenameColumn should have comment or be unexported (golint)
    • Line 344: warning: exported method PostgreSQLConnector.ModifyColumn should have comment or be unexported (golint)
    • Line 420: warning: exported method PostgreSQLConnector.DropColumn should have comment or be unexported (golint)
    • Line 429: warning: exported method PostgreSQLConnector.DataType should have comment or be unexported (golint)
    • builder/addition_where.go
    • Line 7: warning: exported type WhereAddition should have comment or be unexported (golint)
    • Line 9: warning: exported method WhereAddition.AdditionType should have comment or be unexported (golint)
    • Line 13: warning: exported function Where should have comment or be unexported (golint)
    • builder/stmt_insert.go
    • Line 7: warning: exported function Insert should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type StmtInsert should be of the form "StmtInsert ..." (with optional leading article) (golint)
    • Line 21: warning: exported method StmtInsert.Into should have comment or be unexported (golint)
    • Line 27: warning: exported method StmtInsert.Values should have comment or be unexported (golint)
    • Line 32: warning: exported method StmtInsert.IsNil should have comment or be unexported (golint)
    • Line 36: warning: exported method StmtInsert.Ex should have comment or be unexported (golint)
    • Line 67: warning: exported function OnDuplicateKeyUpdate should have comment or be unexported (golint)
    • Line 85: warning: exported function Returning should have comment or be unexported (golint)
    • enummeta/sql_enum_meta.go
    • Line 7: warning: exported type SqlMetaEnum should have comment or be unexported (golint)
    • Line 16: warning: exported method SqlMetaEnum.TableName should have comment or be unexported (golint)
    • Line 20: warning: exported method SqlMetaEnum.UniqueIndexes should have comment or be unexported (golint)
    • super_scan.go
    • Line 13: warning: exported type ScanIterator should have comment or be unexported (golint)
    • Line 20: warning: exported function Scan should have comment or be unexported (golint)
    • task.go
    • Line 11: warning: exported type Task should have comment or be unexported (golint)
    • Line 13: warning: exported method Task.Run should have comment or be unexported (golint)
    • Line 22: warning: exported function NewTasks should have comment or be unexported (golint)
    • Line 28: warning: exported type Tasks should have comment or be unexported (golint)
    • Line 33: warning: exported method Tasks.With should have comment or be unexported (golint)
    • Line 38: warning: exported method Tasks.Do should have comment or be unexported (golint)
    • generator/model_crud.go
    • Line 67: warning: exported method Model.WriteCreate should have comment or be unexported (golint)
    • Line 180: warning: exported method Model.WriteDelete should have comment or be unexported (golint)
    • Line 205: warning: exported method Model.WriteByKey should have comment or be unexported (golint)
    • Line 409: warning: exported method Model.WriteCRUD should have comment or be unexported (golint)
    • Line 436: warning: exported method Model.FieldType should have comment or be unexported (golint)
    • builder/stmt_with.go
    • Line 8: warning: exported type BuildSubQuery should have comment or be unexported (golint)
    • Line 10: warning: exported function WithRecursive should have comment or be unexported (golint)
    • Line 14: warning: exported function With should have comment or be unexported (golint)
    • Line 18: warning: exported type WithStmt should have comment or be unexported (golint)
    • Line 25: warning: exported method WithStmt.IsNil should have comment or be unexported (golint)
    • Line 29: warning: exported method WithStmt.With should have comment or be unexported (golint)
    • Line 35: warning: exported method WithStmt.Exec should have comment or be unexported (golint)
    • Line 40: warning: exported method WithStmt.Ex should have comment or be unexported (golint)
    • postgresqlconnector/opts.go
    • Line 9: warning: exported function FromConfigString should have comment or be unexported (golint)
    • Line 20: warning: exported type PostgreSQLOpts should have comment or be unexported (golint)
    • builder/addition_combination.go
    • Line 7: warning: exported type CombinationAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method CombinationAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function Union should have comment or be unexported (golint)
    • Line 20: warning: exported function Intersect should have comment or be unexported (golint)
    • Line 26: warning: exported function Expect should have comment or be unexported (golint)
    • builder/assignment.go
    • Line 8: warning: exported type SqlAssignment should have comment or be unexported (golint)
    • Line 13: warning: exported type SqlAssignmentMarker should have comment or be unexported (golint)
    • Line 17: warning: exported function WriteAssignments should have comment or be unexported (golint)
    • Line 36: warning: exported function ColumnsAndValues should have comment or be unexported (golint)
    • Line 44: warning: exported type Assignments should have comment or be unexported (golint)
    • Line 46: warning: exported type Assignment should have comment or be unexported (golint)
    • Line 55: warning: exported method Assignment.IsNil should have comment or be unexported (golint)
    • Line 59: warning: exported method Assignment.Ex should have comment or be unexported (golint)
    • builder/addition_limit.go
    • Line 8: warning: exported type LimitAddition should have comment or be unexported (golint)
    • Line 11: warning: exported method LimitAddition.AdditionType should have comment or be unexported (golint)
    • Line 15: warning: exported function Limit should have comment or be unexported (golint)
    • datatypes/datetime.go
    • Line 12: warning: exported var DatetimeZero should have comment or be unexported (golint)
    • Line 15: warning: exported type MySQLDatetime should have comment or be unexported (golint)
    • Line 17: warning: comment on exported type Datetime should be of the form "Datetime ..." (with optional leading article) (golint)
    • Line 20: warning: exported method Datetime.DataType should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseDatetimeFromString should have comment or be unexported (golint)
    • Line 31: warning: exported function ParseDatetimeFromStringWithFormatterInCST should have comment or be unexported (golint)
    • Line 43: warning: exported method Datetime.Scan should have comment or be unexported (golint)
    • Line 55: warning: exported method Datetime.Value should have comment or be unexported (golint)
    • Line 66: warning: exported method Datetime.Format should have comment or be unexported (golint)
    • Line 75: warning: exported method Datetime.MarshalText should have comment or be unexported (golint)
    • Line 79: warning: exported method Datetime.UnmarshalText should have comment or be unexported (golint)
    • Line 88: warning: exported method Datetime.Unix should have comment or be unexported (golint)
    • Line 92: warning: exported method Datetime.IsZero should have comment or be unexported (golint)
    • Line 97: warning: exported method Datetime.In should have comment or be unexported (golint)
    • builder/addition.go
    • Line 7: warning: exported type Additions should have comment or be unexported (golint)
    • Line 9: warning: exported type Addition should have comment or be unexported (golint)
    • Line 14: warning: exported type AdditionType should have comment or be unexported (golint)
    • Line 17: warning: exported const AdditionJoin should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function WriteAdditions should have comment or be unexported (golint)
    • Line 61: warning: exported function AsAddition should have comment or be unexported (golint)
    • Line 67: warning: exported type OtherAddition should have comment or be unexported (golint)
    • Line 71: warning: exported method OtherAddition.AdditionType should have comment or be unexported (golint)
    • Line 75: warning: exported method OtherAddition.IsNil should have comment or be unexported (golint)
    • builder/condition.go
    • Line 7: warning: exported function EmptyCond should have comment or be unexported (golint)
    • Line 11: warning: exported type SqlCondition should have comment or be unexported (golint)
    • Line 20: warning: exported type SqlConditionMarker should have comment or be unexported (golint)
    • Line 24: warning: exported function AsCond should have comment or be unexported (golint)
    • Line 28: warning: exported type Condition should have comment or be unexported (golint)
    • Line 33: warning: exported method Condition.Ex should have comment or be unexported (golint)
    • Line 40: warning: exported method Condition.IsNil should have comment or be unexported (golint)
    • Line 44: warning: exported method Condition.And should have comment or be unexported (golint)
    • Line 48: warning: exported method Condition.Or should have comment or be unexported (golint)
    • Line 52: warning: exported method Condition.Xor should have comment or be unexported (golint)
    • Line 56: warning: exported function And should have comment or be unexported (golint)
    • Line 60: warning: exported function Or should have comment or be unexported (golint)
    • Line 64: warning: exported function Xor should have comment or be unexported (golint)
    • Line 96: warning: exported type ComposedCondition should have comment or be unexported (golint)
    • Line 102: warning: exported method ComposedCondition.And should have comment or be unexported (golint)
    • Line 106: warning: exported method ComposedCondition.Or should have comment or be unexported (golint)
    • Line 110: warning: exported method ComposedCondition.Xor should have comment or be unexported (golint)
    • Line 114: warning: exported method ComposedCondition.IsNil should have comment or be unexported (golint)
    • Line 118: warning: exported method ComposedCondition.Ex should have comment or be unexported (golint)
    • builder/def_key.go
    • Line 8: warning: exported function PrimaryKey should have comment or be unexported (golint)
    • Line 12: warning: exported function Index should have comment or be unexported (golint)
    • Line 19: warning: exported function UniqueIndex should have comment or be unexported (golint)
    • Line 29: warning: exported type Key should have comment or be unexported (golint)
    • Line 38: warning: exported method Key.On should have comment or be unexported (golint)
    • Line 43: warning: exported method Key.Using should have comment or be unexported (golint)
    • Line 48: warning: exported method Key.T should have comment or be unexported (golint)
    • Line 52: warning: exported method Key.IsPrimary should have comment or be unexported (golint)
    • Line 56: warning: exported type Keys should have comment or be unexported (golint)
    • Line 61: warning: exported method Keys.Clone should have comment or be unexported (golint)
    • Line 69: warning: exported method Keys.Len should have comment or be unexported (golint)
    • Line 76: warning: exported method Keys.IsEmpty should have comment or be unexported (golint)
    • Line 80: warning: exported method Keys.Key should have comment or be unexported (golint)
    • Line 89: warning: exported method Keys.Add should have comment or be unexported (golint)
    • Line 103: warning: exported method Keys.Remove should have comment or be unexported (golint)
    • Line 112: warning: exported method Keys.Range should have comment or be unexported (golint)
    • mysqlconnector/schemas.go
    • Line 100: warning: exported var SchemaDatabase should have comment or be unexported (golint)
    • Line 168: warning: exported type ColumnSchema should have comment or be unexported (golint)
    • Line 182: warning: exported method ColumnSchema.TableName should have comment or be unexported (golint)
    • Line 186: warning: exported type IndexSchema should have comment or be unexported (golint)
    • Line 196: warning: exported method IndexSchema.TableName should have comment or be unexported (golint)
    • builder/addition_join.go
    • Line 8: warning: exported type JoinAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method JoinAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function Join should have comment or be unexported (golint)
    • Line 21: warning: exported function InnerJoin should have comment or be unexported (golint)
    • Line 25: warning: exported function LeftJoin should have comment or be unexported (golint)
    • Line 29: warning: exported function RightJoin should have comment or be unexported (golint)
    • Line 33: warning: exported function FullJoin should have comment or be unexported (golint)
    • Line 37: warning: exported function CrossJoin should have comment or be unexported (golint)
    • generator/model.go
    • Line 12: warning: exported function NewModel should have comment or be unexported (golint)
    • Line 76: warning: exported type Model should have comment or be unexported (golint)
    • Line 97: warning: exported method Model.WriteTo should have comment or be unexported (golint)
    • Line 116: warning: exported method Model.Type should have comment or be unexported (golint)
    • Line 120: warning: exported method Model.IteratorType should have comment or be unexported (golint)
    • Line 124: warning: exported method Model.PtrType should have comment or be unexported (golint)
    • Line 128: warning: exported method Model.VarTable should have comment or be unexported (golint)
    • generator/utils.go
    • Line 19: warning: exported type Keys should have comment or be unexported (golint)
    • Line 25: warning: exported method Keys.PatchUniqueIndexesWithSoftDelete should have comment or be unexported (golint)
    • Line 33: warning: exported method Keys.Bind should have comment or be unexported (golint)
    • builder/buidertestingutils/be_expr.go
    • Line 13: warning: exported function BeExpr should have comment or be unexported (golint)
    • Line 20: warning: exported type SqlExprMatcher should have comment or be unexported (golint)
    • Line 25: warning: exported method SqlExprMatcher.Match should have comment or be unexported (golint)
    • Line 50: warning: exported method SqlExprMatcher.FailureMessage should have comment or be unexported (golint)
    • Line 56: warning: exported method SqlExprMatcher.NegatedFailureMessage should have comment or be unexported (golint)
    • database.go
    • Line 12: warning: exported function NewFeatureDatabase should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDatabase should have comment or be unexported (golint)
    • Line 26: warning: exported type Database should have comment or be unexported (golint)
    • Line 32: warning: exported method Database.WithSchema should have comment or be unexported (golint)
    • Line 46: warning: exported type DBNameBinder should have comment or be unexported (golint)
    • Line 50: warning: exported method Database.OpenDB should have comment or be unexported (golint)
    • Line 65: warning: exported method Database.AddTable should have comment or be unexported (golint)
    • Line 69: warning: exported method Database.Register should have comment or be unexported (golint)
    • Line 76: warning: exported method Database.Table should have comment or be unexported (golint)
    • Line 80: warning: exported method Database.T should have comment or be unexported (golint)
    • mysqlconnector/mysql_connector.go
    • Line 24: warning: exported type MysqlConnector should have comment or be unexported (golint)
    • Line 39: warning: exported method MysqlConnector.WithDBName should have comment or be unexported (golint)
    • Line 44: warning: exported method MysqlConnector.Migrate should have comment or be unexported (golint)
    • Line 106: warning: exported method MysqlConnector.Connect should have comment or be unexported (golint)
    • Line 129: warning: exported method MysqlConnector.Driver should have comment or be unexported (golint)
    • Line 133: warning: exported method MysqlConnector.DriverName should have comment or be unexported (golint)
    • Line 137: warning: exported method MysqlConnector.PrimaryKeyName should have comment or be unexported (golint)
    • Line 141: warning: exported method MysqlConnector.IsErrorUnknownDatabase should have comment or be unexported (golint)
    • Line 148: warning: exported method MysqlConnector.IsErrorConflict should have comment or be unexported (golint)
    • Line 155: warning: exported method MysqlConnector.CreateDatabase should have comment or be unexported (golint)
    • Line 162: warning: exported method MysqlConnector.CreateSchema should have comment or be unexported (golint)
    • Line 169: warning: exported method MysqlConnector.DropDatabase should have comment or be unexported (golint)
    • Line 176: warning: exported method MysqlConnector.AddIndex should have comment or be unexported (golint)
    • Line 214: warning: exported method MysqlConnector.DropIndex should have comment or be unexported (golint)
    • Line 234: warning: exported method MysqlConnector.CreateTableIsNotExists should have comment or be unexported (golint)
    • Line 302: warning: exported method MysqlConnector.DropTable should have comment or be unexported (golint)
    • Line 309: warning: exported method MysqlConnector.TruncateTable should have comment or be unexported (golint)
    • Line 316: warning: exported method MysqlConnector.AddColumn should have comment or be unexported (golint)
    • Line 327: warning: exported method MysqlConnector.RenameColumn should have comment or be unexported (golint)
    • Line 340: warning: exported method MysqlConnector.ModifyColumn should have comment or be unexported (golint)
    • Line 356: warning: exported method MysqlConnector.DropColumn should have comment or be unexported (golint)
    • Line 365: warning: exported method MysqlConnector.DataType should have comment or be unexported (golint)
    • builder/addition_comment.go
    • Line 7: warning: exported type CommentAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method CommentAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function Comment should have comment or be unexported (golint)
    • builder/def_columns.go
    • Line 10: warning: exported function Cols should have comment or be unexported (golint)
    • Line 18: warning: exported type Columns should have comment or be unexported (golint)
    • Line 25: warning: exported method Columns.IsNil should have comment or be unexported (golint)
    • Line 29: warning: exported method Columns.Ex should have comment or be unexported (golint)
    • Line 42: warning: exported method Columns.AutoIncrement should have comment or be unexported (golint)
    • Line 46: warning: exported method Columns.Clone should have comment or be unexported (golint)
    • Line 54: warning: exported method Columns.Len should have comment or be unexported (golint)
    • Line 61: warning: exported method Columns.MustFields should have comment or be unexported (golint)
    • Line 69: warning: exported method Columns.Fields should have comment or be unexported (golint)
    • Line 84: warning: exported method Columns.FieldNames should have comment or be unexported (golint)
    • Line 92: warning: exported method Columns.F should have comment or be unexported (golint)
    • Line 101: warning: exported method Columns.List should have comment or be unexported (golint)
    • Line 110: warning: exported method Columns.Cols should have comment or be unexported (golint)
    • Line 125: warning: exported method Columns.Col should have comment or be unexported (golint)
    • Line 135: warning: exported method Columns.Add should have comment or be unexported (golint)
    • Line 157: warning: exported method Columns.Remove should have comment or be unexported (golint)
    • Line 167: warning: exported method Columns.Range should have comment or be unexported (golint)
    • builder/def_table.go
    • Line 13: warning: exported type TableDefinition should have comment or be unexported (golint)
    • Line 17: warning: exported function T should have comment or be unexported (golint)
    • Line 37: warning: exported type Table should have comment or be unexported (golint)
    • Line 49: warning: exported method Table.TableName should have comment or be unexported (golint)
    • Line 53: warning: exported method Table.IsNil should have comment or be unexported (golint)
    • Line 57: warning: exported method Table.WithSchema should have comment or be unexported (golint)
    • Line 75: warning: exported method Table.Ex should have comment or be unexported (golint)
    • Line 82: warning: exported method Table.AddCol should have comment or be unexported (golint)
    • Line 89: warning: exported method Table.AddKey should have comment or be unexported (golint)
    • Line 96: warning: exported method Table.Expr should have comment or be unexported (golint)
    • Line 163: warning: exported method Table.ColumnsAndValuesByFieldValues should have comment or be unexported (golint)
    • Line 182: warning: exported method Table.AssignmentsByFieldValues should have comment or be unexported (golint)
    • Line 192: warning: exported method Table.Diff should have comment or be unexported (golint)
    • Line 263: warning: exported type Tables should have comment or be unexported (golint)
    • Line 269: warning: exported method Tables.TableNames should have comment or be unexported (golint)
    • Line 276: warning: exported method Tables.Add should have comment or be unexported (golint)
    • Line 298: warning: exported method Tables.Table should have comment or be unexported (golint)
    • Line 307: warning: exported method Tables.Model should have comment or be unexported (golint)
    • Line 316: warning: exported method Tables.Remove should have comment or be unexported (golint)
    • Line 325: warning: exported method Tables.Range should have comment or be unexported (golint)
    • builder/toggles.go
    • Line 8: warning: exported var ToggleMultiTable should have comment or be unexported (golint)
    • Line 13: warning: exported type Toggles should have comment or be unexported (golint)
    • Line 15: warning: exported method Toggles.Merge should have comment or be unexported (golint)
    • Line 35: warning: exported method Toggles.Is should have comment or be unexported (golint)
    • Line 44: warning: exported function ContextWithToggles should have comment or be unexported (golint)
    • Line 48: warning: exported function TogglesFromContext should have comment or be unexported (golint)
    • migration/migration.go
    • Line 13: warning: exported function MigrationOutputFromContext should have comment or be unexported (golint)
    • Line 22: warning: exported function MustMigrate should have comment or be unexported (golint)
    • Line 28: warning: exported function Migrate should have comment or be unexported (golint)
    • er/er.go
    • Line 12: warning: exported function DatabaseERFromDB should have comment or be unexported (golint)
    • Line 99: warning: exported type ERDatabase should have comment or be unexported (golint)
    • Line 104: warning: exported type ERTable should have comment or be unexported (golint)
    • Line 112: warning: exported type ERCol should have comment or be unexported (golint)
    • Line 121: warning: exported type EREnum should have comment or be unexported (golint)
    • Line 127: warning: exported type ERKey should have comment or be unexported (golint)
    • generator/model_list.go
    • Line 9: warning: exported method Model.WriteCount should have comment or be unexported (golint)
    • Line 67: warning: exported method Model.WriteList should have comment or be unexported (golint)
    • Line 123: warning: exported method Model.WriteBatchList should have comment or be unexported (golint)
    • builder/addition_group_by.go
    • Line 7: warning: exported type GroupByAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method GroupByAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function GroupBy should have comment or be unexported (golint)
    • db.go
    • Line 13: warning: exported var ErrNotTx should have comment or be unexported (golint)
    • Line 14: warning: exported var ErrNotDB should have comment or be unexported (golint)
    • Line 16: warning: exported type SqlExecutor should have comment or be unexported (golint)
    • Line 21: warning: exported type SqlxExecutor should have comment or be unexported (golint)
    • Line 29: warning: exported type Migrator should have comment or be unexported (golint)
    • Line 33: warning: exported type DBExecutor should have comment or be unexported (golint)
    • Line 49: warning: exported type MaybeTxExecutor should have comment or be unexported (golint)
    • Line 57: warning: exported type DB should have comment or be unexported (golint)
    • Line 64: warning: exported method DB.WithContext should have comment or be unexported (golint)
    • Line 71: warning: exported method DB.Context should have comment or be unexported (golint)
    • Line 78: warning: exported method DB.WithSchema should have comment or be unexported (golint)
    • Line 83: warning: exported method DB.Dialect should have comment or be unexported (golint)
    • Line 87: warning: exported method DB.Migrate should have comment or be unexported (golint)
    • Line 94: warning: exported method DB.D should have comment or be unexported (golint)
    • Line 98: warning: exported method DB.ExecExpr should have comment or be unexported (golint)
    • Line 116: warning: exported method DB.QueryExpr should have comment or be unexported (golint)
    • Line 127: warning: exported method DB.QueryExprAndScan should have comment or be unexported (golint)
    • Line 135: warning: exported method DB.IsTx should have comment or be unexported (golint)
    • Line 140: warning: exported method DB.Begin should have comment or be unexported (golint)
    • Line 144: warning: exported method DB.BeginTx should have comment or be unexported (golint)
    • Line 160: warning: exported method DB.Commit should have comment or be unexported (golint)
    • Line 170: warning: exported method DB.Rollback should have comment or be unexported (golint)
    • Line 180: warning: exported method DB.SetMaxOpenConns should have comment or be unexported (golint)
    • Line 184: warning: exported method DB.SetMaxIdleConns should have comment or be unexported (golint)
    • Line 188: warning: exported method DB.SetConnMaxLifetime should have comment or be unexported (golint)
    • mysqlconnector/driver.go
    • Line 29: warning: exported type MySqlLoggingDriver should have comment or be unexported (golint)
    • Line 33: warning: exported method MySqlLoggingDriver.Open should have comment or be unexported (golint)
    • Line 47: warning: exported method MySqlLoggingDriver.Driver should have comment or be unexported (golint)
    • Line 132: warning: exported type SqlPrinter should have comment or be unexported (golint)
    • Line 154: warning: exported var DuplicateEntryErrNumber should have comment or be unexported (golint)
    • generator/model_interfaces.go
    • Line 10: warning: exported method Model.IndexFieldNames should have comment or be unexported (golint)
    • Line 32: warning: exported method Model.WriteTableName should have comment or be unexported (golint)
    • Line 81: warning: exported method Model.WriteTableInterfaces should have comment or be unexported (golint)
    • Line 200: warning: exported method Model.WriteTableKeyInterfaces should have comment or be unexported (golint)
    • Line 271: warning: exported method Model.GetRelations should have comment or be unexported (golint)
    • Line 281: warning: exported method Model.GetComments should have comment or be unexported (golint)
    • Line 291: warning: exported method Model.GetColDescriptions should have comment or be unexported (golint)
    • builder/expr.go
    • Line 13: warning: exported type SqlExpr should have comment or be unexported (golint)
    • Line 18: warning: exported function IsNilExpr should have comment or be unexported (golint)
    • Line 22: warning: exported function RangeNotNilExpr should have comment or be unexported (golint)
    • Line 35: warning: exported function Expr should have comment or be unexported (golint)
    • Line 39: warning: exported function ResolveExpr should have comment or be unexported (golint)
    • Line 43: warning: exported function ResolveExprContext should have comment or be unexported (golint)
    • Line 56: warning: exported function Multi should have comment or be unexported (golint)
    • Line 60: warning: exported function MultiWith should have comment or be unexported (golint)
    • Line 73: warning: exported function ExprBy should have comment or be unexported (golint)
    • Line 89: warning: exported type Ex should have comment or be unexported (golint)
    • Line 96: warning: exported method Ex.IsNil should have comment or be unexported (golint)
    • Line 100: warning: exported method Ex.Query should have comment or be unexported (golint)
    • Line 107: warning: exported method Ex.Args should have comment or be unexported (golint)
    • Line 111: warning: exported method Ex.Err should have comment or be unexported (golint)
    • Line 115: warning: exported method Ex.AppendArgs should have comment or be unexported (golint)
    • Line 119: warning: exported method Ex.ArgsLen should have comment or be unexported (golint)
    • Line 123: warning: exported method Ex.Ex should have comment or be unexported (golint)
    • Line 195: warning: exported method Ex.WriteGroup should have comment or be unexported (golint)
    • Line 201: warning: exported method Ex.WhiteComments should have comment or be unexported (golint)
    • Line 207: warning: exported method Ex.WriteExpr should have comment or be unexported (golint)
    • Line 216: warning: exported method Ex.WriteEnd should have comment or be unexported (golint)
    • Line 220: warning: exported method Ex.WriteHolder should have comment or be unexported (golint)
    • datatypes/bool.go
    • Line 7: warning: comment on exported type Bool should be of the form "Bool ..." (with optional leading article) (golint)
    • Line 11: warning: exported const BOOL_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported method Bool.MarshalText should have comment or be unexported (golint)
    • Line 32: warning: exported method Bool.UnmarshalText should have comment or be unexported (golint)
    • Line 42: warning: exported method Bool.MarshalJSON should have comment or be unexported (golint)
    • Line 46: warning: exported method Bool.UnmarshalJSON should have comment or be unexported (golint)
    • datatypes/json_scanner.go
    • Line 9: warning: exported function JSONScan should have comment or be unexported (golint)
    • Line 30: warning: exported function JSONValue should have comment or be unexported (golint)
    • builder/utils.go
    • Line 13: warning: exported type FieldValues should have comment or be unexported (golint)
    • Line 15: warning: exported type StructField should have comment or be unexported (golint)
    • Line 25: warning: exported function WithTableName should have comment or be unexported (golint)
    • Line 31: warning: exported function TableNameFromContext should have comment or be unexported (golint)
    • Line 40: warning: exported function WithTableAlias should have comment or be unexported (golint)
    • Line 46: warning: exported function TableAliasFromContext should have comment or be unexported (golint)
    • Line 53: warning: exported function ColumnsByStruct should have comment or be unexported (golint)
    • Line 81: warning: exported function ForEachStructFieldValue should have comment or be unexported (golint)
    • Line 138: warning: exported function GetColumnName should have comment or be unexported (golint)
    • Line 149: warning: exported function ToMap should have comment or be unexported (golint)
    • Line 157: warning: exported function FieldValuesFromStructBy should have comment or be unexported (golint)
    • Line 169: warning: exported function FieldValuesFromStructByNonZero should have comment or be unexported (golint)
    • Line 181: warning: exported function TableFromModel should have comment or be unexported (golint)
    • Line 199: warning: exported function ScanDefToTable should have comment or be unexported (golint)
    • Line 276: warning: exported function ResolveIndexNameAndMethod should have comment or be unexported (golint)
    • errors.go
    • Line 7: warning: exported function NewSqlError should have comment or be unexported (golint)
    • Line 14: warning: exported type SqlError should have comment or be unexported (golint)
    • Line 31: warning: exported var DuplicateEntryErrNumber should have comment or be unexported (golint)
    • Line 33: warning: exported function DBErr should have comment or be unexported (golint)
    • postgresqlconnector/driver.go
    • Line 21: warning: exported type PostgreSQLLoggingDriver should have comment or be unexported (golint)
    • Line 25: warning: exported method PostgreSQLLoggingDriver.Open should have comment or be unexported (golint)
    • builder/stmt_select.go
    • Line 7: warning: exported type SelectStatement should have comment or be unexported (golint)
    • Line 12: warning: exported function Select should have comment or be unexported (golint)
    • Line 19: warning: exported type StmtSelect should have comment or be unexported (golint)
    • Line 27: warning: exported method StmtSelect.IsNil should have comment or be unexported (golint)
    • Line 31: warning: exported method StmtSelect.From should have comment or be unexported (golint)
    • Line 37: warning: exported method StmtSelect.Ex should have comment or be unexported (golint)
    • Line 85: warning: exported function ForUpdate should have comment or be unexported (golint)
    • builder/addition_on_conflict.go
    • Line 7: warning: exported type OnConflictAddition should have comment or be unexported (golint)
    • Line 10: warning: exported method OnConflictAddition.AdditionType should have comment or be unexported (golint)
    • Line 14: warning: exported function OnConflict should have comment or be unexported (golint)
    • builder/stmt_update.go
    • Line 10: warning: error var UpdateNeedLimitByWhere should have name of the form ErrFoo (golint)
    • Line 10: warning: exported var UpdateNeedLimitByWhere should have comment or be unexported (golint)
    • Line 13: warning: exported function Update should have comment or be unexported (golint)
    • Line 20: warning: exported type StmtUpdate should have comment or be unexported (golint)
    • Line 27: warning: exported method StmtUpdate.IsNil should have comment or be unexported (golint)
    • Line 31: warning: exported method StmtUpdate.Set should have comment or be unexported (golint)
    • Line 36: warning: exported method StmtUpdate.Where should have comment or be unexported (golint)
    • Line 44: warning: exported method StmtUpdate.Ex should have comment or be unexported (golint)
    • builder/alias.go
    • Line 7: warning: exported function Alias should have comment or be unexported (golint)
    • Line 29: warning: exported function MultiMayAutoAlias should have comment or be unexported (golint)
    • builder/def_column.go
    • Line 13: warning: exported function Col should have comment or be unexported (golint)
    • Line 22: warning: exported type Column should have comment or be unexported (golint)
    • Line 34: warning: exported method Column.Full should have comment or be unexported (golint)
    • Line 39: warning: exported method Column.Of should have comment or be unexported (golint)
    • Line 50: warning: exported method Column.IsNil should have comment or be unexported (golint)
    • Line 54: warning: exported method Column.Ex should have comment or be unexported (golint)
    • Line 66: warning: exported method Column.Expr should have comment or be unexported (golint)
    • Line 90: warning: exported method Column.Field should have comment or be unexported (golint)
    • Line 95: warning: exported method Column.Type should have comment or be unexported (golint)
    • Line 100: warning: exported method Column.On should have comment or be unexported (golint)
    • Line 105: warning: exported method Column.T should have comment or be unexported (golint)
    • Line 109: warning: exported method Column.ValueBy should have comment or be unexported (golint)
    • Line 113: warning: exported method Column.Incr should have comment or be unexported (golint)
    • Line 117: warning: exported method Column.Desc should have comment or be unexported (golint)
    • Line 121: warning: exported method Column.Like should have comment or be unexported (golint)
    • Line 125: warning: exported method Column.LeftLike should have comment or be unexported (golint)
    • Line 129: warning: exported method Column.RightLike should have comment or be unexported (golint)
    • Line 133: warning: exported method Column.NotLike should have comment or be unexported (golint)
    • Line 137: warning: exported method Column.IsNull should have comment or be unexported (golint)
    • Line 141: warning: exported method Column.IsNotNull should have comment or be unexported (golint)
    • Line 145: warning: exported method Column.Between should have comment or be unexported (golint)
    • Line 149: warning: exported method Column.NotBetween should have comment or be unexported (golint)
    • Line 153: warning: exported method Column.In should have comment or be unexported (golint)
    • Line 169: warning: exported method Column.NotIn should have comment or be unexported (golint)
    • Line 185: warning: exported method Column.Eq should have comment or be unexported (golint)
    • Line 189: warning: exported method Column.Neq should have comment or be unexported (golint)
    • Line 193: warning: exported method Column.Gt should have comment or be unexported (golint)
    • Line 197: warning: exported method Column.Gte should have comment or be unexported (golint)
    • Line 201: warning: exported method Column.Lt should have comment or be unexported (golint)
    • Line 205: warning: exported method Column.Lte should have comment or be unexported (golint)
    • Line 209: warning: exported function ColumnTypeFromTypeAndTag should have comment or be unexported (golint)
    • Line 268: warning: exported type ColumnType should have comment or be unexported (golint)
    • Line 286: warning: exported type DeprecatedActions 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!