You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFantomas.CoreGlobalTool.Tests.ConfigTestsopenNUnit.FrameworkopenFsUnitopenFantomas.CoreGlobalTool.Tests.TestHelpers[<Test>]let``config file in working directory should not require relative prefix,821`` ()=use fileFixture =new TemporaryFileCodeSample("let a = // foo 9")use configFixture =new ConfigurationFile("""[*.fs]indent_size=2""")let(exitCode,output)=
runFantomasTool fileFixture.Filename
exitCode |> should equal 0
output
|> should startWith (sprintf "Processing %s" fileFixture.Filename)letresult= System.IO.File.ReadAllText(fileFixture.Filename)
result
|> should equal """let a = // foo 9"""
Error
Fantomas was able to format the code but the result appears to be invalid F# code.
Please openan issue.
Formatted result:moduleFantomas.CoreGlobalTool.Tests.ConfigTestsopenNUnit.FrameworkopenFsUnitopenFantomas.CoreGlobalTool.Tests.TestHelpers[<Test>]let``config file in working directory should not require relative prefix,821`` ()=use fileFixture =new TemporaryFileCodeSample("let a = // foo 9")use configFixture =new ConfigurationFile("""[*.fs]indent_size=2""")let(exitCode,output)= runFantomasTool fileFixture.Filename
exitCode |> should equal 0
output
|> should startWith (sprintf "Processing %s" fileFixture.Filename)letresult=
System.IO.File.ReadAllText(fileFixture.Filename)
result
|> should equal """let a = // foo 9"""
Problem description
The closing parenthesis should be further indented:
use configFixture =new ConfigurationFile("""[*.fs]indent_size=2""")
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Error
Problem description
The closing parenthesis should be further indented:
Extra information
Options
Fantomas Master at 08/28/2020 16:24:22 - f997ed7
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: