We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue created from fantomas-ui
The = and Http.main ... should be on the next line.
=
Http.main ...
If the return type is declared, the behaviour is correct.
module FormatCode = open System.Net.Http let private format filename code config = let checker = Fantomas.FakeHelpers.sharedChecker.Force() let options = Fantomas.FakeHelpers.createParsingOptionsFromFile filename let source = SourceOrigin.SourceString code CodeFormatter.FormatDocumentAsync("tmp.fsx", source, config, options, checker) [<FunctionName("FormatCode")>] let run ([<HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "{*any}")>] req: HttpRequest) (log: ILogger) : Async<HttpResponseMessage> = Http.main CodeFormatter.GetVersion format FormatConfig.FormatConfig.Default log req
module FormatCode = let private format filename code config = let checker = Fantomas.FakeHelpers.sharedChecker.Force() let options = Fantomas.FakeHelpers.createParsingOptionsFromFile filename let source = SourceOrigin.SourceString code CodeFormatter.FormatDocumentAsync("tmp.fsx", source, config, options, checker) [<FunctionName("FormatCode")>] let run ([<HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "{*any}")>] req: HttpRequest) (log: ILogger) = Http.main CodeFormatter.GetVersion format FormatConfig.FormatConfig.Default log req
Fantomas Next - 3.3.0-3/26/2020
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
SemicolonAtEndOfLine
SpaceAfterComma
true
SpaceAfterSemicolon
SpaceAroundDelimiter
SpaceBeforeClassConstructor
SpaceBeforeColon
SpaceBeforeLowercaseInvocation
SpaceBeforeMember
SpaceBeforeParameter
SpaceBeforeSemicolon
SpaceBeforeUppercaseInvocation
StrictMode
The text was updated successfully, but these errors were encountered:
Add regression tests for long function signatures. fsprojects#740
f71af42
Add regression tests for long function signatures. #740 (#759)
700a00c
No branches or pull requests
Issue created from fantomas-ui
The
=
andHttp.main ...
should be on the next line.If the return type is declared, the behaviour is correct.
Code
Result
Options
Fantomas Next - 3.3.0-3/26/2020
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
false
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeClassConstructor
false
SpaceBeforeColon
false
SpaceBeforeLowercaseInvocation
true
SpaceBeforeMember
false
SpaceBeforeParameter
true
SpaceBeforeSemicolon
false
SpaceBeforeUppercaseInvocation
false
StrictMode
false
The text was updated successfully, but these errors were encountered: