-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
XML docs for commented code automatically removed #2186
Comments
Hey Sergey, this is a tricky one. |
It was in the middle of the large file - fsprojects/FsUnit@e60510c#diff-badc17ff44c87f5563ad36766e8d42f4dfdb140433e680a9d82c439136af9066L28-L33 I think that it would ok to produce warning in console and skip file from formatting (if it is possible) |
It doesn't sound like a thing that a formatter should do to me, to be honest. Could Fantomas just print them as is, maybe? |
We don't plan to detect them anymore like we used to do. They are part of the untyped tree unless placed in the wrong location, and then we just don't know about them. There is no "print them as is", we don't know about them in the first place. If you commented out the type, you should have taken the triple slashes into account as well while doing it. |
We could add the wrongly placed comments to that collection too, perhaps? :) |
Maybe, if we can push the information of to the @DedSec256 any ideas? |
Yes, this seems like a good solution to the problem. |
Issue created from fantomas-online
Code
Result
// type TestUnion = First | Second of int | Third of string
Problem description
Ideally Fantomas should not remove comments during formatting
Extra information
Options
Fantomas master branch at 2022-04-01T14:31:49Z - b6828ff
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: