detekt v1.4.0 Release Notes

Release Date: 2020-01-12 // over 4 years ago
  • Notable Changes

    ๐Ÿ†• New rule set coroutines with two specialized rules was added.
    As always new rules must be activated by the user until they get stable.

    coroutines: active: trueGlobalCoroutineUsage: active: falseRedundantSuspendModifier: active: false
    

    โšก๏ธ Wrapped KtLint was updated to 0.36.0 introducing two rules

    • EnumEntryNameCase
    • NoEmptyFirstLineInMethodBlock
    Migration

    ๐Ÿ—„ The properties ignoreOverriddenFunction and ignoreOverriddenFunctions of some rules got deprecated and unified to a new property ignoreOverridden.

    ๐Ÿ”„ Changelog
    • ๐Ÿ”จ Refactor BuildFailure code - #2250
    • ๐Ÿ›  Fix nested methods bug in MethodOverloading rule - #2249
    • ThrowingExceptionInMain rule should consider main() function with no parameters - #2248
    • MethodOverloading bug with nested overloaded methods - #2247
    • โฌ‡๏ธ Reduce complexity in FindingsReport - #2246
    • โž• Add RedundantSuspendModifier rule - #2244
    • ๐Ÿ†• New ktlint rules - #2243
    • Inline MethodOverloading case file - #2241
    • โœ… ThrowingExceptionInMain: fix #2248 and add tests - #2240
    • โž• Add disposing Kotlin environment. - #2238
    • OOM on multiple invocations - #2237
    • ๐Ÿ‘Œ Improve doc for UnusedPrivateMember - #2236
    • ๐Ÿ”ง Don't resolve dependencies during project configuration - #2235
    • โช Revert "Introduce Pull Request Labeler" - #2234
    • ๐Ÿ›  Fix #2230 equals() func detection - #2233
    • ๐Ÿ›  Fix git commit-hook label and code snippet doc - #2232
    • WrongEqualsTypeParameter does not ignore multi-parameter equals methods - #2230
    • Introduce Pull Request Labeler - #2228
    • ๐Ÿ— Gradle plugin: Build upon default detekt config - #2227
    • ๐Ÿ‘• Apply ktlint formatting plugin to Gradle plugin - #2226
    • โฌ†๏ธ Bump dependencies - #2225
    • โš™ Run shadowJar & installShadowDist task with everything else - #2220
    • Travis: Use consistent Java vendor - #2219
    • 0๏ธโƒฃ "Property is misspelled or does not exist" error for new rules in default rulesets - #2217
    • MethodOverloading false positive if every entry of an enum implement a method. - #2216
    • โž• Add Git detekt pre-commit hook doc - #2214
    • โœ‚ Remove exclude workaround for new build property - #2203
    • โž• Add GlobalCoroutineUsage rule + coroutines ruleset - #2174
    • โž• Add rule [RedundantSuspend] to detect redundant suspend modifiers - #2156
    • ๐Ÿ—„ Deprecate ignoreOverriddenFunction/s in favor of ignoreOverridden - #2132

    ๐Ÿ‘€ See all issues at: 1.4.0