bigbone
bigbone copied to clipboard
Create an IntelliJ code style / code formatting config
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.
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
Hello @PattaFeuFeu Thanks for the feedback. Will try to fix this asap. Cheers
@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?
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.