---
title: "function-result-limit"
description: "Limit function result count."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# function-result-limit

**Default severity:** `warning`

Limit function result count.

## Bad

```go
func Parse() (Value, Metadata, Warnings, error)
```

## Good

```go
func Parse() (Value, error)
```

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `max-results` | `int` | `3` | Maximum number of result values allowed on a function. |

```toml
[checks.function-result-limit]
max-results = 3
```

Source: https://strider.gempir.com/lints/function-result-limit/index.mdx
