-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fix code formatting with ktfmt
(fixes #304)
#330
Conversation
ktfmt
ktfmt
(fixes #304)
We're vendoring
While this is non-ideal, it's currently the best solution I could find that works for our setup. A better solution would be to automate this as part of our Gradle build (i.e. rewrite the package paths and replace the transitive |
@fwcd Just being curious: given the context in the official thread, what would possibly be the downside if we also switch to I'm trying my best to get familiar with the current codebase, please inform me if I missed anything :) |
We tried this and it didn't work since there were other dependencies which needed the non-embedded compiler and didn't have an embedded version themselves (I think it was the |
@fwcd However, due to the fact that the incoherent formatting might cause frequent merge conflicts, can we first merge what has been changed for now (if you agree, of course), and we will continue our discussion in another issue (#338)? Thanks a lot :) |
@fwcd So this got me thinking, maybe a better approach to get this merged is to first change all the configs without changing the actual formatting (probably need to disable the formatting check in I believe this could possibly reduce the number of conflicts for the authors of unmerged PRs at the moment. What do you think? cc @kievitsp from #318 (comment) |
Following previous discussion in #303 (comment), this PR is an attempt to resolve #304:
gradle ktfmtFormat
using the official style configuration:KOTLINLANG_FORMAT
:kotlin-language-server/server/src/main/kotlin/org/javacs/kt/formatting/Formatter.kt
Lines 15 to 19 in 55f58e8
gradle build
depend ongradle ktfmtCheck
.Questions
ktfmt
for this project?