jirfag/go-queryset

View on GitHub
internal/queryset/field/field.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method InfoGenerator.GenFieldInfo has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (g InfoGenerator) GenFieldInfo(f Field) *Info {
    tagSetting := parseTagSetting(f.Tag())
    if tagSetting["-"] != "" { // skipped by tag field
        return nil
    }
Severity: Minor
Found in internal/queryset/field/field.go - About 1 hr to fix

    Method InfoGenerator.GenFieldInfo has 8 return statements (exceeds 4 allowed).
    Open

    func (g InfoGenerator) GenFieldInfo(f Field) *Info {
        tagSetting := parseTagSetting(f.Tag())
        if tagSetting["-"] != "" { // skipped by tag field
            return nil
        }
    Severity: Major
    Found in internal/queryset/field/field.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status