---
title: "lint/refactor/remove-attribute"
pagination: false
---

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

<RuleId id="lint/refactor/remove-attribute" />

Not in any set. Safe fix.

## What it does

Removes configured attributes by their respective FQN.

## Configuration

```toml title="pun.toml"
[lint.rules]
"refactor/remove-attribute" = "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 |
| --- | --- | --- | --- | --- |
| `attributes` | `list` | Any | `[]` | `attributes` |

## Replaces

- [`general_attribute_remove`](https://cs.symfony.com/doc/rules/attribute_notation/general_attribute_remove.html) (php-cs-fixer)

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