---
title: "format/operators/no-useless-concat"
pagination: false
---

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

<RuleId id="format/operators/no-useless-concat" />

Not in any preset. Safe fix.

## What it does

There should not be useless concat operations.

## Configuration

```toml title="pun.toml"
[format.rules]
"operators/no-useless-concat" = true
```

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

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `juggle-simple-strings` | `bool` | Any | `false` | `juggle_simple_strings` |

## Replaces

- [`no_useless_concat_operator`](https://cs.symfony.com/doc/rules/operator/no_useless_concat_operator.html) (php-cs-fixer)
- [`no-redundant-string-concat`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-redundant-string-concat) (mago-linter)

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