fantomas-tool 4.1.0

This library aims at formatting F# source files based on a given configuration.
Fantomas will ensure correct indentation and consistent spacing between elements in the source files.
Some common use cases include
(1) Reformatting a code base to conform a universal page width
(2) Converting legacy code from verbose syntax to light syntax
(3) Formatting auto-generated F# signatures.

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global fantomas-tool --version 4.1.0
This package contains a .NET Core Global Tool you can call from the shell/command line.

Release Notes

Ignore files by `.fantomasignore` file. [#420](https://github.com/fsprojects/fantomas/issues/420)
Limit trivia by AST MainNode name. [#992](https://github.com/fsprojects/fantomas/pull/992)
Lead by example. [#666](https://github.com/fsprojects/fantomas/issues/666)
Verify all unit test whether the formatted code is valid. [#842](https://github.com/fsprojects/fantomas/issues/842)
Fix Comments get dropped from the end of multi-line records. [#1124](https://github.com/fsprojects/fantomas/issues/1124)
Fix Functions in nested modules which follow a type consisting of only one member of a DU are un-nested from that module. [#1123](https://github.com/fsprojects/fantomas/issues/1123)
Fix After discriminated union in module wrongly indented. [#1122](https://github.com/fsprojects/fantomas/issues/1122)
Fix Extra whitespace with a type which has an attribute. [#1116](https://github.com/fsprojects/fantomas/issues/1116)
Fix Adds newline between comments and (all but the first) attribute. [#1108](https://github.com/fsprojects/fantomas/issues/1108)
Fix Extra whitespace lines added in fsi files at the end of a nested module declaration. [#1105](https://github.com/fsprojects/fantomas/issues/1105)
Fix Extra new line is added before attributes. [#1097](https://github.com/fsprojects/fantomas/issues/1097)
Fix Comments after closing brace are lost. [#1096](https://github.com/fsprojects/fantomas/issues/1096)
Fix Comment after Or operator lost. [#1095](https://github.com/fsprojects/fantomas/issues/1095)
Fix Trivia before bar is being repeated. [#1083](https://github.com/fsprojects/fantomas/issues/1083)
Fix Comment after arrow is being duplicated. [#1082](https://github.com/fsprojects/fantomas/issues/1082)
Fix Allow line break after return to avoid excessive indenting/aligning. [#1062](https://github.com/fsprojects/fantomas/issues/1062)
Fix Name of static members are removed/empty. [#1059](https://github.com/fsprojects/fantomas/issues/1059)
Fix When using parenthesis in type definition it will sometimes keep adding additional () for each time fantomas i run. [#1057](https://github.com/fsprojects/fantomas/issues/1057)
Fix Multiline string in use expression. [#1055](https://github.com/fsprojects/fantomas/issues/1055)
Fix Issue #246 has returned in v4.0.0. [#1051](https://github.com/fsprojects/fantomas/issues/1051)
Fix Indentation after multiple hash directives is off. [#1026](https://github.com/fsprojects/fantomas/issues/1026)
Fix if/then/else indented too far. [#1054](https://github.com/fsprojects/fantomas/issues/1054)
Fix Single AST node should contain trivia. [#1031](https://github.com/fsprojects/fantomas/issues/1031)
Fix Formatter adds extra newlines between type and any subsequent val in .fsi files. [#1029](https://github.com/fsprojects/fantomas/issues/1029)
Fix Comments in if/then/else statements are sometimes deleted. [#1019](https://github.com/fsprojects/fantomas/issues/1019)
Fix Moves type name around when writing constrained type defintions. [#1018](https://github.com/fsprojects/fantomas/issues/1018)
Fix Line break before bracket on long method call followed by member access causes semantic change. [#994](https://github.com/fsprojects/fantomas/issues/994)
Fix Long union case should be split over multiple lines. [#972](https://github.com/fsprojects/fantomas/issues/972)
Fix FSI formatting does the wrong thing with comments on single-case DU. [#965](https://github.com/fsprojects/fantomas/issues/965)
Fix Invalid unit test ``should break lines on multiline if conditions``. [#863](https://github.com/fsprojects/fantomas/issues/863)
Fix Abstract member declarations don't follow page width. [#435](https://github.com/fsprojects/fantomas/issues/435)

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
4.4.0-beta-002 0 1/23/2021
4.4.0-beta-001 20 1/22/2021
4.4.0-alpha-008 50 1/15/2021
4.4.0-alpha-007 517 12/26/2020
4.4.0-alpha-006 71 12/25/2020
4.4.0-alpha-005 63 12/23/2020
4.4.0-alpha-004 35 12/22/2020
4.4.0-alpha-003 75 12/18/2020
4.4.0-alpha-002 42 12/17/2020
4.4.0-alpha-001 54 12/17/2020
4.3.0 574 12/17/2020
4.3.0-beta-002 85 12/11/2020
4.3.0-beta-001 58 12/7/2020
4.3.0-alpha-007 90 11/21/2020
4.3.0-alpha-006 89 11/20/2020
4.3.0-alpha-005 70 11/16/2020
4.3.0-alpha-004 64 11/12/2020
4.3.0-alpha-003 57 11/10/2020
4.3.0-alpha-002 87 10/26/2020
4.3.0-alpha-001 305 10/23/2020
4.2.0 1,478 9/25/2020
4.2.0-alpha-004 197 9/23/2020
4.2.0-alpha-003 87 9/21/2020
4.2.0-alpha-002 131 9/19/2020
4.2.0-alpha-001 115 9/18/2020
4.1.1 669 9/17/2020
4.1.0 225 9/10/2020
4.1.0-beta-004 176 9/5/2020
4.1.0-beta-003 157 9/4/2020
4.1.0-beta-002 126 9/4/2020
4.1.0-beta-001 113 9/3/2020
4.1.0-alpha-001 118 9/1/2020
4.0.0 1,662 8/27/2020
4.0.0-beta-003 90 8/21/2020
4.0.0-beta-002 689 8/7/2020
4.0.0-beta-001 389 7/20/2020
4.0.0-alpha-014 176 7/14/2020
4.0.0-alpha-013 111 7/11/2020
4.0.0-alpha-012 443 7/6/2020
4.0.0-alpha-011 107 6/25/2020
4.0.0-alpha-010 106 6/18/2020
4.0.0-alpha-009 106 6/12/2020
4.0.0-alpha-008 132 6/2/2020
4.0.0-alpha-007 102 6/1/2020
4.0.0-alpha-006 180 5/23/2020
4.0.0-alpha-005 319 5/16/2020
4.0.0-alpha-004 639 5/4/2020
4.0.0-alpha-003 178 5/3/2020
4.0.0-alpha-002 117 4/26/2020
4.0.0-alpha-001 119 4/20/2020
3.3.0 4,274 2/28/2020
3.3.0-beta-002 727 2/21/2020
3.3.0-beta-001 215 2/18/2020
3.2.0 935 2/3/2020
3.2.0-beta-002 411 1/7/2020
3.2.0-beta-001 191 12/26/2019
3.1.0 7,457 11/27/2019
3.0.0 546 10/11/2019
3.0.0-beta-006 160 10/2/2019
3.0.0-beta-005 148 9/27/2019
3.0.0-beta-004 150 9/18/2019
3.0.0-beta-003 168 9/13/2019
3.0.0-beta-002 504 7/20/2019
3.0.0-beta-001 209 7/12/2019
2.9.2 5,428 2/2/2019
2.9.1 807 11/20/2018
2.9.0 448 10/17/2018
2.8.1 378 9/12/2018
2.8.0 426 7/7/2018
Show less