audit_formatting
Audit React, React Native, Vue, and Flutter source for hardcoded currency, number, percentage, date, and time formatting, then automatically migrate issues to Intl or Flutter formatters.
Instructions
Audits project source code (React, React Native, Vue, Flutter) for hardcoded currency concatenations, unlocalized numbers (.toFixed()), raw percentage signs, and unparameterized date/time calls (.toLocaleDateString()), with automated logical migration using Intl or package:intl.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | If true, automatically fixes formatting issues using Intl or Flutter formatters. | |
| scope | No | Optional list of relative paths, files, or folders to limit formatting audit to. | |
| dryRun | No | If true (default when fix is true), previews changes via unified diff without modifying files. | |
| exclude | No | Optional glob patterns of files to exclude from formatting audit. | |
| include | No | Optional glob patterns of files to include in formatting audit. | |
| categories | No | Categories to audit: 'CURRENCY', 'NUMBER', 'PERCENTAGE', 'DATE', 'TIME'. Defaults to all. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. |