alkaa
alkaa copied to clipboard
Update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.21.0
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
io.gitlab.arturbosch.detekt:detekt-gradle-plugin (source) | 1.20.0 -> 1.21.0 |
Release Notes
detekt/detekt
v1.21.0
We're delighted to announce the next upcoming stable release of Detekt: 1.21.0
π
This release is coming with 6 new rules, new API and functionalities and several stability improvements.
We want to thank you very much our Sponsors for the support in those last months. The work behind Detekt is all happening on a voluntary basis, and we're more than grateful for all the support we get from the Open Source Ecosystem.
We're also excited to announce that we're now having an Open Source Gradle Enterprise instance. When building the Detekt projects, you'll benefit from the Gradle Remote Cache that this instance is providing!
Finally, we want to take the opportunity to thank our contributors for testing, bug reporting and helping us release this new version of Detekt. You're more than welcome to join our community on the #detekt channel on KotlinLang's Slack (you can get an invite here).
Notable Changes
- We enabled ~30 new rules by default which we believe are now stable enough. - #β4875
- We added 6 new Rules to Detekt
- 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 - Please note that this feature requires a rule to be extended to support it. If you're a rule author you can start using it right away in your rule. We're looking into using this feature in some first party rule starting from Detekt
1.22.0
. - We now report as warnings the Strings 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
Migration
We fixed a bug related to function with KDocs and how their location in the source code was calculated (see #β4961 and #β4887).
Because of this, some users might have to recreate their baseline as the location of such functions are not matched anymore against the baseline. You can do so by deleting your old baseline and invoking the detektBaseline
task (or the corresponding task, based on your configuration).
Changelog
- ReturnCount: Make configuration parameter more explicit - #β5062
- Remove redundant null check - #β5061
- Drop redundant Gradle workaround - #β5057
- Update ktlint links from website to readme - #β5056
- Improve extensions.doc format with admonitions - #β5055
- Update docusaurus monorepo to v2.0.0-beta.22 - #β5050
- Enable strict Kotlin DSL precompiled script plugins accessors generation - #β5048
- MaxChainedCallsOnSameLine: don't count package references as chained calls - #β5036
- Xml Report Merger now merges duplicate smells across input report files - #β5033
- Add ending line and column to Location.kt - #β5032
- Fix type resolution link in Contributing.md - #β5027
- #β5014 Fix MaxChainedCallsOnSameLine false positives - #β5020
- Add endColumn/endLine to SARIF region - #β5011
- Removed UnnecessaryAbstractClass if it inherits from a abstract class - #β5009
- Only recommend using index accessors for Java classes that are known collections - #β4994
- UnusedImports: fix false positive for unresolved imports - #β4882
- 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
anddetekt-utils
- #β4748 - Remove suspend lambda rule with CoroutineScope receiver due to not deβ¦ - #β4747
-
VarCouldBeVal
: Add configuration flagignoreLateinitVar
- #β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 gradle to v7.5 - #β5074
- Update plugin binaryCompatibilityValidator to v0.11.0 - #β5069
- 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
- Fix
ComplexMethod
debt and refactor code - #β5029 - Fix ReturnCount debt and refactor code - #β5026
- Add test for ForbiddenMethodCall with getters - #β5018
- 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
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.