-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Blacklist files or code blocks #420
Comments
Are you thinking of something like a |
I think something like
code block that will be ignored by fantomas
will be good addition. |
I would prefer that the comment marks the entire file as not to be formatted. |
Hi @isaacabraham, we are thinking about introducing a new directive that we always add when we format the code. That way we can ignore the block that negates this directive. For example: #if !FANTOMAS
let foo = 42 // Never going to be formatted
#endif Would such a thing work for you? Then I theory you could have pieces of a file that is not being formatted. |
I would love to have a |
I published a first version with the new |
If one reaches a file that Fantomas can't handle for whatever reason, currently you're just "stuck" (unless you maintain a specific list of "good" files). Is there a way to provide a list of files that fantomas should ignore?
Alternatively, is there perhaps a way that one could have fantomas ignore specific blocks of code in a file?
The text was updated successfully, but these errors were encountered: