Skip to content

Format in pre-commit hook #1207

Closed
Closed
@nojaf

Description

As mentioned in https://twitter.com/rastreus/status/1321296796124143617?s=20, how can Fantomas be used as a precommit hook?

On top of my head I think the local dotnet tool can be used for this. However, as I find this a good question we should write something out in the documentation to explain this.

Also mention in the docs that .fantomasignore file exist in case Fantomas is not able to format the file for some reason.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions