---
title: "rector/rector-preset set"
pagination: false
---

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

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

```toml
[lint]
sets = ["rector/rector-preset"]
```

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 (4)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/dead-code/no-redundant-node-instanceof`](/docs/rules/lint/dead-code/no-redundant-node-instanceof) | `RemoveRefactorDuplicatedNodeInstanceCheckRector` | Ported |
| [`lint/phpunit/add-see-test-tag`](/docs/rules/lint/phpunit/add-see-test-tag) | `AddSeeTestAnnotationRector` | Ported |
| [`lint/phpunit/require-final-test-case`](/docs/rules/lint/phpunit/require-final-test-case) | `FinalizeTestCaseClassRector` | Ported |
| [`lint/types/add-refactor-param-phpdoc`](/docs/rules/lint/types/add-refactor-param-phpdoc) | `AddParamTypeToRefactorMethodRector` | Ported |
