Skip to content

Migrate to ktlint 0.47.0#24

Merged
mrmans0n merged 3 commits intomainfrom
update-ktlint-to-0.47.0
Aug 30, 2022
Merged

Migrate to ktlint 0.47.0#24
mrmans0n merged 3 commits intomainfrom
update-ktlint-to-0.47.0

Conversation

@mrmans0n
Copy link
Copy Markdown
Contributor

@mrmans0n mrmans0n commented Aug 30, 2022

There are a bunch of breaking API changes in the newest version of ktlint. Basically all rulesets need to be redefined. In 0.47.0 versions the previous ruleset versions coexist with the newers, so I added support for both in the mean time. In the future, the previous version of the rulesets will disappear. Also, undocumented by the migration guide, but all tests changed the way in which the assertThat classes are created, so I also updated all the tests to support the new version.

Spotless is not yet compatible with 0.47.0, so I am targeting the previous version for this own repo checks until it is (will likely land soon).

I also updated all dependencies.

There are a bunch of [breaking API changes](https://github.com/pinterest/ktlint/releases/tag/0.47.0) in the newest version of ktlint. Basically all rulesets need to be redefined. In 0.47.0 versions the previous ruleset versions coexist with the newers, so I added support for both in the mean time. In the future, the previous version of the rulesets will disappear. Also, undocumented by the migration guide, but all tests changed the way in which the assertThat classes are created, so I also updated all the tests to support the new version.

Spotless is not yet compatible with 0.47.0, so I disabled the checks until it is (will likely [land soon](diffplug/spotless#1303)).

I also updated all dependencies.
@mrmans0n mrmans0n merged commit 3e15800 into main Aug 30, 2022
@mrmans0n mrmans0n deleted the update-ktlint-to-0.47.0 branch August 30, 2022 09:40
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.

2 participants