jirfag/go-queryset

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

Summary

Maintainability
A
1 hr
Test Coverage

Method Generator.writeQuerySetsToOutput has 6 return statements (exceeds 4 allowed).
Open

func (g Generator) writeQuerySetsToOutput(r io.Reader, packageName, outFile string) error {
    const hdrTmpl = `%s
    package %s

import (
Severity: Major
Found in internal/queryset/generator/generator.go - About 40 mins to fix

    Method Generator.Generate has 5 return statements (exceeds 4 allowed).
    Open

    func (g Generator) Generate(ctx context.Context, inFilePath, outFilePath string) error {
        parsedFile, err := g.StructsParser.ParseFile(ctx, inFilePath)
        if err != nil {
            return errors.Wrapf(err, "can't parse file %s to get structs", inFilePath)
        }
    Severity: Major
    Found in internal/queryset/generator/generator.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status