---
name: fsharp-fantomas
description: "Use when adopting Fantomas to assess this standard: Verify F# formatting in CI"
---

# Apply Fantomas

Keep a local tool manifest and choose a formatting profile. Check scripts and source files on supported platforms with the same tool version.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Fantomas.
2. Use Fantomas in this repository to meet this standard: Verify F# formatting in CI. Keep a local tool manifest and choose a formatting profile. Check scripts and source files on supported platforms with the same tool version. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://fsprojects.github.io/fantomas/) for configuration and prerequisites.

## Tool invocation

```
dotnet fantomas --check .
```
