---
title: "lint/performance/require-qualified-native-function"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/performance/require-qualified-native-function" />

Not in any set. Unsafe fix: it can change behaviour.

## What it does

Add leading `\` before function invocation to speed up resolving.

## Configuration

```toml title="pun.toml"
[lint.rules]
"performance/require-qualified-native-function" = "error"
```

To skip it in some files, add an [override](/docs/configuration/pun-toml#lint) or a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `exclude` | `list` | Any | `[]` | `exclude` |
| `include` | `list` | Any | `["@compiler_optimized"]` | `include` |
| `scope` | `enum` | `all`, `namespaced` | `"all"` | `scope` |
| `strict` | `bool` | Any | `true` | `strict` |

## Replaces

- [`native_function_invocation`](https://cs.symfony.com/doc/rules/function_notation/native_function_invocation.html) (php-cs-fixer, risky)

[More lint/performance rules](/docs/rules/lint/performance) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
