-
Notifications
You must be signed in to change notification settings - Fork 118
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 Kotlin-related dependencies #225
Conversation
With this change, we bump all Kotlin-related dependencies to recent versions. This includes a Kotlin bump from 1.3 to 1.4, the migration from com.github.shyiko.ktlint to com.pinterest.ktlint and a significant upgrade of Detekt from 1.0.0-RC14 to 1.14.0. For running Detekt, a new tooling API was introduced. This means that the code that invoke Detekt can change not to use internal classes anymore. Calling a Kotlin DSL from Java looks a little verbose, but it still works nicely. For tests, the Detekt YAML file was reset from the latest default, then adapted slightly so the expected rules still get triggered. A few more minor changes were made to match expectations with the latest version. I also add a specific test for a new Detekt rule that has been added since the previous version we were using here... In terms of migration/changelong: - Changelog of Detekt RC versions: https://arturbosch.github.io/detekt/changelog-rc.html - Detekt include/exclude migration: https://arturbosch.github.io/detekt/howto-migratetestpattern.html - Release notes of Detekt, since: https://arturbosch.github.io/detekt/changelog.html - KtLint changelog: https://github.com/pinterest/ktlint/releases
Codecov Report
@@ Coverage Diff @@
## master #225 +/- ##
============================================
- Coverage 73.25% 72.38% -0.88%
+ Complexity 612 608 -4
============================================
Files 146 146
Lines 1963 1988 +25
Branches 128 131 +3
============================================
+ Hits 1438 1439 +1
- Misses 468 489 +21
- Partials 57 60 +3
Continue to review full report at Codecov.
|
Not sure how to improve coverage on |
Thank for your contribution! This is a great work! 👍 |
With this change, we bump all Kotlin-related dependencies to recent versions. This includes a Kotlin bump from 1.3 to 1.4, the migration from com.github.shyiko.ktlint to com.pinterest.ktlint and a significant upgrade of Detekt from 1.0.0-RC14 to 1.14.0. For running Detekt, a new tooling API was introduced. This means that the code that invoke Detekt can change not to use internal classes anymore. Calling a Kotlin DSL from Java looks a little verbose, but it still works nicely. For tests, the Detekt YAML file was reset from the latest default, then adapted slightly so the expected rules still get triggered. A few more minor changes were made to match expectations with the latest version. I also add a specific test for a new Detekt rule that has been added since the previous version we were using here... In terms of migration/changelong: - Changelog of Detekt RC versions: https://arturbosch.github.io/detekt/changelog-rc.html - Detekt include/exclude migration: https://arturbosch.github.io/detekt/howto-migratetestpattern.html - Release notes of Detekt, since: https://arturbosch.github.io/detekt/changelog.html - KtLint changelog: https://github.com/pinterest/ktlint/releases Co-authored-by: Julien Lehuen <julien.lehuen@imc.com>
With this change, we bump all Kotlin-related dependencies to recent versions. This includes a Kotlin bump from 1.3 to 1.4, the migration from com.github.shyiko.ktlint to com.pinterest.ktlint and a significant upgrade of Detekt from 1.0.0-RC14 to 1.14.0.
For running Detekt, a new tooling API was introduced. This means that the code that invoke Detekt can change not to use internal classes anymore. Calling a Kotlin DSL from Java looks a little verbose, but it still works nicely.
For tests, the Detekt YAML file was reset from the latest default, then adapted slightly so the expected rules still get triggered. A few more minor changes were made to match expectations with the latest version. I also add a specific test for a new Detekt rule that has been added since the previous version we were using here...
In terms of migration/changelog: