Notable Changes
- The Gradle plugin should be on par with the CLI performance-wise
- Good to know: detekt CLI always supported argument files (
java -jar detekt-cli.jar @argsfile
) - New CLI
--version
flag - New Rule
AbsentOrWrongFileLicense
and other rule improvements
Changelog
- Deprecate BaseRule and state that it will be make sealed - #2365 - #2432
- Add License rule - #2429
- Skip all guard clauses at function start for ReturnCount - Closes #2342 - #2428
- Fail if
--baseline
file not found - #2427 - Add tests for YamlConfig - #2426
- Choose a minimum codecov patch coverage ratio - #2425
- Include ruleset-suppression feature doc - #2424
- Add Groovy DSL example for jvmTarget to homepage - #2423
- Add groovy dsl example for jvmTarget - Closes #2408 - #2422
- Deprecate hierarchical config - #2421
- Deprecate implementations of Config - #2420
- Remove YAML Extension Requirement - #2419
- Update Spek version to 2.0.10 - #2418
- file does not end with .yml! - #2417
- Disable autoCorrect property for all rules if global flag is set to false - #2413
- Release 1.7.0 beta - #2409
- Stop using kotlin-reflect - #2405
- Stop compiling with experimental flag - #2404
- Only post a code coverage patch status to PRs - #2402
- ExplicitCollectionElementAccessMethod: Don't report on nullable collection - #2401
- Discourage new Case files - #2399
- Use argsfiles for CI - #2397
- Update to Kotlin v1.3.70 - #2396
- Fix typo in VersionPrinter test - #2395
- Add documentation for cli --version flag - #2392
- ExplicitCollectionElementAccessMethod: Do not report map?.get("foo") - #2391
- Update Gradle to 6.2.1 - #2390
- Do not report conditional elvis continue statements - Closes#2388 - #2389
- False positive: UnconditionalJumpStatementInLoop with elvis operator ?: - #2388
- Refactor getting the detekt version for readability - #2387
- Create less objects and sets when creating findings id map - #2385
- Add --version to cli - #2383
- Add
--version
CLI option - #2382 - Add test cases for cli/runners package - #2381
- Sort and run correctable rules first - #2341 - #2378
- Should fail if
--baseline
file does not found? - #2374 - Deprecate rule set methods which expose implementation details of detekt-core - #2366
- Deprecate api's exposing detekt-core implementation details - #2365
- ReturnCount excludeGuardClauses not working - #2342
- Mixing autocorrectable and non correctable rules results in obsolete issue locations for reports - #2341
- Allow Detekt CLI to take an args file. - #2318
- Call detekt reflectively - #2282
- Copyright header rule for Kotlin files - #1515 - #2077
- Detekt gradle is much slower than the jar - #2035
- Cases files are super rigorous to work with - #1089
See all issues at: 1.7.0