Skip to content

Conversation

@wlhlm
Copy link
Member

@wlhlm wlhlm commented Oct 15, 2025

While @Kynake was working on a port of BetterFoliage to our buildscripts they noticed that our kotlin formatting settings weren't working. It turned out that indentWithSpaces didn't seem to take effect. Instead, we move that setting into the formatter directly. Switch to ktlint for java 8 compatibility. This should be fine as we currently have 2.5 or so mods with kotlin in them.

This also updates the targeted files for kotlin as for example BetterP2P has them in src/main/java.

It turned out, these weren't working quite right as the indentation settings weren't taking effact.

Switch to ktlint for j8 compat.
@Dream-Master Dream-Master requested a review from a team October 15, 2025 10:04
Copy link
Member

@glektarssza glektarssza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Seems to work fine in my IDE as well (VSCode). 🚢!

@Dream-Master Dream-Master merged commit 62dc771 into master Oct 30, 2025
1 check passed
@Dream-Master Dream-Master deleted the fix-kotlin-spotless branch October 30, 2025 14:54
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.

4 participants