-
Notifications
You must be signed in to change notification settings - Fork 0
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 ktlint configuration and remove baselines because we don't need them anymore #55
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful 💯
.editorconfig
Outdated
@@ -19,22 +19,19 @@ trim_trailing_whitespace = true | |||
insert_final_newline = true | |||
|
|||
# To override IDEA default 120 columns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't matter much but comment does not seems to have any sense after the change. Is 120 default value? Could we remove that at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like 120 is default value for AndroidStudio, but default is 100 for ktlint.
I'll remove the comment since it doesn't make sense anymore.
model/build.gradle.kts
Outdated
@@ -7,6 +7,10 @@ plugins { | |||
id("kotlinx-serialization") | |||
} | |||
|
|||
ktlint { | |||
android.set(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it do? What is so special about android for the multiplatform project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh this shouldn't be there. I was testing some stuff, but I don't think we need it. I'll remove it.
32506f1
.editorConfig
withktlint_code_style = android_studio
. This fixed most of the lint issues../gradlew ktlintFormat