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
andForbiddenMethod
๐ 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