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 spotless(6.23.3 to 6.25.0) and ktlint(1.0.1 to 1.4.0) #1318

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

Jaehwa-Noh
Copy link
Contributor

@Jaehwa-Noh Jaehwa-Noh commented Mar 22, 2024

What I have done and why
Bump spotless(6.23.3 to 6.25.0) and ktlint(1.0.1 to 1.2.1) up

I just wonder why dependency bot doesn't care this dependency.

- spotless.
- ktlint.

Change-Id: I4a0d1b4089dd4882df4653303a52f07f2bf6771f
@SimonMarquis
Copy link
Contributor

Dependabot only checks for specific locations, and this is not using the standard Gradle version catalog.

@Jaehwa-Noh
Copy link
Contributor Author

I got it. Thank you!

gradle/init.gradle.kts Outdated Show resolved Hide resolved
@android android deleted a comment from Vladimir-cod Oct 29, 2024
gradle/init.gradle.kts Outdated Show resolved Hide resolved
@dturner dturner changed the title Bump spotless(6.23.3 to 6.25.0) and ktlint(1.0.1 to 1.2.1) Bump spotless(6.23.3 to 6.25.0) and ktlint(1.0.1 to 1.4.0) Oct 29, 2024
@dturner
Copy link
Collaborator

dturner commented Oct 29, 2024

The updated version of ktlint changes the formatting rules which causes the build to fail.

@Jaehwa-Noh Would you be able to take a look at how to disable the new rules so that our existing codebase isn't affected? This post might be useful: android/compose-samples#1443 (comment)

@Jaehwa-Noh
Copy link
Contributor Author

@dturner Okay, I'll get it as soon as possible.
I need a spare time.

Change-Id: I3331ade9f99effcf274880d87c48b00fcacfcc2b
Change-Id: Ib3e6e66d1774b39b5c92ec822308db107b070b82
@Jaehwa-Noh
Copy link
Contributor Author

Jaehwa-Noh commented Oct 31, 2024

@dturner
I'd removed new features all which is added in version ktlint 1.3.0(https://github.com/pinterest/ktlint/releases/tag/1.3.0), but still need to change some code styles.
It was as though some inner code's behaviors had changed.
So that, I've disabled Function signature too, https://pinterest.github.io/ktlint/latest/rules/standard/#function-signature
Would you see the Function signature rule and select which option one? enabled, disabled, default, multiline, always.
Disabled currently.

@keyboardsurfer keyboardsurfer merged commit 1881730 into android:main Dec 9, 2024
1 check passed
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.

5 participants