Skip to content

Adopt Fantomas code-formatter step by step in this repo #12119

@dsyme

Description

@dsyme

We should adopt and use the Fantomas code formatting tool step by step in this repo

  • trial on a small part of the repo, e.g. test projects
  • decide some reasonable Fantomas settings (e.g. an initial line width of 160 or 180 may make sense given the long lines used historically, especially in src\fsharp)
  • apply file by file, folder by folder
  • automate the application somehow, either an occasional job in CI, or as part of code check-in

This may be gated on updates to Fantomas

Separately we can make Fantomas available as the formatting action in the Visual F# tools

One reason this is on my mind is that I've been revising the F# code formatting guide today and checking step by step that the Fantomas code formatter aligns with the style guide. dotnet/docs#25972

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contributor PainEngineeringTheme-Simple-F#A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions