---
title: "lint/functions/no-missing-format-argument"
pagination: false
---

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

<RuleId id="lint/functions/no-missing-format-argument" />

In the [`code-quality`](/docs/rules/sets/code-quality) set. Report only. Intent: correctness.

## What it does

Detects `sprintf`-style format calls where the number of placeholders

## Configuration

```toml title="pun.toml"
[lint.rules]
"functions/no-missing-format-argument" = "error"
```

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

## Replaces

- [`no-missing-format-argument`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-missing-format-argument) (mago-linter)

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