github detekt/detekt v1.21.0-RC2

latest releases: v1.23.6, v1.23.5, v1.23.4...
22 months ago

1.21.0-RC2 - 2022-06-29

Notable Changes

  • We enabled ~30 new rules by default which we believe are now stable enough. - #4875
  • We added 6 new Rules to Detekt
    • NullableBooleanCheck - #4872
    • CouldBeSequence - #4855
    • UnnecessaryBackticks - #4764
    • ForbiddenSuppress - #4899
    • MaxChainedCallsOnSameLine - #4985
    • CascadingCallWrapping - #4979
  • We added support for Markdown reports - #4858
  • We now allow users and rule authors to specify a reason for every value in the config file - #4611
  • We now report as warnings the in the config file that can be converted to be an array - #4793
  • We added a dependency on ConTester to help us verify concurrency scenarios for Detekt - #4672
  • For contributors: we restructured our build setup to be use Gradle composite build - #4751

Changelog

  • Fix Signatures.kt:buildFunctionSignature - #4961
  • Loading a specific resource from a module must use class from module - #5008
  • Update github/codeql-action digest to 3f62b75 - #5007
  • Show finding at declaration name instead of the whole declaration - #5003
  • NamedArguments: don't count trailing lambda argument - #5002
  • Address TextLocation for Wrapping - #4998
  • Support markdown report in Gradle plugin - #4995
  • Fix false-negative for CanBeNonNullable - #4993
  • Give a better error message for --jvm-target - #4978
  • Fix rule code samples to be valid Kotlin code - #4969
  • Use plain ASCII output in standard reports - #4968
  • UnnecessaryApply: fix false negative for assignment - #4948
  • Support disabling config validation via tooling spec - #4937
  • UnusedPrivateMember: highlight declaration name - #4928
  • Provide a priority field for DetektProvider - #4923
  • CastToNullableType: allow casting null keyword - #4907
  • Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.7.2 - #4897
  • Set strict dependency on tested Kotlin compiler version - #4822
  • Simplify regular expressions - #4893
  • Remove redundant character escape in RegExp - #4892
  • Reformat Markdown files to comply with the spec - #4891
  • UnnecessaryInnerClass: fix false negative with this references - #4884
  • UselessCallOnNotNull: fix false positive for unresolved types - #4880
  • Update MagicNumber rule to exclude .kts files - #4877
  • CanBeNonNullable: fix false positives for parameterized types - #4870
  • UnnecessaryInnerClass: fix false positives labeled expression to outer class - #4865
  • UnnecessaryInnerClass: add test for safe qualified expressions - #4864
  • Fix a confusing Regex in the Compose webpage - #4852
  • Fix edit URLs for the website - #4850
  • detektGenerateConfig adds the configuration of plugins - #4844
  • Update dependency prism-react-renderer to v1.3.3 - #4833
  • Search in all versions.properties, not just the first one #4830 - #4831
  • Improve exception message - #4823
  • Fix ValShouldBeVar false positive inside unknown type - #4820
  • Add a recent conference talk link - #4819
  • False positive for unused imports #4815 - #4818
  • Revert "Display dynamic --jvm-target values when using --help flag (#4694)" - #4816
  • UnnecessaryAbstractClass: report only the class name - #4808
  • Fix wrong replacement suggestion for UnnecessaryFilter - #4807
  • UseOrEmpty: fix false positive for indexing operator calls with type parameters - #4804
  • ExplicitCollectionElementAccessMethod: fix false positive for get operators with type parameters - #4803
  • Add tests for #4786 - #4801
  • Add documentation link for rules in html report - #4799
  • Improve rule documentaion and smell message of NamedArguments - #4796
  • Improve issue description and smell message of DestructuringDeclarationWithTooManyEntries - #4795
  • NestedScopeFunctions - Add rule for nested scope functions - #4788
  • Partially drop redundant usage of "dry run" in Gradle plugin tests - #4776
  • Allow additionalJavaSourceRootPaths to be defined on @KotlinCoreEnvironmentTest - #4771
  • Report KDoc comments that refer to non-public properties of a class - #4768
  • Self-inspect the detekt-gradle-plugin - #4765
  • Pass args to DetektInvoker as List<String> - #4762
  • Cleanup Gradle Plugin Publications - #4752
  • Break a dependency between detekt-gradle-plugin and detekt-utils - #4748
  • Remove suspend lambda rule with CoroutineScope receiver due to not de… - #4747
  • VarCouldBeVal: Add configuration flag ignoreLateinitVar - #4745
  • UnnecessaryInnerClass: fix false positive with references to function type variables - #4738
  • Fix false positive on VarCouldBeVal in generic classes - #4733
  • OutdatedDocumentation: fix false positive with no primary constructor - #4728
  • Android Gradle: add javac intermediates to classpath - #4723
  • OptionalWhenBraces: fix false negative when the single statement has comments inside - #4722
  • Document pre-commit hook for staged files - #4711
  • Enable rules by default for 1.21 - #4643

Dependency Updates

  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.6.3 - #4976
  • Update dependency org.jetbrains.dokka to v1.7.0 - #4974
  • Update plugin binaryCompatibilityValidator to v0.10.1 - #4954
  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.6.2 - #4868
  • Update dependency com.android.tools.build:gradle to v7.2.1 - #4861
  • Update plugin binaryCompatibilityValidator to v0.10.0 - #4837
  • Update dependency io.mockk:mockk to v1.12.4 - #4829
  • Update dependency com.android.tools.build:gradle to v7.2.0 - #4824
  • Add dependency-analysis plugin and implement some recommendations - #4798
  • Add dependency on slf4j-nop to silence warning - #4775
  • Update plugin dokka to v1.6.21 - #4770
  • Update org.jetbrains.kotlin to v1.6.21 - #4737
  • Update dependency com.github.breadmoirai:github-release to v2.3.7 - #4734
  • Update plugin binaryCompatibilityValidator to v0.9.0 - #4729

Housekeeping & Refactorings

  • Measure flakyness on Windows CI - #4742
  • Declare nested test classes as non-static - #4894
  • Remove deprecated usages in gradle-plugin test - #4889
  • Remove reference to contributor list - #4871
  • Add missing image - #4834
  • Upgrade to GE enterprise 3.10 - #4802
  • Fix broken snapshot publishing - #4783
  • Remove pending Gradle version milestones from comments - #4777
  • Add more tests for Annotation Suppressor - #4774
  • fix: add test case that fails if environment is not properly set up - #4769
  • Disable UnusedImports for the Detekt project - #4741
  • Remove Unnecesary @nested - #4740
  • Update the argsfile to unblock runWithArgsFile failing locally - #4718

See all issues at: 1.21.0

Don't miss a new detekt release

NewReleases is sending notifications on new releases.