-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Specify --mode diff when using plugin #109
Comments
Hello! Sadly, there is a global problem with it. Duplicated issue #18, related issue: #11 Code for handling |
@poslegm I see, thanks for the explanation. I have a follow up question: there are already some runner params that work from the scalafmt file, e.g. |
It's a name collision. |
@poslegm would this help: scalameta/scalafmt#2871? |
Yes! Thank you. I will try to use it in the plugin soon. |
Hi, we're using this plugin in our org and recently updated from 1.2.0 to the latest version.
This led to very large scalafmt diffs, and we'd prefer to catch up incrementally over time.
It seems that the scalafmt CLI lets you specify
--mode diff
which will only apply scalafmt to the files that are diffed against the main/master branch.Is there a way to specify this flag in the plugin?
If not, I'd be happy to try to contribute the change, but would appreciate some direction.
For example, is the plugin the right place to put this? Maybe it actually belongs in the .scalafmt.conf file, in which case the change should occur in the main scalafmt repo?
The text was updated successfully, but these errors were encountered: