fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.22.0#120
Merged
BFergerson merged 2 commits intomasterfrom Dec 24, 2022
Conversation
39de41e to
979e2f2
Compare
979e2f2 to
4c2301d
Compare
f12f8ea to
55f9be4
Compare
946454a to
090282c
Compare
090282c to
ae2b781
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. ⚠ Warning: custom changes will be lost. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.21.0->1.22.0Release Notes
detekt/detekt
v1.22.0We'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
AlsoCouldBeApply- #5333MultilineRawStringIndentation- #5058TrimMultilineRawString- #5051UnnecessaryNotNullCheck- #5218UnnecessaryPartOfBinaryExpression- #5203UseSumOfInsteadOfFlatMapSize- #5405FunctionReturnTypeSpacingfrom KtLint - #5256FunctionSignaturefrom KtLint - #5256FunctionStartOfBodySpacingfrom KtLint - #5256NullableTypeSpacingfrom KtLint - #5256ParameterListSpacingfrom KtLint - #5256SpacingBetweenFunctionNameAndOpeningParenthesisfrom KtLint - #5256TrailingCommaOnCallSitefrom KtLint - #5312TrailingCommaOnDeclarationSitefrom KtLint - #5312TypeParameterListSpacingfrom KtLint - #5256detekt-rules-ruleauthorscontaining rules for Rule Authors to enforce best practices on Detekt rules such as the newViolatesTypeResolutionRequirements- #5129 #5182detekt-rules-librariescontaining rules mostly useful for Library Authors - We moved the following rules insideForbiddenPublicDataClass,LibraryCodeMustSpecifyReturnType,LibraryEntitiesShouldNotBePublicthis new ruleset - See Migration below on how to migrate #5360--jdk-homeCLI parameter - #5269@RequiresTypeResolutionwhen without Type Resolution - #5176checkExhaustiveness: truein your config file. This is disabled by default. - #5089--fail-fastCLI flag (andfailFastGradle property) has been removed. It was deprecated since 1.16.x - #5290DuplicateCaseInWhenExpression,MissingWhenCase,RedundantElseInWhenas the Kotlin Compiler is already reporting errors for those scenarios - #5309--print-astCLI flag as PsiViewer provides the same features - #5418ArrayPrimitiveis now working only with Type Resolution - #5175WildcardImportis now running also on tests by default - #5121ForbiddenImportallows now to specify a reason for every forbidden import - #4909IgnoredReturnValue: optionrestrictToAnnotatedMethodsis now deprecated in favor ofrestrictToConfig- #4922v7.5.1, AGP7.3.1, Kotlin1.7.21and KtLint0.47.1(see #5363 #5189 #5411 #5312 #5519)v6.7.1- #4964Migration
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
librariesruleset we introduced you should add the following to your config file:and add the following to you
build.gradlefile: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:Changelog
UnnecessaryPartOfBinaryExpression- #5514TrimMultilineRawStringfalse-positive on annotation parameters - #5476SafeCastwith no braces - #547955e685c- #5472TrailingCommaas it's now split in two rules - #5423it-started expressions - #5376FunctionOnlyReturningConstant>excludedFunctions- #5120KotlinEnvironmentResolver- #5275NestedScopeFunctions- #5274UnnecessaryAbstractClassissue description to be less verbose - #5224detektGenerateConfig- #5199ForbiddenMethodCall- #51952ca79b6- #5177RedundantExplicitTypeadd annotation@RequiresTypeResolution- #5128ExitOutsideMainifcontextBindingis empty - #5127DataClassContainsFunctions>conversionFunctionPrefix- #5119ReturnCount- #511813046b6- #5110ForbiddenMethodCall- #4910Dependency Updates
Housekeeping & Refactorings
See all issues at: 1.22.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.
This PR has been generated by Mend Renovate. View repository job log here.