-
-
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
Move editor config to library rather than tool #3031
Comments
Hi there, First reaction: I'm against this. I don't think it is worth it. Or course, since I'm gonna let @dawedawe and @josh-degraw decide on this one! |
Fair enough - it's just an aesthetic preference, nothing more! Happy to close if you like. |
Yeah I'm inclined to agree with Florian at least about the case where generated files should be ignored. But I can totally see value in having the editorconfig parser available outside the tool fwiw. But right now I'd say without a stronger use case I'd prefer to leave things as they are. |
Hey, sorry for the late reply, I took a few days off from GitHub. |
Alright, let's leave this one open for a while. Maybe some other real-world use-cases show up. |
Happy to close it as won't-fix! |
In consumers such as Myriad, it would be nice if we could automatically read the editorconfig appropriate to the files we want to write out, and use that directly, rather than writing out with no config and then forcing the user to reformat with a manual invocation of
fantomas
.This would be pretty easy to do, I'd say: we just need to move the
EditorConfig
files to Fantomas.Core, so that consumers can use them.Definition of done: a user can call
EditorConfig.readConfiguration
, after having automatically located the correct.editorconfig
file using the same mechanism that Fantomas uses.I'd be happy to implement this if we think it's desirable.
Pros and Cons
The advantages of making this adjustment to Fantomas are:
fantomas
after a Myriad invocation.The disadvantages of making this adjustment to Fantomas are:
editorconfig
NuGet package.Extra information
Estimated cost (XS, S, M, L, XL, XXL): XS
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: