Skip to content

Bump ktlint to version 0.46.1 #5044

Merged
BraisGabin merged 6 commits intodetekt:mainfrom
kvn-stgl:feat/bump-ktlint-0461-without-rules
Jul 18, 2022
Merged

Bump ktlint to version 0.46.1 #5044
BraisGabin merged 6 commits intodetekt:mainfrom
kvn-stgl:feat/bump-ktlint-0461-without-rules

Conversation

@kvn-stgl
Copy link
Copy Markdown
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


@file:Suppress("detekt.CommentSpacing") // for the exec line
// for the exec line
@file:Suppress("detekt.CommentSpacing")
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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