---
title: "rector/named-args set"
pagination: false
---

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

Rector's `named-args` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[lint]
sets = ["rector/named-args"]
```

A rule merged from several Rector rules runs only the rewrites of this set's Rector rules, unless a [preset](/docs/configuration/presets#lint-presets) also turns it on. Rector rules that are format rules in Pun run under `[format]` instead. Laravel, Pest, and PHPUnit rules also need their [extension](/docs/configuration/pun-toml#extensions).

## Rules (6)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/complexity/require-attribute-argument-order`](/docs/rules/lint/complexity/require-attribute-argument-order) | `SortAttributeNamedArgsRector` | Ported |
| [`lint/complexity/require-named-argument-order`](/docs/rules/lint/complexity/require-named-argument-order) | `SortCallLikeNamedArgsRector` | Ported |
| [`lint/dead-code/no-redundant-default-argument`](/docs/rules/lint/dead-code/no-redundant-default-argument) | `RemoveNullNamedArgOnNullDefaultParamRector` | Ported |
| [`lint/functions/add-attribute-argument-names`](/docs/rules/lint/functions/add-attribute-argument-names) | `ExplicitAttributeNamedArgsRector` | Ported |
| [`lint/functions/add-boolean-argument-name`](/docs/rules/lint/functions/add-boolean-argument-name) | `AddNameToBooleanArgumentRector` | Ported |
| [`lint/functions/add-null-argument-name`](/docs/rules/lint/functions/add-null-argument-name) | `AddNameToNullArgumentRector` | Ported |
