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

Fix ktlint configuration and remove baselines because we don't need them anymore #55

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

nlam-atlassian
Copy link
Collaborator

  • Updated .editorConfig with ktlint_code_style = android_studio. This fixed most of the lint issues.
  • Added @Suppress where applicable, so that future porting of TS changes would be easy:
    • ktlint:standard:property-naming
    • ktlint:standard:max-line-length
    • ktlint:standard:discouraged-comment-location
  • Fixed remaining lint issues with ./gradlew ktlintFormat
  • Deleted baseline.xml files

doug-atlassian
doug-atlassian previously approved these changes Nov 1, 2024
Copy link
Collaborator

@doug-atlassian doug-atlassian left a 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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@@ -7,6 +7,10 @@ plugins {
id("kotlinx-serialization")
}

ktlint {
android.set(true)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

tchernykh
tchernykh previously approved these changes Nov 1, 2024
@nlam-atlassian nlam-atlassian merged commit 0d0aa26 into main Nov 4, 2024
2 checks passed
@nlam-atlassian nlam-atlassian deleted the nlam/ktlint branch November 4, 2024 03:29
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