Examine possible usage of Fantomas

Open
#668 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
fsharp
Domain
tooling

Research direction

Start by reviewing the repository's F# generator code, test suites, examples, and stub implementations, then read Fantomas's CLI/API documentation and the referenced integration article. Done means determining whether Fantomas is useful and documenting or implementing a chosen integration approach, including any required generator formatting changes.

Written by the indexing model from the issue text.

Description

The Fantomas library allows one to format F# code using a pre-defined set of coding guidelines. We should investigate to see if it is useful to integrate Fantomas in our projects. I can envision two approaches:

  1. Use the CLI tool to format all of the F# code in this repository: https://github.com/fsprojects/fantomas#command-line-tool--api. This means that not only will our test generator code be consistently formatted, all the tests suites, example and stub implementations will also have the same formatting, which is beneficial for students. Note: this may require some changes to the format in which the generator outputs the test suites, to have it conform to the Fantomas style.
  2. Add Fantomas as a CLI tool reference to each exercise's project: https://blog.nojaf.com/2018/05/03/fantomas-rejuvenated/ This will give students the ability to quickly format their code.
Dominant language
F#
Stars
118
Forks
113
Avg merge
2d 12h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/fsharp

All issues in exercism/fsharp

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.