detekt v1.5.0 Release Notes

Release Date: 2020-01-28 // about 4 years ago
  • Notable Changes
    • detekt is now silent by default. It only prints something if issues are found.
      โœ‚ Remove the following excludes if you want the old behavior back.

      console-reports: active: trueexclude: - 'ProjectStatisticsReport' - 'ComplexityReport' - 'NotificationReport'

    • ๐Ÿ— detekt now fails the build if any issue is found. Change the maxIssues property to 10 for the old threshold.

      build: maxIssues: 0

    • ๐Ÿ–จ The HTML report now prints the issue count per rule and rule set.

    • ๐Ÿ†• New rules: ExplicitCollectionElementAccessMethod and ForbiddenMethod

    ๐Ÿ”„ Changelog
    • โž• add new mention to README.md - #2293
    • Sort html report - #2290
    • Number format in some report - #2289
    • ๐Ÿ‘‰ Show the finding count in the html report - #2288
    • Keep the order of the issues in the html report - #2287
    • ๐Ÿ‘‰ Show issue count in the html report - #2286
    • ๐Ÿ›  Fixing the Documentation not properly calling the superclass - #2284
    • Do you have to call super in custom rules? - #2283
    • ๐ŸŽ Measure performance of various stages when using --debug - #2281
    • โœ‚ Remove printing the whole config for --debug - #2280
    • 0๏ธโƒฃ Introduce DefaultRuleSetProvider interface marking detekt-rules providers as default - #2279
    • ๐Ÿ— Simplify test dependency setup in build files - #2278
    • ๐Ÿ›  Fix class loader memory leaks when loading services - #2277
    • Always dispose Kotlin environment fixing memory leak in error cases - #2276
    • ๐Ÿ— Sanitize gradle build scripts and suppress unstable api usages - #2271
    • โšก๏ธ Update website ruby dependencies fixing potential security vulnerability - #2270
    • ๐Ÿ›  Fix regression not considering baseline file when calculating build failure threshold - #2269
    • 0๏ธโƒฃ Turn detekt silent by default - #2268
    • โœ‚ Remove redundant build failure message - #2264 - #2266
    • ๐Ÿ— Build failed with... is printed twice in the cli - #2264
    • โšก๏ธ Update config:maxIssues value to 0 - #2263
    • Don't flag inherited visibility in NestedClassesVisibility - #2261
    • ๐Ÿ— Simplify argument parsing logic, remove any exitProcess() calls from buildRunner - #2260
    • 0๏ธโƒฃ Modify default behavior to not output unless errors are found. Adding a verbose flag which will have legacy behavior - #2258
    • โœ… Test some edge cases in detekt-api - #2256
    • โž• Add a new line at the end of the txt report - #2255
    • Implement ExplicitCollectionElementAccessMethod rule - #2215
    • ForbiddenMethod Rule - #1954
    • NestedClassesVisibility(False negative): Nested class doesn't inherit visibility from parent - #1930

    ๐Ÿ‘€ See all issues at: 1.5.0