Auto-update dependencies. - #2826
Conversation
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
There was a problem hiding this comment.
Code Review
This pull request updates the ktlint dependency version from 0.49.1 to 0.50.0 in build.gradle.kts. The feedback suggests defining this dependency in the Gradle Version Catalog (gradle/libs.versions.toml) instead of hardcoding it directly in the build script, which helps maintain consistency across the project.
|
|
||
| dependencies { | ||
| ktlint("com.pinterest:ktlint:0.49.1") { | ||
| ktlint("com.pinterest:ktlint:0.50.0") { |
There was a problem hiding this comment.
Instead of hardcoding the ktlint dependency version directly in build.gradle.kts, it is highly recommended to define it in the Gradle Version Catalog (gradle/libs.versions.toml) to maintain consistency with the rest of the project's dependencies.
To do this:
- Add the following to
gradle/libs.versions.toml:
[versions]
ktlint = "0.50.0"
[libraries]
ktlint = { module = "com.pinterest:ktlint", version.ref = "ktlint" }- Update this line to reference the catalog dependency.
ktlint(libs.ktlint) {9e5e03b to
83209a9
Compare
c9726e9 to
1b838cd
Compare
1b838cd to
3f06053
Compare
Brought to you by your friendly Repository Gardener.