Skip to content
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

Upgrade ktlint-gradle #914

Merged
merged 4 commits into from
Apr 5, 2023
Merged

Upgrade ktlint-gradle #914

merged 4 commits into from
Apr 5, 2023

Conversation

michael-markl
Copy link
Member

@michael-markl michael-markl commented Apr 1, 2023

I noticed some difference in kotlin formatting in our local setups throughout the past PRs.

This upgrades ktlint-gradle and e.g. forces the omission of trailing comma, etc.

@michael-markl michael-markl changed the title Adjust ktlint Upgrade ktlint-gradle Apr 1, 2023
@michael-markl michael-markl marked this pull request as ready for review April 1, 2023 14:25
@f1sh1918
Copy link
Contributor

f1sh1918 commented Apr 3, 2023

I noticed some difference in kotlin formatting in our local setups throughout the past PRs.

This upgrades ktlint-gradle and e.g. forces the omission of trailing comma, etc.

whats the benefit in omission of leading commas?

@michael-markl
Copy link
Member Author

Feel free to merge whenever you feel like it (I dont want to create too many conflicts with this right now) :D

@michael-markl
Copy link
Member Author

whats the benefit in omission of leading commas?

Imo, there's no benefit in having them vs not having them. It's just the default. Having a rule that enforces one or the other is good, so random code style adjustments don't clutter PRs.

# Conflicts:
#	backend/src/main/kotlin/app/ehrenamtskarte/backend/application/database/Setup.kt
#	backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/database/Setup.kt
#	backend/src/main/kotlin/app/ehrenamtskarte/backend/projects/database/Setup.kt
@michael-markl michael-markl enabled auto-merge April 5, 2023 09:12
@michael-markl michael-markl merged commit 79f97cb into main Apr 5, 2023
@michael-markl michael-markl deleted the adjust-ktlint branch April 5, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants