internal/spec/parser.go
Method interfaceMethodParser.parseFindOperation
has 7 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) parseFindOperation(tokens []string) (Operation, error) {
mode, err := p.extractModelOrSliceReturns(p.Signature.Results())
if err != nil {
return nil, err
}
Method interfaceMethodParser.extractIntOrBoolReturns
has 5 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) extractIntOrBoolReturns(returns *types.Tuple) (QueryMode, error) {
if returns.Len() != 2 {
return "", NewOperationReturnCountUnmatchedError(2)
}
Method interfaceMethodParser.extractInsertReturns
has 5 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) extractInsertReturns(returns *types.Tuple) (QueryMode, error) {
if returns.Len() != 2 {
return "", NewOperationReturnCountUnmatchedError(2)
}
Method interfaceMethodParser.parseFindTop
has 5 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) parseFindTop(tokens []string) (int, []string,
error) {
if len(tokens) >= 1 && tokens[0] == "Top" {
if len(tokens) < 2 {
Method interfaceMethodParser.parseInsertOperation
has 5 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) parseInsertOperation(tokens []string) (Operation, error) {
mode, err := p.extractInsertReturns(p.Signature.Results())
if err != nil {
return nil, err
}
Method interfaceMethodParser.extractModelOrSliceReturns
has 5 return statements (exceeds 4 allowed). Open
Open
func (p interfaceMethodParser) extractModelOrSliceReturns(returns *types.Tuple) (QueryMode, error) {
if returns.Len() != 2 {
return "", NewOperationReturnCountUnmatchedError(2)
}