bigbone icon indicating copy to clipboard operation
bigbone copied to clipboard

Create an IntelliJ code style / code formatting config

Open andregasser opened this issue 2 years ago • 4 comments

The default IntelliJ formatting rules for Kotlin code deviate in some places from what we have in this project:

  • Project does not allow star imports, IntelliJ formatter reformats code to use star imports (see https://github.com/andregasser/bigbone/pull/270#pullrequestreview-1672428476)

We should create an IntelliJ code formatting config for Kotlin that is automatically loaded by IntelliJ once the project loads.

andregasser avatar Oct 11 '23 20:10 andregasser

Project does not allow star imports, IntelliJ formatter reformats code to use star imports

Just checked: gradle check does not raise any issues with star imports

PattaFeuFeu avatar Oct 12 '23 00:10 PattaFeuFeu

Hello @PattaFeuFeu Thanks for the feedback. Will try to fix this asap. Cheers

andregasser avatar Oct 12 '23 17:10 andregasser

@PattaFeuFeu Do we have an important need for this - especially since we've introduced ktlint? If not, I suggest we close this and focus on more important topics for now. Any objections?

andregasser avatar Oct 27 '23 08:10 andregasser

Let me check again when working on a larger task. Then I should notice any oddities in the auto-formatter.

But either way I wouldn’t mind this ticket staying open. It’s not like an open ticket is keeping us from working on other tasks. 😊 If someone is in a mood to pick this up, they can still do that at any point in the future.

PattaFeuFeu avatar Oct 27 '23 10:10 PattaFeuFeu