Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.23.0 #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.gitlab.arturbosch.detekt:detekt-formatting (source) 1.20.0 -> 1.23.0 age adoption passing confidence

Release Notes

detekt/detekt

v1.23.0

We're so proud to announce the next upcoming stable release of detekt: 1.23.0 πŸš€
This release is coming with 25 new rules and much more.

We moved the detekt-compiler-plugin to the main repo, and you can now use it in your builds following the official documentation.

This release also marks the beginning of development of 2.x from the main branch! You can follow the progress here

We want to take the opportunity to thank our Sponsors and 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
  • This is the first version of Detekt that ships with the detekt-compiler-plugin. The Detekt Compiler plugin is still experimental, but we're moving it closer to Detekt to make it easier to integrate. From now on the compiler plugin will follow the same versioning schema as Detekt. We invite you to try it and provide feedback till we stabilize it. You can read more about it in the official documentation page - #​5492
  • We added 25 new Rules to detekt
  • Notable changes to existing rules:
    • UnnecessaryAbstractClass now only runs with type resolution - #​5829
    • UnusedPrivateMember has been refactored with some of its logic moved to UnusedParameter and UnusedPrivateProperty - #​5722
    • Removed the ignoreOverridden config from BooleanPropertyNaming, ConstructorParameterNaming, FunctionNaming, VariableNaming and FunctionParameterNaming as not useful for those rules - #​5718
    • Added ignoredSubjectTypes to rule ElseCaseInsteadOfExhaustiveWhen to specify types that should be ignored by the rule (#​5623) - #​5634
    • Added allowOperators to rule DataClassContainsFunctions - #​5658
    • MandatoryBracesIfStatements has been removed in favor of BracesOnIfStatements - #​5700
    • Added ignoreWhenContainingVariableDeclaration to UseIfInsteadOfWhen to ignore captured variables - #​5681
    • Several rules in the detekt-formatting ruleset now accepts an indentSize parameter (see the full list here).
    • We followed the KtLint decisions on turning on some rules by default, so several rules in the detekt-formatting ruleset are now turned on by default (see the full list here).
  • We added support for Gradle's Worker API inside Detekt Gradle Plugin, for faster execution on bigger projects. - #​4128
  • We fixed the includes/excludes logic on the config file as they were overriding each other - #​5782
  • We fully removed support for Spek from detekt-test-utils. The recommended testing framework is JUnit - #​5785
  • The minimum supported Gradle version is now v6.8.3 - #​5616
  • This version of detekt is built with Gradle v8.1, AGP 8.0.1, Kotlin 1.8.21 and KtLint 0.49.1 (see #​5893 #​5723 #​5877 #​6028 #​6043 #​5995 #​5996)
  • We now added a Code of Conduct to our repo. Please read it and follow it when interacting with our community on our channels.
Changelog
  • SerialVersionUIDInSerializableClass - Update the error location - #​6114
  • Reduce LoopWithTooManyJumpStatements finding scope - #​6110
  • Add alias for SuspendFunWithCoroutineScopeReceiver - #​6089
  • CastNullableToNonNullableType - Check the SimpleType instead of typeElement - #​6071
  • Update plugin com.gradle.enterprise to v3.13.1 - #​6069
  • CanBeNonNullable: Check parent condition for checking if nullability info is used or not - #​6064
  • Add configuration to add alternate trimming methods - #​6063
  • Check if property is documented at class header - #​6061
  • OutdatedDocumentation - Check if only public property is documented - #​6057
  • UnnecessaryLet: fix false positive in call chains - #​6052
  • Add comments with a list of regexes to ForbiddenComment - #​5981
  • Fix incomplete requireRootInDeclaration check in InvalidPackageDeclaration - #​6045
  • BracesOnWhenStatements: fix false positive for necessary braces - #​6042
  • Fix redundant ClassOrdering violations using maximum increasing section - #​6003
  • UseIsNullOrEmpty: fix false negative with chained call - #​6027
  • Create docs for Gradle Worker API - #​6016
  • Compile compiler plugin against kotlin-compiler-embeddable - #​6012
  • Update intro.mdx to use setFrom() on detekt config - #​6010
  • Use detekt-versions.properties instead of versions.properties - #​6006
  • Implement parentPath accessor in concrete config implementations - #​6002
  • Increase ALIASES_LIMIT to 100 for YamlConfig - #​5986
  • Fix elvis to +/- case in case UnnecessaryParentheses when precedence is unclear - #​5983
  • jdkHome as @​Internal - #​5978
  • Fix broken POM file for detetk-compiler-plugin - #​5971
  • Fix broken publishToMavenLocal - #​5970
  • Add allowOmitUnit to rule LibraryCodeMustSpecifyReturnType - #​5861
  • Remove dependency that creates a cycle. - #​5777
  • Update dependency org.jetbrains:annotations to v24 - #​5969
  • Update github/codeql-action digest to 8c8d71d - #​5966
  • Add functions to ExitOutsideMain rule - #​5963
  • Update README.md - #​5954
  • Prevent import statements from counting as references for UnusedPrivateProperty - #​5942
  • Fix ExpressionBodySyntax not checking property getters/setters - #​5938
  • Improve correctness of UnusedPrivateProperty - #​5935
  • Fix documentation for deprecated 'reports' object (Issue #​5908) - #​5924
  • Print file path report as link file - #​5921
  • "detekt" or "Detekt" - #​5898
  • Update JSON schema URL - #​5881
  • Add support for local suppression inside formatting - #​5876
  • Fix checkExhaustiveness for formatting and third party rules - #​5869
  • Allow newline style for MaxChainedCallsOnSameLine - #​5865
  • Declare inputs and outputs to support incremental build for testPluginKotlinc - #​5862
  • Use code syntax for Unit for ImplicitUnitReturnType rule - #​5857
  • MatchingDeclarationName. KtFilesSpec also remove .common.kt suffix from kotlin files - #​5851
  • Fix double mutability issues with Gradle plugin's use of ConfigurableFileCollection - #​5850
  • MagicNumber - Make ignoreNamedArgument catch more complex expression - #​5837
  • Exclude super call when generating guard clauses - #​5835
  • Enable test retry for all our modules - #​5825
  • Stop configuring report merge tasks while configuring Detekt tasks - #​5813
  • FunctionMatcher support for fully qualified function names - #​5812
  • Boy Scout - #​5808
  • Simplify TestConfig usages - #​5801
  • Reduce configuration of UnusedPrivateMember's split rules - #​5800
  • Force SerialVerionUID to be private - #​5798
  • Exclude the KMP test folders for android - #​5797
  • Add aliases for PackageNaming and InvalidPackageDeclaration - #​5795
  • Forbid using Jupiter Kotlin assertions - #​5794
  • ModifierOrder: fix false positive with block comments - #​5791
  • Fixed ProtectedMemberInFinalClass rule reporting valid JVM finalize - #​5788
  • Remove unnecessary usage of BeforeAll in tests - #​5781
  • Run Kotlin compiler plugin CLI test as part of standard build - #​5766
  • Refactor to remove java.util.Array* imports - #​5761
  • Replace java.util.Stack with Kotlin's ArrayDeque implementation - #​5760
  • Replace java.time.Duration with kotlin.time.Duration - #​5759
  • Add NixOS installation method to doc - #​5757
  • Remove & forbid usage of java.util.stream - #​5756
  • Use stdlib functions for file & path operations - #​5754
  • Enable UnnecessaryBackticks in detekt project - #​5753
  • Update docusaurus monorepo to v2.3.1 - #​5752
  • Resolve runtime classpaths consistently with compile classpaths - #​5730
  • Exclude new Kotlin Test directories in default config - #​5727
  • Fail when unexpected version of kotlin-compiler-embeddable is on runtime classpath - #​5726
  • Fix IgnoredReturnValue rule crash in parallel mode - #​5724
  • Use name that return name after backticks - #​5719
  • UnusedPrivateMember - Fix false positive in case of invoke operator - #​5717
  • Fix false positive for CanBeNonNullable rule - #​5714
  • IgnoredReturnValue: fix false negative when annotation is on the package - #​5706
  • Check Thread.sleep for block expression - #​5699
  • Fix false positive of in UnnecessaryParentheses - #​5684
  • Fix url and kotlin reference support in kdoc - #​5683
  • Add config for variable expression in when - #​5681
  • Enable NoSemicolons rule - #​5663
  • Use correct resolvable/consumable flags on detekt's configurations - #​5657
  • Prepare for Gradle 8 - #​5656
  • ExplicitCollectionElementAccessMethod rule update - #​5654
  • Cast nullable to non nullable type - #​5653
  • Enable verbose mode for Codecov GH Action - #​5652
  • Fail build when issues found with JVM target compatibility of related compile tasks - #​5651
  • Don't silently use Kotlin compiler fallback strategy - #​5650
  • Documentation tweaks - #​5639
  • Have consistent compile-test-snippets between project and system property - #​5630
  • Exclude operator functions in function min/max length - #​5618
  • Broken link at EmptyFunctionBlock - #​5604
  • Update rule description for errorprone rules - #​5603
  • FunctionMaxLength false positive for overridden methods #​5590 - #​5599
  • Report proper code position in MaxLineLength - #​5583
  • Allow access to nonpublic members of public types in java.base/java.lang package - #​5579
  • NonBooleanPropertyPrefixedWithIs: Allow AtomicBoolean - #​5577
  • Pass compilation output classes to detekt analysis classpath - #​5556
  • Fix KDocReferencesNonPublicProperty false positive - #​5534
Dependency Updates
  • Update dependency io.github.detekt.sarif4k:sarif4k to v0.4.0 - #​6113
  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.7.1 - #​6097
  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.7.0 - #​6074
  • Update com.android.tools.build - #​6065
  • Update JaCoCo to v0.8.10 - #​6044
  • Update plugin pluginPublishing to v1.2.0 - #​5975
  • Update ktlint to v0.48.1 - #​5661
  • Update dependency com.android.tools.build:gradle to v7.4.0 - #​5693
  • JaCoCo 0.8.9 - #​5959
  • Update dependency com.github.tschuchortdev:kotlin-compile-testing to v1.5.0 - #​5882
  • Update dependency org.jetbrains.dokka to v1.8.10 - #​5878
  • Compile detekt-compiler-plugin against standard Kotlin compiler artifact - #​5765
  • Migrate to SnakeYAML Engine - #​5751
  • Update kotlin monorepo to v1.8.10 - #​5745
  • Update ktlint to v0.48.0 - #​5625
  • Migrate to Gradle Nexus Publish Plugin - #​5554
  • Update dependency io.github.detekt.sarif4k:sarif4k to v0.2.0 - #​5496
Housekeeping & Refactorings
Contributors

We would like to thank the following contributors that made this release possible: @​3flex, @​BeBAKE, @​BraisGabin, @​Goooler, @​SaumyaBhushan, @​TWiStErRob, @​VitalyVPinchuk, @​adef145, @​asomov, @​atulgpt, @​chao2zhang, @​cketti, @​cortinico, @​drawers, @​dzirbel, @​igorwojda, @​lexa-diky, @​luanpotter, @​marschwar, @​mjovanc, @​mmorozkov, @​ncteisen, @​osipxd, @​ov7a, @​schalkms, @​t-kameyama, @​tresni

See all issues at: 1.23.0

v1.22.0

We're extremely excited to announce the next upcoming stable release of Detekt: 1.22.0 πŸš€
This release is coming with 16 new rules, 2 new rulesets and several new functionalities & APIs.

We've also introduced the Detekt Marketplace, a place for users to share their 3rd party rules and extensions.

We want to take the opportunity to thank our Sponsors and 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're introducing the Detekt Marketplace, a place where you can add your own 3rd party extension such as rule, plugins, custom reporter, etc. - #​5191
  • Our website is now versioned. You can find the changes for each version using the dropdown menu on the top bar. Documentation for the upcoming version (next) can be found here.
  • We added 16 new Rules to Detekt
  • We added a new ruleset called detekt-rules-ruleauthors containing rules for Rule Authors to enforce best practices on Detekt rules such as the new ViolatesTypeResolutionRequirements - #​5129 #​5182
  • We added a new ruleset called detekt-rules-libraries containing rules mostly useful for Library Authors - We moved the following rules inside ForbiddenPublicDataClass, LibraryCodeMustSpecifyReturnType, LibraryEntitiesShouldNotBePublic this new ruleset - See Migration below on how to migrate #​5360
  • We added support for JVM toolchain. This means that Detekt will now respect the JDK toolchain you specify on your Gradle configuration. You will also be able to specify a custom JDK home with the --jdk-home CLI parameter - #​5269
  • Improvement for Type Resolution
    • We will now skip rules annotated with @RequiresTypeResolution when without Type Resolution - #​5176
    • We will warn users if they run rules requiring Type Resolution when Type Resolution is disabled, so they're not silently skipped - #​5226
  • Improvement for Config Management
    • We added exhaustiveness check during config validation. You can enable it checkExhaustiveness: true in your config file. This is disabled by default. - #​5089
    • We added support for generating custom configuration for rule authors - #​5080
  • Deprecations & Removals
    • We deprecated the MultiRule class as it was overly complicated. The suggested approach is to just provide separated rules. - #​5161
    • The --fail-fast CLI flag (and failFast Gradle property) has been removed. It was deprecated since 1.16.x - #​5290
    • We deprecated the following rules DuplicateCaseInWhenExpression, MissingWhenCase, RedundantElseInWhen as the Kotlin Compiler is already reporting errors for those scenarios - #​5309
    • We removed the --print-ast CLI flag as PsiViewer provides the same features - #​5418
  • Notable changes to existing rules
    • ArrayPrimitive is now working only with Type Resolution - #​5175
    • WildcardImport is now running also on tests by default - #​5121
    • ForbiddenImport allows now to specify a reason for every forbidden import - #​4909
    • IgnoredReturnValue: option restrictToAnnotatedMethods is now deprecated in favor of restrictToConfig - #​4922
  • This version of Detekt is built with Gradle v7.5.1, AGP 7.3.1, Kotlin 1.7.21 and KtLint 0.47.1 (see #​5363 #​5189 #​5411 #​5312 #​5519)
  • The minimum supported Gradle version is now v6.7.1 - #​4964
Migration

We deprecated a number of rules in this release.

You should update your config file as follows:

  potential-bugs:
    active: true
    ...
-   DuplicateCaseInWhenExpression:
-     active: true
    ...
-   MissingWhenCase:
-     active: true
-     allowElseExpression: true
    ...
-   RedundantElseInWhen:
-     active: true

  style:
    active: true
    ...
-   ForbiddenPublicDataClass:
-     active: true
-     excludes: ['**']
-     ignorePackages:
-       - '*.internal'
-       - '*.internal.*'
    ...
-   LibraryCodeMustSpecifyReturnType:
-     active: true
-     excludes: ['**']
    ...
-   LibraryEntitiesShouldNotBePublic:
-     active: true
-     excludes: ['**']

If you wish to use the libraries ruleset we introduced you should add the following to your config file:

+ libraries:
+   active: true
+   ForbiddenPublicDataClass:
+     active: false
+   LibraryEntitiesShouldNotBePublic:
+     active: false
+   LibraryCodeMustSpecifyReturnType:
+     active: true

and add the following to you build.gradle file:

detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:$version")

If you're using our KtLint wrapper (i.e. detekt-formatting) you should also update your config file as follows:

formatting:
  active: true
  ...
- TrailingComma:
-   active: false
-   autoCorrect: true
-   allowTrailingComma: false
-   allowTrailingCommaOnCallSite: false
  ...
+ TrailingCommaOnCallSite:
+   active: false
+   autoCorrect: true
+   useTrailingCommaOnCallSite: false
+ TrailingCommaOnDeclarationSite:
+   active: false
+   autoCorrect: true
+   useTrailingCommaOnDeclarationSite: false
Changelog
  • ReturnCount: correctly count assignment expressions with elvis return as guard clauses - #​5539
  • UnnecessaryPartOfBinaryExpression: fix false positive with pair creation - #​5516
  • False positive at UnnecessaryPartOfBinaryExpression - #​5514
  • Update documentation for TrailingComma rules - #​5513
  • TrimMultilineRawString false-positive on annotation parameters - #​5476
  • Detekt 1.22.0-RC1 -> 1.22.0-RC2 breaks UnreachableCode - #​5435
  • Detekt 1.22.0-RC1 -> 1.22.0-RC2 breaks ignoreAnnotated - #​5427
  • Fix issues introduced by #​5152 - #​5508
  • MultilineLambdaItParameter: fix false positive for one-line statements with a lambda argument - #​5505
  • UseArrayLiteralsInAnnotations: fix false negative with primitive array factory calls - #​5482
  • TrimMultilineRawString: fix false positive when it's expected as constant - #​5480
  • Fix false negative SafeCast with no braces - #​5479
  • Update gradle/wrapper-validation-action digest to 55e685c - #​5472
  • Grant permission for type resolution Gradle job - #​5470
  • Fix ObjectPropertyNaming Rule false positive - #​5466
  • Fix LambdaParameterNaming rule false positive - #​5465
  • Fix ReturnCount false positive when excludeReturnFromLambda is enabled - #​5459
  • CognitiveComplexity: count else/else-if as one complexity - #​5458
  • Fix false positive MultilineRawStringIndentation with tab indentation - #​5453
  • Don't show the number of issues generating the BindingContext - #​5449
  • Make detekt less noisy - #​5448
  • New ruleauthors rule for Entity.from(x.nameIdentifier ?: x) -> Entity.atName(x) - #​5444
  • Separating ComplexMethod rule into CyclomaticComplexMethod and CognitiveComplexMethod - #​5442
  • Improve error reporting for CascadingCallWrapping - #​5439
  • TrimMultilineRawString: fix false positive with not a raw string - #​5438
  • BooleanPropertyNaming highlight only the name of the variable - #​5431
  • Deprecate TrailingComma as it's now split in two rules - #​5423
  • Remove unused constant - #​5421
  • Report if/else as issue location instead of block - #​5407
  • Remove some unnecessary suppressions - #​5400
  • Check FormattingRule is auto-correctable by information provided by ktlint - #​5398
  • Fix false negative MultilineLambdaItParameter on complex multiline single statement - #​5397
  • ObjectPropertyNaming: fix false positive with top level properties - #​5390
  • Remove usage of MPP targets function for JVM-only projects - #​5383
  • UnnecessaryNotNullCheck: fix false negative with smart casted arguments - #​5380
  • Add missing overlapping info & fix rules URLs - #​5378
  • AlsoCouldBeApply: fix false positive when all statements are not it-started expressions - #​5376
  • UnusedPrivateMember: fix false negative with named arguments - #​5374
  • Change requires type resolution rule warning to debug level to not spam the user console - #​5353
  • Report UseDataClass findings on class name - #​5352
  • Report LabeledExpression as the label instead of the whole expression - #​5351
  • Report CastToNullableType at the cast operator instead of the whole expression - #​5350
  • Convert previously known string property to list based on default value - #​5347
  • CastToNullableType: highlights too much - #​5346
  • UseDataClass flags the whole class body, not just the name - #​5338
  • CanBeNonNullable: explain why the rule does what it does. - #​5332
  • Differentiate between correctable and non-correctable KtLint rules - #​5324
  • ReturnCount 1.22.0 crashes on valid 1.21.0 config property excludedFunctions when using --all-rules cli flag - #​5323
  • LabeledExpression to highlight only label - #​5316
  • Use the correct source directory set on JVM - #​5163
  • Get Android variant compile classpath from compileConfiguration - #​5152
  • Use list config for FunctionOnlyReturningConstant>excludedFunctions - #​5120
  • MaxLineLength: raw typo and test cleanup - #​5315
  • EndOfSentenceFormat: fix HTML tag heuristic - #​5313
  • Fix EndOfSentenceFormat highlight - #​5311
  • Introduce configFile property on DetektGenerateTask - #​5308
  • Improve debug suggestion message - #​5300
  • Fat-Jar version of detekt-generator module - #​5297
  • Toolchains docs - #​5293
  • Adopt new AGP dsl - #​5288
  • NonBooleanPropertyPrefixedWithIs: Allow boolean functions - #​5285
  • Provide the current classpath inside KotlinEnvironmentResolver - #​5275
  • Fix false-positive on NestedScopeFunctions - #​5274
  • Use convention method to set task property defaults - #​5272
  • Update docusaurus monorepo to v2.1.0 - #​5270
  • detektVersionReplace.js plugin is not replacing all [detekt_version] tags on website - #​5266
  • Update ktlint rule doc links - #​5258
  • Remove redundant rule config for rules enabled by default - #​5257
  • UnusedPrivateMember: fix false positive with backtick parameters - #​5252
  • Improve MultilineRawStringIndentation - #​5245
  • UnnecessaryLet: fix false positive with with invoke operator calls - #​5240
  • Introduce baseline tooling api - #​5239
  • Allow secondary constructors to reference CoroutineDispatchers - #​5227
  • Update UnnecessaryAbstractClass issue description to be less verbose - #​5224
  • Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.8.0 - #​5223
  • Pin dependencies - #​5222
  • Remove rule from NamingRules multi rule - #​5212
  • Run all rules from EmptyBlocks multi rule individually - #​5208
  • Run all rules from KDocStyle multi rule individually - #​5207
  • Docs: GitHub - Add link to configure Sarif severity alert level - #​5206
  • Fix errors with detektGenerateConfig - #​5199
  • Forbid constructors with ForbiddenMethodCall - #​5195
  • Update github/codeql-action digest to 2ca79b6 - #​5177
  • Allow to ignore overloaded methods for the complex interface rule (#​5165) - #​5173
  • Add excludesRawStrings in MaxLineLength - #​5171
  • Enable Predictive Test Selection for local builds - #​5170
  • Update dependency org.kohsuke:github-api to v1.307 - #​5168
  • Update dependency com.github.ajalt:clikt to v2.8.0 - #​5167
  • Update docusaurus monorepo to v2.0.1 - #​5166
  • Run build-logic Kotlin compilation out of process on CI - #​5162
  • Add information about exhaustiveness check to documentation - #​5160
  • Use getter when determining whether custom config path is set in DetektGenerateConfigTask - #​5157
  • Limit Kotlin version warning suppression scope in build - #​5156
  • Re-enable warnings as errors for detekt-gradle-plugin - #​5155
  • Bundle slf4j-nop in detekt-formatting JAR - #​5153
  • Fix false negative for UseRequire when thrown in conditional block - #​5147
  • Allow parentheses for unclear precedence with range operator - #​5143
  • Mark apiDump task as incompatible with configuration cache - #​5134
  • Improve binding context management - #​5130
  • RedundantExplicitType add annotation @RequiresTypeResolution - #​5128
  • Disable ExitOutsideMain if contextBinding is empty - #​5127
  • Use list config for DataClassContainsFunctions>conversionFunctionPrefix - #​5119
  • Support proper globbing in ReturnCount - #​5118
  • Improve finding message of ExplicitItLambdaParameter - #​5117
  • Update JamesIves/github-pages-deploy-action digest to 13046b6 - #​5110
  • UnusedUnaryOperator: fix false positive with var assignment and if expression - #​5106
  • Tag publishPlugins task as incompatible with configuration cache - #​5101
  • Make verifyGeneratorOutput task configuration cache compatible - #​5100
  • Remove obsolete FeatureInAlphaState opt in - #​5099
  • Remove explicit RequiresOptIn compiler flag - #​5098
  • Use Gradle's configuration cache by default - #​5095
  • Detect undocumented protected classes, properties, and functions - #​5083
  • ReturnCount.excludedFunctions should be a List<String> - #​5081
  • Make ForbiddenMethodCall to support property getters/setters and method references - #​5078
  • Refactor Gradle tasks to use Gradle's managed properties - #​4966
  • Add option to add a reason to ForbiddenMethodCall - #​4910
  • UnnecessaryParentheses: add options to allow in ambiguous cases - #​4881
Dependency Updates
  • Update dependency com.android.tools.build:gradle to v7.3.1 - #​5411
  • Update plugin com.gradle.enterprise to v3.11.2 - #​5406
  • Update dependency org.jetbrains.dokka to v1.7.20 - #​5401
  • Update dependency org.yaml:snakeyaml to v1.33 - #​5354
  • Update dependency org.spekframework.spek2:spek-dsl-jvm to v2.0.19 - #​5237
  • Update dependency com.android.tools.build:gradle to v7.2.2 - #​5178
  • Update org.jetbrains.kotlinx - #​5072
  • Update dependency org.jetbrains.dokka to v1.7.10 - #​5070
  • Bump ktlint to version 0.46.1 - #​5044
  • AssertJ 3.23.1 - #​4265
Housekeeping & Refactorings
  • Document and test edge cases for ForbiddenMethodCall function signatures - #​5495
  • Fix invalid syntaxes in test code - #​5446
  • Improve raw strings format - #​5244
  • Enable trim multiline raw string - #​5243
  • Remove old configurations - #​5198
  • Improve tests in UnnecessaryParenthesesSpec - #​5197
  • Remove multi rule FileParsingRule - #​5193
  • Remove unused dry run properties from baseline/config tasks - #​5158
  • remove SimpleGlob in favor of String.simplePatternToRegex() - #​5144
  • Remove unused property - #​5135
  • Assert end source locations - #​5116
  • Forbid usage of DiagnosticUtils.getLineAndColumnInPsiFile - #​5109
  • Configure 'ForbiddenImport' to use value and reason - #​5105
  • Enable Kotlin's new approach to incremental compilation - #​5092
  • Fix current indentation - #​5059

See all issues at: 1.22.0

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 7 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](https://togithub.com/de

Configuration

πŸ“… Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

β™» Rebasing: Whenever PR is behind base branch, 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, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from goncalossilva as a code owner July 18, 2022 02:26
@renovate renovate bot force-pushed the renovate/io.gitlab.arturbosch.detekt branch 2 times, most recently from 99c7693 to 32ed899 Compare August 24, 2022 03:57
@renovate renovate bot force-pushed the renovate/io.gitlab.arturbosch.detekt branch from 32ed899 to 654e8dd Compare March 16, 2023 15:53
@renovate renovate bot changed the title chore(deps): update io.gitlab.arturbosch.detekt:* to v1.21.0 fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.22.0 Mar 16, 2023
@renovate renovate bot force-pushed the renovate/io.gitlab.arturbosch.detekt branch from 654e8dd to 4940513 Compare June 2, 2023 08:48
@renovate renovate bot changed the title fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.22.0 fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.23.0 Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants