Preparing report...

Report for gopkg.in/reform.v1

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


gocyclo85%

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.

    • querier_test.go
    • Line 50: warning: cyclomatic complexity 20 of function TestExecWithContext() is high (> 15) (gocyclo)
    • querier_commands.go
    • Line 53: warning: cyclomatic complexity 19 of function (*Querier).insert() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 18 of function (*Querier).InsertMulti() is high (> 15) (gocyclo)
    • parse/file.go
    • Line 48: warning: cyclomatic complexity 17 of function parseStructTypeSpec() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • internal/test/models/extra.go
    • Line 5: warning: comment on exported type Bytes should be of the form "Bytes ..." (with optional leading article) (golint)
    • Line 5: warning: comment on exported type Integer should be of the form "Integer ..." (with optional leading article) (golint)
    • Line 5: warning: comment on exported type String should be of the form "String ..." (with optional leading article) (golint)
    • Line 5: warning: comment on exported type Uint8s should be of the form "Uint8s ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported type Extra should be of the form "Extra ..." (with optional leading article) (golint)
    • internal/test/models/good.go
    • Line 1: warning: package comment should be of the form "Package models ..." (golint)
    • Line 15: warning: comment on exported type Person should be of the form "Person ..." (with optional leading article) (golint)
    • Line 110: warning: comment on exported type IDOnly should be of the form "IDOnly ..." (with optional leading article) (golint)
    • Line 115: warning: comment on exported type Constraints should be of the form "Constraints ..." (with optional leading article) (golint)
    • Line 121: warning: comment on exported type CompositePk should be of the form "CompositePk ..." (with optional leading article) (golint)
    • Line 128: warning: comment on exported type LegacyPerson should be of the form "LegacyPerson ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.

    • querier_commands_test.go
    • Line 19: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 27: warning: undeclared name: PersonTable (ineffassign)
    • Line 31: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 39: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 47: warning: undeclared name: PersonTable (ineffassign)
    • Line 51: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 58: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 66: warning: undeclared name: PersonTable (ineffassign)
    • Line 70: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 77: warning: cannot use project (variable of type *models.Project) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 81: warning: undeclared name: ProjectTable (ineffassign)
    • Line 85: warning: cannot use project (variable of type *models.Project) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 91: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 94: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 100: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 109: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.InsertColumns: missing method Pointers (ineffassign)
    • Line 119: warning: undeclared name: PersonTable (ineffassign)
    • Line 124: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 130: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.InsertColumns: missing method Pointers (ineffassign)
    • Line 133: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.InsertColumns: missing method Pointers (ineffassign)
    • Line 139: warning: cannot use pp (variable of type *models.PersonProject) as reform.Struct value in argument to s.q.InsertColumns: missing method Pointers (ineffassign)
    • Line 147: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 147: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 169: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 169: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 185: warning: undeclared name: PersonTable (ineffassign)
    • Line 189: warning: undeclared name: PersonTable (ineffassign)
    • Line 198: warning: cannot use new(Person) (value of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 198: warning: cannot use new(Project) (value of type *models.Project) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 201: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 201: warning: cannot use new(Person) (value of type *models.Person) as reform.Struct value in argument to s.q.InsertMulti: missing method Pointers (ineffassign)
    • Line 207: warning: cannot use &id (value of type *models.IDOnly) as reform.Struct value in argument to s.q.Insert: missing method Pointers (ineffassign)
    • Line 214: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.Update: missing method HasPK (ineffassign)
    • Line 218: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.Update: missing method HasPK (ineffassign)
    • Line 221: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 225: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.Update: missing method HasPK (ineffassign)
    • Line 231: warning: undeclared name: PersonTable (ineffassign)
    • Line 239: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.Update: missing method HasPK (ineffassign)
    • Line 243: warning: cannot use &person2 (value of type *models.Person) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 262: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 270: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.UpdateColumns: missing method HasPK (ineffassign)
    • Line 277: warning: undeclared name: PersonTable (ineffassign)
    • Line 290: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.UpdateColumns: missing method HasPK (ineffassign)
    • Line 306: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 314: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.UpdateView: missing method Pointers (ineffassign)
    • Line 322: warning: undeclared name: PersonTable (ineffassign)
    • Line 335: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to s.q.UpdateView: missing method Pointers (ineffassign)
    • Line 345: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 348: warning: undeclared name: PersonTable (ineffassign)
    • Line 350: warning: person2 (variable of type reform.Record) cannot have dynamic type *models.Person (missing method HasPK) (ineffassign)
    • Line 351: warning: person2 (variable of type reform.Record) cannot have dynamic type *models.Person (missing method HasPK) (ineffassign)
    • Line 356: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 359: warning: undeclared name: PersonTable (ineffassign)
    • Line 361: warning: person2 (variable of type reform.Record) cannot have dynamic type *models.Person (missing method HasPK) (ineffassign)
    • Line 362: warning: person2 (variable of type reform.Record) cannot have dynamic type *models.Person (missing method HasPK) (ineffassign)
    • Line 371: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 376: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 382: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Delete: missing method HasPK (ineffassign)
    • Line 384: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to s.q.Reload: missing method HasPK (ineffassign)
    • Line 388: warning: cannot use project (variable of type *models.Project) as reform.Record value in argument to s.q.Delete: missing method HasPK (ineffassign)
    • Line 390: warning: cannot use project (variable of type *models.Project) as reform.Record value in argument to s.q.Reload: missing method HasPK (ineffassign)
    • Line 394: warning: cannot use project (variable of type *models.Project) as reform.Record value in argument to s.q.Delete: missing method HasPK (ineffassign)
    • Line 398: warning: cannot use project (variable of type *models.Project) as reform.Record value in argument to s.q.Delete: missing method HasPK (ineffassign)
    • Line 403: warning: undeclared name: PersonTable (ineffassign)
    • Line 407: warning: undeclared name: PersonTable (ineffassign)
    • Line 412: warning: undeclared name: ProjectTable (ineffassign)
    • Line 416: warning: undeclared name: ProjectTable (ineffassign)
    • Line 420: warning: undeclared name: ProjectTable (ineffassign)
    • Line 431: warning: cannot use legacyPerson (variable of type *models.LegacyPerson) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 433: warning: cannot use legacyPerson (variable of type *models.LegacyPerson) as reform.Record value in argument to s.q.Save: missing method HasPK (ineffassign)
    • Line 435: warning: cannot use legacyPerson (variable of type *models.LegacyPerson) as reform.Record value in argument to s.q.Delete: missing method HasPK (ineffassign)
    • querier_selects_test.go
    • Line 23: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.SelectOneTo: missing method Pointers (ineffassign)
    • Line 28: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.SelectOneTo: missing method Pointers (ineffassign)
    • Line 33: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.SelectOneTo: missing method Pointers (ineffassign)
    • Line 37: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.SelectOneTo: missing method Pointers (ineffassign)
    • Line 44: warning: undeclared name: PersonTable (ineffassign)
    • Line 48: warning: undeclared name: ProjectTable (ineffassign)
    • Line 52: warning: undeclared name: ProjectTable (ineffassign)
    • Line 56: warning: undeclared name: ProjectTable (ineffassign)
    • Line 62: warning: undeclared name: PersonTable (ineffassign)
    • Line 68: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 73: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 78: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 82: warning: undeclared name: ProjectTable (ineffassign)
    • Line 88: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 92: warning: undeclared name: ProjectTable (ineffassign)
    • Line 99: warning: undeclared name: PersonTable (ineffassign)
    • Line 103: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 104: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 107: warning: undeclared name: ProjectTable (ineffassign)
    • Line 111: warning: undeclared name: ProjectTable (ineffassign)
    • Line 119: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.FindOneTo: missing method Pointers (ineffassign)
    • Line 127: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.FindOneTo: missing method Pointers (ineffassign)
    • Line 132: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.FindOneTo: missing method Pointers (ineffassign)
    • Line 136: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.FindOneTo: missing method Pointers (ineffassign)
    • Line 143: warning: undeclared name: PersonTable (ineffassign)
    • Line 150: warning: undeclared name: ProjectTable (ineffassign)
    • Line 154: warning: undeclared name: ProjectTable (ineffassign)
    • Line 158: warning: undeclared name: ProjectTable (ineffassign)
    • Line 165: warning: undeclared name: PersonTable (ineffassign)
    • Line 171: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 176: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 181: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 185: warning: undeclared name: ProjectTable (ineffassign)
    • Line 191: warning: cannot use &project (value of type *models.Project) as reform.Struct value in argument to s.q.NextRow: missing method Pointers (ineffassign)
    • Line 195: warning: undeclared name: ProjectTable (ineffassign)
    • Line 202: warning: undeclared name: PersonTable (ineffassign)
    • Line 206: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 207: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 210: warning: undeclared name: PersonTable (ineffassign)
    • Line 214: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 215: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 218: warning: undeclared name: ProjectTable (ineffassign)
    • Line 222: warning: undeclared name: ProjectTable (ineffassign)
    • Line 230: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 235: warning: cannot use &project (value of type *models.Project) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 240: warning: cannot use &project (value of type *models.Project) as reform.Record value in argument to s.q.FindByPrimaryKeyTo: missing method HasPK (ineffassign)
    • Line 246: warning: undeclared name: PersonTable (ineffassign)
    • Line 250: warning: undeclared name: ProjectTable (ineffassign)
    • Line 254: warning: undeclared name: ProjectTable (ineffassign)
    • Line 261: warning: cannot use &person (value of type *models.Person) as reform.Record value in argument to s.q.Reload: missing method HasPK (ineffassign)
    • Line 266: warning: cannot use &project (value of type *models.Project) as reform.Record value in argument to s.q.Reload: missing method HasPK (ineffassign)
    • Line 272: warning: cannot use &project (value of type *models.Project) as reform.Record value in argument to s.q.Reload: missing method HasPK (ineffassign)
    • Line 278: warning: undeclared name: PersonTable (ineffassign)
    • Line 282: warning: undeclared name: PersonTable (ineffassign)
    • Line 286: warning: undeclared name: PersonTable (ineffassign)
    • Line 297: warning: cannot use &legacyPerson (value of type *models.LegacyPerson) as reform.Struct value in argument to s.q.SelectOneTo: missing method Pointers (ineffassign)
    • Line 301: warning: undeclared name: LegacyPersonTable (ineffassign)
    • Line 305: warning: cannot use &(LegacyPerson literal) (value of type *models.LegacyPerson) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 306: warning: cannot use &(LegacyPerson literal) (value of type *models.LegacyPerson) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • reform-db/cmd_init.go
    • Line 109: warning: key.Pointers undefined (type keyColumnUsage has no field or method Pointers) (ineffassign)
    • Line 129: warning: undeclared name: tableView (ineffassign)
    • Line 136: warning: t (variable of type reform.Struct) cannot have dynamic type *table (missing method Pointers) (ineffassign)
    • Line 150: warning: undeclared name: columnView (ineffassign)
    • Line 155: warning: c (variable of type reform.Struct) cannot have dynamic type *column (missing method Pointers) (ineffassign)
    • Line 109: warning: key.Pointers undefined (type keyColumnUsage has no field or method Pointers) (ineffassign)
    • Line 129: warning: undeclared name: tableView (ineffassign)
    • Line 136: warning: t (variable of type reform.Struct) cannot have dynamic type *table (missing method Pointers) (ineffassign)
    • Line 150: warning: undeclared name: columnView (ineffassign)
    • Line 155: warning: c (variable of type reform.Struct) cannot have dynamic type *column (missing method Pointers) (ineffassign)
    • reform-db/cmd_init_sqlite3.go
    • Line 78: warning: undeclared name: sqliteMasterView (ineffassign)
    • Line 85: warning: table (variable of type reform.Struct) cannot have dynamic type *sqliteMaster (missing method Pointers) (ineffassign)
    • Line 105: warning: cannot use &column (value of type *sqliteTableInfo) as reform.Struct value in argument to db.NextRow: missing method Pointers (ineffassign)
    • Line 78: warning: undeclared name: sqliteMasterView (ineffassign)
    • Line 85: warning: table (variable of type reform.Struct) cannot have dynamic type *sqliteMaster (missing method Pointers) (ineffassign)
    • Line 105: warning: cannot use &column (value of type *sqliteTableInfo) as reform.Struct value in argument to db.NextRow: missing method Pointers (ineffassign)
    • querier_examples_test.go
    • Line 125: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 129: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 133: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 137: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 141: warning: cannot use &(Person literal) (value of type *models.Person) as reform.Struct value in array or slice literal: missing method Pointers (ineffassign)
    • Line 30: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to DB.Save: missing method HasPK (ineffassign)
    • Line 35: warning: undeclared name: PersonTable (ineffassign)
    • Line 39: warning: person2 (variable of type reform.Record) cannot have dynamic type *models.Person (missing method HasPK) (ineffassign)
    • Line 42: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to DB.Delete: missing method HasPK (ineffassign)
    • Line 47: warning: undeclared name: PersonTable (ineffassign)
    • Line 79: warning: undeclared name: ProjectTable (ineffassign)
    • Line 85: warning: undeclared name: ProjectTable (ineffassign)
    • Line 91: warning: undeclared name: PersonTable (ineffassign)
    • Line 99: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to DB.NextRow: missing method Pointers (ineffassign)
    • Line 116: warning: cannot use &person (value of type *models.Person) as reform.Struct value in argument to DB.SelectOneTo: missing method Pointers (ineffassign)
    • Line 165: warning: persons[0] (variable of type reform.Struct) cannot have dynamic type *models.Person (missing method Pointers) (ineffassign)
    • Line 165: warning: persons[0] (variable of type reform.Struct) cannot have dynamic type *models.Person (missing method Pointers) (ineffassign)
    • Line 173: warning: undeclared name: PersonTable (ineffassign)
    • Line 174: warning: undeclared name: PersonProjectView (ineffassign)
    • Line 175: warning: undeclared name: ProjectTable (ineffassign)
    • Line 193: warning: person.Pointers undefined (type models.Person has no field or method Pointers) (ineffassign)
    • Line 191: warning: personProject declared but not used (ineffassign)
    • base_test.go
    • Line 182: warning: undeclared name: PersonTable (ineffassign)
    • Line 187: warning: undeclared name: ProjectTable (ineffassign)
    • Line 196: warning: project.Values undefined (type *models.Project has no field or method Values) (ineffassign)
    • Line 198: warning: undeclared name: ProjectTable (ineffassign)
    • Line 202: warning: project.Pointers undefined (type *models.Project has no field or method Pointers) (ineffassign)
    • Line 204: warning: undeclared name: ProjectTable (ineffassign)
    • Line 208: warning: project.PKValue undefined (type *models.Project has no field or method PKValue) (ineffassign)
    • Line 213: warning: project.PKPointer undefined (type *models.Project has no field or method PKPointer) (ineffassign)
    • Line 222: warning: person.HasPK undefined (type *models.Person has no field or method HasPK) (ineffassign)
    • Line 223: warning: project.HasPK undefined (type *models.Project has no field or method HasPK) (ineffassign)
    • Line 227: warning: person.HasPK undefined (type *models.Person has no field or method HasPK) (ineffassign)
    • Line 228: warning: project.HasPK undefined (type *models.Project has no field or method HasPK) (ineffassign)
    • Line 305: warning: undeclared name: PersonTable (ineffassign)
    • Line 312: warning: undeclared name: PersonTable (ineffassign)
    • Line 321: warning: person.SetPK undefined (type models.Person has no field or method SetPK) (ineffassign)
    • Line 323: warning: person.SetPK undefined (type models.Person has no field or method SetPK) (ineffassign)
    • Line 325: warning: person.SetPK undefined (type models.Person has no field or method SetPK) (ineffassign)
    • Line 329: warning: project.SetPK undefined (type models.Project has no field or method SetPK) (ineffassign)
    • Line 331: warning: project.SetPK undefined (type models.Project has no field or method SetPK) (ineffassign)
    • Line 335: warning: extra.SetPK undefined (type models.Extra has no field or method SetPK) (ineffassign)
    • Line 337: warning: extra.SetPK undefined (type models.Extra has no field or method SetPK) (ineffassign)
    • Line 339: warning: extra.SetPK undefined (type models.Extra has no field or method SetPK) (ineffassign)
    • db_test.go
    • Line 27: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 31: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 32: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Delete: missing method HasPK (ineffassign)
    • Line 41: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 45: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 62: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 63: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 64: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 68: warning: cannot use person1 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 69: warning: cannot use person2 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 70: warning: cannot use person1 (variable of type *models.Person) as reform.Record value in argument to db.Delete: missing method HasPK (ineffassign)
    • Line 71: warning: cannot use person2 (variable of type *models.Person) as reform.Record value in argument to db.Delete: missing method HasPK (ineffassign)
    • Line 76: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 77: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 78: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 82: warning: cannot use person1 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 83: warning: cannot use person2 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 101: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 102: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 103: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 116: warning: cannot use person1 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 117: warning: cannot use person2 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 122: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 123: warning: cannot use person1 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 124: warning: cannot use person2 (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 128: warning: cannot use person1 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 129: warning: cannot use person2 (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 140: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 144: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 149: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 153: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 157: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 158: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 163: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 167: warning: cannot use person (variable of type *models.Person) as reform.Struct value in argument to insertPersonWithID: missing method Pointers (ineffassign)
    • Line 171: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Reload: missing method HasPK (ineffassign)
    • Line 172: warning: cannot use person (variable of type *models.Person) as reform.Record value in argument to db.Delete: missing method HasPK (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words