I have an issue where my files keep growing with empty space because every Fantomas run inserts yet another empty line.
Issue created from fantomas-online
Code
[<Fact>]
let ``solve should reject problem too large for backend`` () =
let backend: BackendAbstraction.IQuantumBackend = createLocalBackend () // Max 16 qubits
// 5 cities requires 5*5 = 25 qubits (exceeds limit)
let distances = Array2D.zeroCreate 6 6
let result = solveWithShots backend distances 100
match result with
| Error err ->
Assert.Contains("qubits", err.Message)
// Backend name should be in error message (type resolution issue prevents checking directly)
// Assert.Contains(backend.Name, err.Message)
| Ok _ -> Assert.True(false, "Should reject problem too large")
Result
[<Fact>]
let ``solve should reject problem too large for backend`` () =
let backend: BackendAbstraction.IQuantumBackend = createLocalBackend () // Max 16 qubits
// 5 cities requires 5*5 = 25 qubits (exceeds limit)
let distances = Array2D.zeroCreate 6 6
let result = solveWithShots backend distances 100
match result with
| Error err ->
Assert.Contains("qubits", err.Message)
// Backend name should be in error message (type resolution issue prevents checking directly)
// Assert.Contains(backend.Name, err.Message)
| Ok _ -> Assert.True(false, "Should reject problem too large")
Problem description
Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.
Extra information
Options
Fantomas main branch at 2026-09-21T07:05:24Z - 12bb5e6
Default Fantomas configuration
Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.
I have an issue where my files keep growing with empty space because every Fantomas run inserts yet another empty line.
Issue created from fantomas-online
Code
Result
Problem description
Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.
Extra information
Options
Fantomas main branch at 2026-09-21T07:05:24Z - 12bb5e6
Default Fantomas configuration
Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.