jirfag/go-queryset

View on GitHub
internal/queryset/generator/methodsbuilder.go

Summary

Maintainability
A
35 mins
Test Coverage

Method methodsBuilder.getQuerySetMethodsForField has 5 return statements (exceeds 4 allowed).
Open

func (b *methodsBuilder) getQuerySetMethodsForField(f field.Info) []methods.Method {
    fctx := b.sctx.FieldCtx(f)
    basicTypeMethods := []methods.Method{
        methods.NewBinaryFilterMethod(fctx.WithOperationName("eq")),
        methods.NewBinaryFilterMethod(fctx.WithOperationName("ne")),
Severity: Major
Found in internal/queryset/generator/methodsbuilder.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status