Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for .fantomasignore file. #1060

Merged
merged 14 commits into from
Sep 1, 2020
Merged

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Aug 31, 2020

After talking to @drhumlen on the F# slack, I had a change of heart when it comes to ignoring files.
This PR would add initial support to ignore files using a .fantomasignore file.
The feature would be available in Fantomas.Extras, so usable with our command line tool and the FAKE helpers.

The format of the ignore file is based on .gitignore and parsed by MAB.DotIgnore.

To start with, I'd like to add the most basic scenario first: a top-level .fantomasignore file and the entry point of formatting is also in that same working directory. Meaning running dotnet fantomas at the same root level of the ignore file.

Fixes #420.

Todo:

  • Add documentation
  • Setup 4.1 alpha release

@nojaf nojaf marked this pull request as ready for review September 1, 2020 16:16
@nojaf nojaf merged commit cd4cefc into fsprojects:master Sep 1, 2020
@nojaf nojaf deleted the fix-420 branch September 1, 2020 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blacklist files or code blocks
1 participant