Skip to content
New issue

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

Reorder open statements adds duplicates in hash directive #644

Closed
nojaf opened this issue Jan 21, 2020 · 1 comment
Closed

Reorder open statements adds duplicates in hash directive #644

nojaf opened this issue Jan 21, 2020 · 1 comment

Comments

@nojaf
Copy link
Contributor

nojaf commented Jan 21, 2020

Issue created from fantomas-ui

There are more open statements in #if directive after formatting.

Code

module TriviaTool.Client.App

open Elmish
open Elmish.React
open TriviaTool.Client

#if DEBUG
open Elmish.Debug
open Elmish.HMR
#endif

Program.mkProgram State.init State.update View.view
#if DEBUG
|> Program.withConsoleTrace
#endif
|> Program.withReactBatched "elmish-app"
|> Program.run

Result

module TriviaTool.Client.App

open Elmish
open Elmish.React
open TriviaTool.Client

#if DEBUG
open Elmish.Debug
open Elmish.HMR
open Elmish.React
open TriviaTool.Client
#endif

Program.mkProgram State.init State.update View.view
#if DEBUG
|> Program.withConsoleTrace
#endif
|> Program.withReactBatched "elmish-app"
|> Program.run

Options

Fantomas 3.1.0

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter true
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration true
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false
@nojaf
Copy link
Contributor Author

nojaf commented Feb 2, 2020

Won't fix since ReorderOpenDeclaration will be phased-out.

@nojaf nojaf closed this as completed Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant