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

Bump ktlint to version 0.46.1 #5044

Merged
merged 6 commits into from Jul 18, 2022

Conversation

kvn-stgl
Copy link
Contributor

@kvn-stgl kvn-stgl commented Jul 7, 2022

See https://github.com/pinterest/ktlint/releases/tag/0.46.0 and https://github.com/pinterest/ktlint/releases/tag/0.46.1 for full release notes.

This PR is part of the ktlint upgrade to version 0.46. See #5040

It includes:

Closes #5022

@@ -7,7 +7,8 @@
* You need kotlin 1.3.70+ installed on your machine
*/

@file:Suppress("detekt.CommentSpacing") // for the exec line
// for the exec line
@file:Suppress("detekt.CommentSpacing")
Copy link
Member

Choose a reason for hiding this comment

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

🤔 this change seems a bit odd, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it seems odd. I'm not sure whether we have a false positive here or not. The problem is the AnnotationOnSeparateLineRule rule from detekt: /home/runner/work/detekt/detekt/scripts/github-milestone-report.main.kts:10:1: Annotations with parameters should all be placed on separate lines prior to the annotated construct [AnnotationOnSeparateLine]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wrote a bug ticket at the ktlint project to fix this issue: pinterest/ktlint#1539

@BraisGabin
Copy link
Member

Thank you for split it :) this was way way easier to review :)

@BraisGabin BraisGabin merged commit 22e8aa0 into detekt:main Jul 18, 2022
@kvn-stgl kvn-stgl deleted the feat/bump-ktlint-0461-without-rules branch July 20, 2022 07:02
VitalyVPinchuk pushed a commit to VitalyVPinchuk/detekt that referenced this pull request Jul 25, 2022
* Bump ktlint to v0.46.1

* add NoBlankLinesInChainedMethodCalls.kt rule

* set ActiveByDefault to 1.22.0

* fix various detekt issues

* fix review notes

* fix AnnotationOnSeparateLine in github-milestone-report.main.kts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update ktlint to 0.46.1
2 participants