Fs02/grimoire

View on GitHub
query.go

Summary

Maintainability
B
4 hrs
Test Coverage
A
100%

Query has 34 methods (exceeds 20 allowed). Consider refactoring.
Open

type Query struct {
    repo            *Repo
    Collection      string
    Fields          []string
    AggregateField  string
Severity: Minor
Found in query.go - About 4 hrs to fix

    Method Query.Save has 5 return statements (exceeds 4 allowed).
    Open

    func (query Query) Save(record interface{}) error {
        rv := reflect.ValueOf(record)
        rt := rv.Type()
        if rt.Kind() == reflect.Ptr && rt.Elem().Kind() == reflect.Slice {
            // Put multiple records
    Severity: Major
    Found in query.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status