You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Bump Kotlin-related dependencies
With this change, we bump all Kotlin-related dependencies to recent
versions. This includes a Kotlin bump from 1.4 to 1.6, the upgrade of
Detekt from 1.14 to 1.20 and the upgrade of Ktlint from 0.39 to 0.45.
For Kotlin, instead of depending on its stdlib, Gradle now uses the
Kotlin plugin.
For tests, the Detekt YAML file was reset from the latest default, then
adapted slightly so the expected rules still get triggered, trying to
keep it as similar as possible to what it used to be. The
NewLineAtEndOfFile rule was improved to point at the last line, instead
of the first one, thus the tests were changed accordingly.
Ktlint deprecated the use of some of its API, so the processor was
updated accordingly.
Also, removed deprecated jcenter repository, since it is not in use
anymore.
In terms of migration/changelog:
- Release notes of Detekt, since:
https://detekt.dev/docs/introduction/changelog/
- KtLint changelog:
https://github.com/pinterest/ktlint/releases
* Upgrade Kotlin to 1.7.0
Co-authored-by: George Ungureanu - Vranceanu <george.ungureanuvranceanu@imc.com>
Co-authored-by: Piotr Jagielski <pjg@touk.pl>
.contains(newViolation(VIOLATIONS_1, 1, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO))
47
+
.contains(newViolation(VIOLATIONS_1, 14, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO))
48
48
.contains(newViolation(VIOLATIONS_1, 3, "[style/WildcardImport] Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors.", Severity.INFO))
49
49
.contains(newViolation(VIOLATIONS_1, 7, "[style/MagicNumber] Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.", Severity.INFO));
.contains(newViolation(VIOLATIONS_3, 3, "[empty-blocks/EmptyClassBlock] Empty block of code detected. As they serve no purpose they should be removed.", Severity.INFO))
62
-
.contains(newViolation(VIOLATIONS_2, 1, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO))
63
-
.contains(newViolation(VIOLATIONS_3, 1, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO));
62
+
.contains(newViolation(VIOLATIONS_2, 3, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO))
63
+
.contains(newViolation(VIOLATIONS_3, 4, "[style/NewLineAtEndOfFile] Checks whether files end with a line separator.", Severity.INFO));
.contains(newViolation(VIOLATIONS_4, 7, "[coroutines/GlobalCoroutineUsage] Usage of GlobalScope instance is highly discouraged", Severity.ERROR));
75
+
.contains(newViolation(VIOLATIONS_4, 7, "[coroutines/GlobalCoroutineUsage] The usage of the `GlobalScope` instance is highly discouraged.", Severity.ERROR));
0 commit comments