Preparing report...

Report for github.com/geoffreybauduin/yaorm

A+    Excellent!    Found 11 issues across 59 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!


gocyclo98%

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.

    • yaorm/model.go
    • Line 378: warning: cyclomatic complexity 16 of function finishSelect() is high (> 15) (gocyclo)

golint86%

Golint is a linter for Go source code.

    • yaorm/table.go
    • Line 141: warning: exported method Table.WithKeys should have comment or be unexported (golint)
    • Line 147: warning: exported method Table.WithSchema should have comment or be unexported (golint)
    • Line 153: warning: exported method Table.WithFilter should have comment or be unexported (golint)
    • Line 163: warning: exported method Table.WithAutoIncrement should have comment or be unexported (golint)
    • Line 168: warning: exported method Table.WithSubqueryloading should have comment or be unexported (golint)
    • Line 180: warning: exported method Table.Fields should have comment or be unexported (golint)
    • Line 184: warning: exported method Table.Name should have comment or be unexported (golint)
    • Line 188: warning: exported method Table.Keys should have comment or be unexported (golint)
    • Line 192: warning: exported method Table.KeyFields should have comment or be unexported (golint)
    • Line 200: warning: exported method Table.FieldIndex should have comment or be unexported (golint)
    • Line 208: warning: exported method Table.FieldsWithoutPK should have comment or be unexported (golint)
    • Line 220: warning: exported method Table.FilterFieldIndex should have comment or be unexported (golint)
    • Line 228: warning: exported method Table.NewFilter should have comment or be unexported (golint)
    • Line 236: warning: exported method Table.NewModel should have comment or be unexported (golint)
    • Line 244: warning: exported method Table.NewSlice should have comment or be unexported (golint)
    • Line 254: warning: exported method Table.NewSlicePtr should have comment or be unexported (golint)
    • yaorm/tools/reflect.go
    • Line 5: warning: exported function GetNonPtrValue should have comment or be unexported (golint)
    • Line 13: warning: exported function GetNonPtrInterface should have comment or be unexported (golint)
    • Line 18: warning: exported function IsZeroValue should have comment or be unexported (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • yaorm/yaormfilter/filter.go
    • Line 62: warning: exported type OrderBy should have comment or be unexported (golint)
    • Line 67: warning: exported method ModelFilter.Subqueryload should have comment or be unexported (golint)
    • Line 71: warning: exported method ModelFilter.AllowSubqueryload should have comment or be unexported (golint)
    • Line 76: warning: exported method ModelFilter.ShouldSubqueryload should have comment or be unexported (golint)
    • Line 80: warning: exported method ModelFilter.AddOption should have comment or be unexported (golint)
    • Line 84: warning: exported method ModelFilter.OrderBy should have comment or be unexported (golint)
    • Line 88: warning: exported method ModelFilter.SetOrderBy should have comment or be unexported (golint)
    • Line 96: warning: exported method ModelFilter.GetOrderBy should have comment or be unexported (golint)
    • Line 100: warning: exported method ModelFilter.AddOption_ should have comment or be unexported (golint)
    • Line 100: warning: don't use underscores in Go names; method AddOption_ should be AddOption (golint)
    • Line 104: warning: exported method ModelFilter.GetSelectOptions should have comment or be unexported (golint)
    • Line 115: warning: exported method ModelFilter.Distinct should have comment or be unexported (golint)
    • Line 119: warning: exported method ModelFilter.Limit should have comment or be unexported (golint)
    • Line 123: warning: exported method ModelFilter.Offset should have comment or be unexported (golint)
    • Line 127: warning: exported method ModelFilter.SetLimit should have comment or be unexported (golint)
    • Line 132: warning: exported method ModelFilter.SetOffset should have comment or be unexported (golint)
    • Line 137: warning: exported method ModelFilter.GetLimit should have comment or be unexported (golint)
    • Line 141: warning: exported method ModelFilter.GetOffset should have comment or be unexported (golint)
    • Line 145: warning: exported method ModelFilter.LoadColumns should have comment or be unexported (golint)
    • Line 149: warning: exported method ModelFilter.GetLoadColumns should have comment or be unexported (golint)
    • Line 153: warning: exported method ModelFilter.DontLoadColumns should have comment or be unexported (golint)
    • Line 157: warning: exported method ModelFilter.GetDontLoadColumns should have comment or be unexported (golint)
    • yaorm/yaormfilter/valuefilter.go
    • Line 9: warning: exported type RawFilterFunc should have comment or be unexported (golint)
    • Line 11: warning: exported type ValueFilter should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; struct field equals_ should be equals (golint)
    • yaorm/databasecapacity.go
    • Line 7: warning: exported const DatabaseCapacitySchema should have comment (or a comment on this block) or be unexported (golint)
    • yaorm/db.go
    • Line 18: warning: exported type DB should have comment or be unexported (golint)
    • Line 49: warning: exported var ErrDatabaseConflict should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!