> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-LINT-0007: Function has more parameters than the policy limit.

> Function has more parameters than the policy limit.

`SIFR-LINT-0007` belongs to the **Policy linting** diagnostic family. It means: function has more parameters than the policy limit.

## Why It Happens

A suppressible policy rule fired, or a suppression itself is malformed. Fix the policy issue or make the suppression exact and local.

<Info>
  Use `sifr --explain SIFR-LINT-0007` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
# sifr: ignore
def f(flag: bool):
    pass

f(True)
```

## How To Fix It

Fix the policy issue when possible. If suppression is intentional, list the exact policy rule id and keep it local.

## Fixed Code

```python theme={null}
# sifr: ignore SIFR-LINT-0006
def f(flag: bool):
    pass

f(flag=True)
```

## Details

| Field                  | Value                                                                                           |
| ---------------------- | ----------------------------------------------------------------------------------------------- |
| Code                   | `SIFR-LINT-0007`                                                                                |
| Family                 | `LINT`                                                                                          |
| Severity               | Warning                                                                                         |
| Stability              | stable                                                                                          |
| Owner                  | `sifr_lint::rules::large_parameter_list`                                                        |
| Representative fixture | `crates/sifr_lint/src/rules/large_parameter_list.rs::large_parameter_list_reports_hir_function` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
