chore(ktlint): bump ktlint to 0.45.1 / spacing changes w/new version #10608
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request template
Purpose / Description
Bump underlying version of ktlint in order to access this memory fix: pinterest/ktlint#1216
Fixes
Fixes #10242 (well, should fix it for real, can reopen I guess, if not)
Approach
spacing changes were produced automatically using the new version on the
command line with
-F
argument to auto-fix spacing to conform with newversion of the tool.
It has to be changed at same time as the version since ktlint actually changed it's behavior
How Has This Been Tested?
I ran ktlint a few times from the command line and it seemed fine?
I verified via
./gradlew :AnkiDroid:dependencies |grep ktlint
that it was pullingn 0.42.1 before this change and is getting 0.45.1 now.Learning (optional, can help others)
Allowing version overrides on transitive dependencies is really helpful if you make things transitively dependent on consumers of your project. Thanks gradle ktlint plugin :-)
Checklist
Please, go through these checks before submitting the PR.
if
statements)