-
Notifications
You must be signed in to change notification settings - Fork 459
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
Custom FormatterStep with native dependencies #475
Comments
This is definitely possible. You can see it discussed in some detail here: The only hard limitation imposed by spotless is |
I can deal with the Function issue. It looks like #119 was about not having to shell out to the system for every call. I still don't know how you guys want native dependencies packaged (and for how many OSes), but do you anticipate shelling out to the system to adversely degrade performance (if clang-format can do stdio without files)? |
One option is to find it on the system. Search the path or ask the user to specify explicitly, both are fine. Another option is for Spotless to download and extract the executable itself, which I'm also fine with. However it is packaged, it's important that the executable have its
I'm sure that shelling to clang-format will be workable at worst, and probably it will feel plenty fast-enough. If it turns out to be slow, we can optimize it later, either by adding a "batch-file-call" functionality to Spotless, or by adding "daemon-mode" to |
An excellent suggestion @carbotaniuman! I implemented infrastructure for this in #672, and used |
I'm looking to add a Clang-Format formatter step, but it requires a native exe file, which nothing else seems to need. Is there any way I can get Spotless to interface with a native formatter?
The text was updated successfully, but these errors were encountered: