internal/queryset/generator/generator.go
Method Generator.writeQuerySetsToOutput
has 6 return statements (exceeds 4 allowed). Open
Open
func (g Generator) writeQuerySetsToOutput(r io.Reader, packageName, outFile string) error {
const hdrTmpl = `%s
package %s
import (
Method Generator.Generate
has 5 return statements (exceeds 4 allowed). Open
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)
}