Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Format F# code with Fantomas #769

Merged
merged 28 commits into from
Dec 12, 2020
Merged

Format F# code with Fantomas #769

merged 28 commits into from
Dec 12, 2020

Conversation

bamarsha
Copy link
Contributor

@bamarsha bamarsha commented Dec 7, 2020

This PR formats all F# code with Fantomas, using the default configuration except for a few changes. The configuration files changed are:

  • build/init.yml
  • build/steps.yml
  • .config/dotnet-tools.json
  • .editorconfig

The rest of the files are formatting changes only.

The Fantomas repo has some instructions for editor integration if you want to run it on your code. You can also run it from the command line with:

dotnet tool restore
dotnet tool run fantomas MyFile.fs

I did encounter some bugs in Fantomas, and a few of them caused comments to be deleted after formatting. The bugs were relatively rare compared to the total amount of code that was formatted, but it's probably a good idea to double-check that everything was formatted correctly and no comments were lost.

@bamarsha bamarsha marked this pull request as ready for review December 8, 2020 20:30
@bamarsha bamarsha linked an issue Dec 8, 2020 that may be closed by this pull request
@bettinaheim
Copy link
Contributor

Thanks for setting it up!

@github-actions github-actions bot merged commit ea1f8f0 into main Dec 12, 2020
@bamarsha bamarsha deleted the samarsha/fantomas branch December 12, 2020 02:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider using Coding Style and .editorconfig
2 participants