Preparing report...

Report for github.com/go-gorm/gorm

A+    Excellent!    Found 68 issues across 132 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!


gocyclo73%

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.

    • gorm/gorm.go
    • Line 112: warning: cyclomatic complexity 21 of function Open() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 18 of function (*DB).Session() is high (> 15) (gocyclo)
    • gorm/migrator/migrator.go
    • Line 88: warning: cyclomatic complexity 23 of function (Migrator).AutoMigrate() is high (> 15) (gocyclo)
    • Line 657: warning: cyclomatic complexity 20 of function (Migrator).ReorderModels() is high (> 15) (gocyclo)
    • Line 157: warning: cyclomatic complexity 19 of function (Migrator).CreateTable() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 18 of function (Migrator).MigrateColumn() is high (> 15) (gocyclo)
    • gorm/callbacks/delete.go
    • Line 25: warning: cyclomatic complexity 24 of function DeleteBeforeAssociations() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 18 of function Delete() is high (> 15) (gocyclo)
    • gorm/callbacks.go
    • Line 241: warning: cyclomatic complexity 31 of function sortCallbacks() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 21 of function (*processor).Execute() is high (> 15) (gocyclo)
    • gorm/tests/multi_primary_keys_test.go
    • Line 262: warning: cyclomatic complexity 27 of function TestManyToManyWithCustomizedForeignKeys2() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 21 of function TestManyToManyWithCustomizedForeignKeys() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 16 of function TestManyToManyWithMultiPrimaryKeys() is high (> 15) (gocyclo)
    • gorm/tests/migrate_test.go
    • Line 57: warning: cyclomatic complexity 35 of function TestSmartMigrateColumn() is high (> 15) (gocyclo)
    • Line 260: warning: cyclomatic complexity 16 of function TestMigrateColumns() is high (> 15) (gocyclo)
    • gorm/callbacks/associations.go
    • Line 94: warning: cyclomatic complexity 64 of function SaveAfterAssociations() is high (> 15) (gocyclo)
    • Line 12: warning: cyclomatic complexity 25 of function SaveBeforeAssociations() is high (> 15) (gocyclo)
    • gorm/scan.go
    • Line 52: warning: cyclomatic complexity 69 of function Scan() is high (> 15) (gocyclo)
    • gorm/tests/upsert_test.go
    • Line 212: warning: cyclomatic complexity 30 of function TestFindOrCreate() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 25 of function TestFindOrInitialize() is high (> 15) (gocyclo)
    • gorm/callbacks/create.go
    • Line 233: warning: cyclomatic complexity 63 of function ConvertToCreateValues() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 27 of function CreateWithReturning() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 26 of function Create() is high (> 15) (gocyclo)
    • gorm/association.go
    • Line 320: warning: cyclomatic complexity 51 of function (*Association).saveAssociation() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 27 of function (*Association).Delete() is high (> 15) (gocyclo)
    • Line 65: warning: cyclomatic complexity 22 of function (*Association).Replace() is high (> 15) (gocyclo)
    • gorm/statement.go
    • Line 261: warning: cyclomatic complexity 67 of function (*Statement).BuildCondition() is high (> 15) (gocyclo)
    • Line 618: warning: cyclomatic complexity 23 of function (*Statement).SelectAndOmitColumns() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 23 of function (*Statement).QuoteTo() is high (> 15) (gocyclo)
    • Line 156: warning: cyclomatic complexity 22 of function (*Statement).AddVar() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 17 of function (*Statement).Changed() is high (> 15) (gocyclo)
    • Line 512: warning: cyclomatic complexity 16 of function (*Statement).SetColumn() is high (> 15) (gocyclo)

golint62%

Golint is a linter for Go source code.

    • gorm/utils/utils.go
    • Line 35: warning: exported function IsValidDBNameChar should have comment or be unexported (golint)
    • Line 39: warning: exported function CheckTruth should have comment or be unexported (golint)
    • Line 52: warning: exported function ToStringKey should have comment or be unexported (golint)
    • Line 75: warning: exported function AssertEqual should have comment or be unexported (golint)
    • Line 90: warning: exported function ToString should have comment or be unexported (golint)
    • Line 118: warning: exported function ExistsIn should have comment or be unexported (golint)
    • gorm/schema/field.go
    • Line 17: warning: exported type DataType should have comment or be unexported (golint)
    • Line 19: warning: exported type TimeType should have comment or be unexported (golint)
    • Line 21: warning: exported var TimeReflectType should have comment or be unexported (golint)
    • Line 24: warning: exported const UnixSecond should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported const Bool should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type Field should have comment or be unexported (golint)
    • Line 76: warning: exported method Schema.ParseField should have comment or be unexported (golint)
    • gorm/gorm.go
    • Line 62: warning: exported method Config.Apply should have comment or be unexported (golint)
    • Line 69: warning: exported method Config.AfterInitialize should have comment or be unexported (golint)
    • Line 80: warning: exported type Option should have comment or be unexported (golint)
    • Line 379: warning: exported function Expr should have comment or be unexported (golint)
    • Line 383: warning: exported method DB.SetupJoinTable should have comment or be unexported (golint)
    • Line 431: warning: exported method DB.Use should have comment or be unexported (golint)
    • gorm/callbacks/associations.go
    • Line 12: warning: exported function SaveBeforeAssociations should have comment or be unexported (golint)
    • Line 94: warning: exported function SaveAfterAssociations should have comment or be unexported (golint)
    • gorm/callbacks/delete.go
    • Line 12: warning: exported function BeforeDelete should have comment or be unexported (golint)
    • Line 25: warning: exported function DeleteBeforeAssociations should have comment or be unexported (golint)
    • Line 107: warning: exported function Delete should have comment or be unexported (golint)
    • Line 158: warning: exported function AfterDelete should have comment or be unexported (golint)
    • gorm/callbacks/interfaces.go
    • Line 5: warning: exported type BeforeCreateInterface should have comment or be unexported (golint)
    • Line 9: warning: exported type AfterCreateInterface should have comment or be unexported (golint)
    • Line 13: warning: exported type BeforeUpdateInterface should have comment or be unexported (golint)
    • Line 17: warning: exported type AfterUpdateInterface should have comment or be unexported (golint)
    • Line 21: warning: exported type BeforeSaveInterface should have comment or be unexported (golint)
    • Line 25: warning: exported type AfterSaveInterface should have comment or be unexported (golint)
    • Line 29: warning: exported type BeforeDeleteInterface should have comment or be unexported (golint)
    • Line 33: warning: exported type AfterDeleteInterface should have comment or be unexported (golint)
    • Line 37: warning: exported type AfterFindInterface should have comment or be unexported (golint)
    • gorm/schema/relationship.go
    • Line 17: warning: exported const HasOne should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Relationships should have comment or be unexported (golint)
    • Line 32: warning: exported type Relationship should have comment or be unexported (golint)
    • Line 44: warning: exported type Polymorphic should have comment or be unexported (golint)
    • Line 50: warning: exported type Reference should have comment or be unexported (golint)
    • Line 414: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 505: warning: exported type Constraint should have comment or be unexported (golint)
    • Line 516: warning: exported method Relationship.ParseConstraint should have comment or be unexported (golint)
    • Line 581: warning: exported method Relationship.ToQueryConditions should have comment or be unexported (golint)
    • gorm/chainable_api.go
    • Line 265: warning: exported method DB.Attrs should have comment or be unexported (golint)
    • Line 271: warning: exported method DB.Assign should have comment or be unexported (golint)
    • Line 277: warning: exported method DB.Unscoped should have comment or be unexported (golint)
    • Line 283: warning: exported method DB.Raw should have comment or be unexported (golint)
    • gorm/finisher_api.go
    • Line 210: warning: receiver name tx should be consistent with previous receiver name db for DB (golint)
    • Line 259: warning: exported method DB.FirstOrInit should have comment or be unexported (golint)
    • Line 284: warning: exported method DB.FirstOrCreate should have comment or be unexported (golint)
    • Line 342: warning: exported method DB.UpdateColumn should have comment or be unexported (golint)
    • Line 349: warning: exported method DB.UpdateColumns should have comment or be unexported (golint)
    • Line 368: warning: exported method DB.Count should have comment or be unexported (golint)
    • Line 428: warning: exported method DB.Row should have comment or be unexported (golint)
    • Line 438: warning: exported method DB.Rows should have comment or be unexported (golint)
    • Line 501: warning: exported method DB.ScanRows should have comment or be unexported (golint)
    • Line 607: warning: exported method DB.SavePoint should have comment or be unexported (golint)
    • Line 616: warning: exported method DB.RollbackTo should have comment or be unexported (golint)
    • gorm/prepare_stmt.go
    • Line 9: warning: exported type Stmt should have comment or be unexported (golint)
    • Line 14: warning: exported type PreparedStmtDB should have comment or be unexported (golint)
    • Line 21: warning: exported method PreparedStmtDB.GetDBConn should have comment or be unexported (golint)
    • Line 33: warning: exported method PreparedStmtDB.Close should have comment or be unexported (golint)
    • Line 72: warning: exported method PreparedStmtDB.BeginTx should have comment or be unexported (golint)
    • Line 80: warning: exported method PreparedStmtDB.ExecContext should have comment or be unexported (golint)
    • Line 94: warning: exported method PreparedStmtDB.QueryContext should have comment or be unexported (golint)
    • Line 108: warning: exported method PreparedStmtDB.QueryRowContext should have comment or be unexported (golint)
    • Line 116: warning: exported type PreparedStmtTX should have comment or be unexported (golint)
    • Line 121: warning: exported method PreparedStmtTX.Commit should have comment or be unexported (golint)
    • Line 128: warning: exported method PreparedStmtTX.Rollback should have comment or be unexported (golint)
    • Line 135: warning: exported method PreparedStmtTX.ExecContext should have comment or be unexported (golint)
    • Line 149: warning: exported method PreparedStmtTX.QueryContext should have comment or be unexported (golint)
    • Line 163: warning: exported method PreparedStmtTX.QueryRowContext should have comment or be unexported (golint)
    • gorm/callbacks/callbacks.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported function RegisterDefaultCallbacks should have comment or be unexported (golint)
    • gorm/logger/logger.go
    • Line 15: warning: exported var ErrRecordNotFound should have comment or be unexported (golint)
    • Line 33: warning: comment on exported type LogLevel should be of the form "LogLevel ..." (with optional leading article) (golint)
    • Line 37: warning: exported const Silent should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type Config should have comment or be unexported (golint)
    • Line 65: warning: exported var Discard should have comment or be unexported (golint)
    • Line 74: warning: exported function New should have comment or be unexported (golint)
    • gorm/clause/order_by.go
    • Line 3: warning: exported type OrderByColumn should have comment or be unexported (golint)
    • Line 9: warning: exported type OrderBy should have comment or be unexported (golint)
    • gorm/clause/select.go
    • Line 10: warning: exported method Select.Name should have comment or be unexported (golint)
    • Line 14: warning: exported method Select.Build should have comment or be unexported (golint)
    • Line 31: warning: exported method Select.MergeClause should have comment or be unexported (golint)
    • gorm/schema/index.go
    • Line 9: warning: exported type Index should have comment or be unexported (golint)
    • Line 19: warning: exported type IndexOption should have comment or be unexported (golint)
    • Line 66: warning: exported method Schema.LookIndex should have comment or be unexported (golint)
    • gorm/association.go
    • Line 20: warning: exported method DB.Association should have comment or be unexported (golint)
    • Line 43: warning: exported method Association.Find should have comment or be unexported (golint)
    • Line 50: warning: exported method Association.Append should have comment or be unexported (golint)
    • Line 65: warning: exported method Association.Replace should have comment or be unexported (golint)
    • Line 164: warning: exported method Association.Delete should have comment or be unexported (golint)
    • Line 303: warning: exported method Association.Clear should have comment or be unexported (golint)
    • Line 307: warning: exported method Association.Count should have comment or be unexported (golint)
    • gorm/interfaces.go
    • Line 43: warning: exported type TxBeginner should have comment or be unexported (golint)
    • Line 47: warning: exported type ConnPoolBeginner should have comment or be unexported (golint)
    • Line 51: warning: exported type TxCommitter should have comment or be unexported (golint)
    • Line 61: warning: exported type GetDBConnector should have comment or be unexported (golint)
    • gorm/migrator.go
    • Line 36: warning: exported type ColumnType should have comment or be unexported (golint)
    • Line 44: warning: exported type Migrator should have comment or be unexported (golint)
    • gorm/utils/tests/dummy_dialecter.go
    • Line 10: warning: exported type DummyDialector should have comment or be unexported (golint)
    • Line 13: warning: exported method DummyDialector.Name should have comment or be unexported (golint)
    • Line 17: warning: exported method DummyDialector.Initialize should have comment or be unexported (golint)
    • Line 21: warning: exported method DummyDialector.DefaultValueOf should have comment or be unexported (golint)
    • Line 25: warning: exported method DummyDialector.Migrator should have comment or be unexported (golint)
    • Line 29: warning: exported method DummyDialector.BindVarTo should have comment or be unexported (golint)
    • Line 33: warning: exported method DummyDialector.QuoteTo should have comment or be unexported (golint)
    • Line 39: warning: exported method DummyDialector.Explain should have comment or be unexported (golint)
    • Line 43: warning: exported method DummyDialector.DataTypeOf should have comment or be unexported (golint)
    • gorm/callbacks/update.go
    • Line 12: warning: exported function SetupUpdateReflectValue should have comment or be unexported (golint)
    • Line 31: warning: exported function BeforeUpdate should have comment or be unexported (golint)
    • Line 53: warning: exported function Update should have comment or be unexported (golint)
    • Line 89: warning: exported function AfterUpdate should have comment or be unexported (golint)
    • gorm/clause/joins.go
    • Line 3: warning: exported type JoinType should have comment or be unexported (golint)
    • Line 6: warning: exported const CrossJoin should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported method Join.Build should have comment or be unexported (golint)
    • gorm/utils/tests/models.go
    • Line 32: warning: exported type Account should have comment or be unexported (golint)
    • Line 38: warning: exported type Pet should have comment or be unexported (golint)
    • Line 45: warning: exported type Toy should have comment or be unexported (golint)
    • Line 52: warning: exported type Company should have comment or be unexported (golint)
    • Line 57: warning: exported type Language should have comment or be unexported (golint)
    • gorm/clause/set.go
    • Line 5: warning: exported type Set should have comment or be unexported (golint)
    • Line 7: warning: exported type Assignment should have comment or be unexported (golint)
    • Line 12: warning: exported method Set.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Set.Build should have comment or be unexported (golint)
    • Line 40: warning: exported function Assignments should have comment or be unexported (golint)
    • Line 54: warning: exported function AssignmentColumns should have comment or be unexported (golint)
    • gorm/schema/interfaces.go
    • Line 7: warning: exported type GormDataTypeInterface should have comment or be unexported (golint)
    • Line 11: warning: exported type CreateClausesInterface should have comment or be unexported (golint)
    • Line 15: warning: exported type QueryClausesInterface should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateClausesInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type DeleteClausesInterface should have comment or be unexported (golint)
    • gorm/soft_delete.go
    • Line 13: warning: exported type DeletedAt should have comment or be unexported (golint)
    • Line 28: warning: exported method DeletedAt.MarshalJSON should have comment or be unexported (golint)
    • Line 35: warning: exported method DeletedAt.UnmarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method DeletedAt.QueryClauses should have comment or be unexported (golint)
    • Line 51: warning: exported type SoftDeleteQueryClause should have comment or be unexported (golint)
    • Line 55: warning: exported method SoftDeleteQueryClause.Name should have comment or be unexported (golint)
    • Line 59: warning: exported method SoftDeleteQueryClause.Build should have comment or be unexported (golint)
    • Line 62: warning: exported method SoftDeleteQueryClause.MergeClause should have comment or be unexported (golint)
    • Line 65: warning: exported method SoftDeleteQueryClause.ModifyStatement should have comment or be unexported (golint)
    • Line 87: warning: exported method DeletedAt.UpdateClauses should have comment or be unexported (golint)
    • Line 91: warning: exported type SoftDeleteUpdateClause should have comment or be unexported (golint)
    • Line 95: warning: exported method SoftDeleteUpdateClause.Name should have comment or be unexported (golint)
    • Line 99: warning: exported method SoftDeleteUpdateClause.Build should have comment or be unexported (golint)
    • Line 102: warning: exported method SoftDeleteUpdateClause.MergeClause should have comment or be unexported (golint)
    • Line 105: warning: exported method SoftDeleteUpdateClause.ModifyStatement should have comment or be unexported (golint)
    • Line 113: warning: exported method DeletedAt.DeleteClauses should have comment or be unexported (golint)
    • Line 117: warning: exported type SoftDeleteDeleteClause should have comment or be unexported (golint)
    • Line 121: warning: exported method SoftDeleteDeleteClause.Name should have comment or be unexported (golint)
    • Line 125: warning: exported method SoftDeleteDeleteClause.Build should have comment or be unexported (golint)
    • Line 128: warning: exported method SoftDeleteDeleteClause.MergeClause should have comment or be unexported (golint)
    • Line 131: warning: exported method SoftDeleteDeleteClause.ModifyStatement should have comment or be unexported (golint)
    • gorm/callbacks/query.go
    • Line 13: warning: exported function Query should have comment or be unexported (golint)
    • Line 30: warning: exported function BuildQuerySQL should have comment or be unexported (golint)
    • Line 174: warning: exported function Preload should have comment or be unexported (golint)
    • Line 218: warning: exported function AfterQuery should have comment or be unexported (golint)
    • gorm/migrator/migrator.go
    • Line 32: warning: exported type GormDataTypeInterface should have comment or be unexported (golint)
    • Line 36: warning: exported method Migrator.RunWithValue should have comment or be unexported (golint)
    • Line 52: warning: exported method Migrator.DataTypeOf should have comment or be unexported (golint)
    • Line 63: warning: exported method Migrator.FullDataTypeOf should have comment or be unexported (golint)
    • Line 87: warning: comment on exported method Migrator.AutoMigrate should be of the form "AutoMigrate ..." (golint)
    • Line 157: warning: exported method Migrator.CreateTable should have comment or be unexported (golint)
    • Line 241: warning: exported method Migrator.DropTable should have comment or be unexported (golint)
    • Line 254: warning: exported method Migrator.HasTable should have comment or be unexported (golint)
    • Line 265: warning: exported method Migrator.RenameTable should have comment or be unexported (golint)
    • Line 292: warning: exported method Migrator.AddColumn should have comment or be unexported (golint)
    • Line 311: warning: exported method Migrator.DropColumn should have comment or be unexported (golint)
    • Line 323: warning: exported method Migrator.AlterColumn should have comment or be unexported (golint)
    • Line 337: warning: exported method Migrator.HasColumn should have comment or be unexported (golint)
    • Line 355: warning: exported method Migrator.RenameColumn should have comment or be unexported (golint)
    • Line 372: warning: exported method Migrator.MigrateColumn should have comment or be unexported (golint)
    • Line 417: warning: exported method Migrator.ColumnTypes should have comment or be unexported (golint)
    • Line 435: warning: exported method Migrator.CreateView should have comment or be unexported (golint)
    • Line 439: warning: exported method Migrator.DropView should have comment or be unexported (golint)
    • Line 465: warning: exported method Migrator.GuessConstraintAndTable should have comment or be unexported (golint)
    • Line 508: warning: exported method Migrator.CreateConstraint should have comment or be unexported (golint)
    • Line 531: warning: exported method Migrator.DropConstraint should have comment or be unexported (golint)
    • Line 543: warning: exported method Migrator.HasConstraint should have comment or be unexported (golint)
    • Line 563: warning: exported method Migrator.BuildIndexOptions should have comment or be unexported (golint)
    • Line 584: warning: exported type BuildIndexOptionsInterface should have comment or be unexported (golint)
    • Line 588: warning: exported method Migrator.CreateIndex should have comment or be unexported (golint)
    • Line 615: warning: exported method Migrator.DropIndex should have comment or be unexported (golint)
    • Line 625: warning: exported method Migrator.HasIndex should have comment or be unexported (golint)
    • Line 642: warning: exported method Migrator.RenameIndex should have comment or be unexported (golint)
    • Line 651: warning: exported method Migrator.CurrentDatabase should have comment or be unexported (golint)
    • Line 754: warning: exported method Migrator.CurrentTable should have comment or be unexported (golint)
    • gorm/callbacks/transaction.go
    • Line 7: warning: exported function BeginTransaction should have comment or be unexported (golint)
    • Line 20: warning: exported function CommitOrRollbackTransaction should have comment or be unexported (golint)
    • gorm/clause/delete.go
    • Line 3: warning: exported type Delete should have comment or be unexported (golint)
    • Line 7: warning: exported method Delete.Name should have comment or be unexported (golint)
    • Line 11: warning: exported method Delete.Build should have comment or be unexported (golint)
    • Line 20: warning: exported method Delete.MergeClause should have comment or be unexported (golint)
    • gorm/clause/on_conflict.go
    • Line 3: warning: exported type OnConflict should have comment or be unexported (golint)
    • Line 13: warning: exported method OnConflict.Name should have comment or be unexported (golint)
    • gorm/clause/where.go
    • Line 89: warning: exported function And should have comment or be unexported (golint)
    • Line 98: warning: exported type AndConditions should have comment or be unexported (golint)
    • Line 102: warning: exported method AndConditions.Build should have comment or be unexported (golint)
    • Line 112: warning: exported function Or should have comment or be unexported (golint)
    • Line 119: warning: exported type OrConditions should have comment or be unexported (golint)
    • Line 123: warning: exported method OrConditions.Build should have comment or be unexported (golint)
    • Line 133: warning: exported function Not should have comment or be unexported (golint)
    • Line 140: warning: exported type NotConditions should have comment or be unexported (golint)
    • Line 144: warning: exported method NotConditions.Build should have comment or be unexported (golint)
    • gorm/schema/schema.go
    • Line 18: warning: exported type Schema should have comment or be unexported (golint)
    • Line 53: warning: exported method Schema.MakeSlice should have comment or be unexported (golint)
    • Line 60: warning: exported method Schema.LookUpField should have comment or be unexported (golint)
    • Line 70: warning: exported type Tabler should have comment or be unexported (golint)
    • Line 241: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gorm/callbacks/create.go
    • Line 12: warning: exported function BeforeCreate should have comment or be unexported (golint)
    • Line 33: warning: exported function Create should have comment or be unexported (golint)
    • Line 115: warning: exported function CreateWithReturning should have comment or be unexported (golint)
    • Line 211: warning: exported function AfterCreate should have comment or be unexported (golint)
    • gorm/clause/expression.go
    • Line 186: warning: exported method IN.Build should have comment or be unexported (golint)
    • Line 207: warning: exported method IN.NegationBuild should have comment or be unexported (golint)
    • Line 233: warning: exported method Eq.Build should have comment or be unexported (golint)
    • Line 257: warning: exported method Eq.NegationBuild should have comment or be unexported (golint)
    • Line 264: warning: exported method Neq.Build should have comment or be unexported (golint)
    • Line 288: warning: exported method Neq.NegationBuild should have comment or be unexported (golint)
    • Line 295: warning: exported method Gt.Build should have comment or be unexported (golint)
    • Line 301: warning: exported method Gt.NegationBuild should have comment or be unexported (golint)
    • Line 308: warning: exported method Gte.Build should have comment or be unexported (golint)
    • Line 314: warning: exported method Gte.NegationBuild should have comment or be unexported (golint)
    • Line 321: warning: exported method Lt.Build should have comment or be unexported (golint)
    • Line 327: warning: exported method Lt.NegationBuild should have comment or be unexported (golint)
    • Line 334: warning: exported method Lte.Build should have comment or be unexported (golint)
    • Line 340: warning: exported method Lte.NegationBuild should have comment or be unexported (golint)
    • Line 347: warning: exported method Like.Build should have comment or be unexported (golint)
    • Line 353: warning: exported method Like.NegationBuild should have comment or be unexported (golint)
    • gorm/utils/tests/utils.go
    • Line 14: warning: exported function AssertObjEqual should have comment or be unexported (golint)
    • Line 24: warning: exported function AssertEqual should have comment or be unexported (golint)
    • Line 114: warning: exported function Now should have comment or be unexported (golint)
    • gorm/clause/clause.go
    • Line 13: warning: exported type Writer should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type Clause should be of the form "Clause ..." (with optional leading article) (golint)
    • Line 65: warning: exported const PrimaryKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported var PrimaryColumn should have comment or be unexported (golint)
    • gorm/scan.go
    • Line 52: warning: exported function Scan should have comment or be unexported (golint)

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!