JavaParser-AST-Inspector
JavaParser-AST-Inspector copied to clipboard
chore(deps): bump io.gitlab.arturbosch.detekt from 1.20.0 to 1.22.0
Bumps io.gitlab.arturbosch.detekt from 1.20.0 to 1.22.0.
Release notes
Sourced from io.gitlab.arturbosch.detekt's releases.
v1.22.0-RC3
1.22.0-RC3 - 2022-11-06
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
AlsoCouldBeApply- #5333MultilineRawStringIndentation- #5058TrimMultilineRawString- #5051UnnecessaryNotNullCheck- #5218UnnecessaryPartOfBinaryExpression- #5203UseSumOfInsteadOfFlatMapSize- #5405FunctionReturnTypeSpacingfrom KtLint - #5256FunctionSignaturefrom KtLint - #5256FunctionStartOfBodySpacingfrom KtLint - #5256NullableTypeSpacingfrom KtLint - #5256ParameterListSpacingfrom KtLint - #5256SpacingBetweenFunctionNameAndOpeningParenthesisfrom KtLint - #5256TrailingCommaOnCallSitefrom KtLint - #5312TrailingCommaOnDeclarationSitefrom KtLint - #5312TypeParameterListSpacingfrom KtLint - #5256- We added a new ruleset called
detekt-rules-ruleauthorscontaining rules for Rule Authors to enforce best practices on Detekt rules such as the newViolatesTypeResolutionRequirements- #5129 #5182- We added a new ruleset called
detekt-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- 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-homeCLI parameter - #5269- Improvement for Type Resolution
- Improvement for Config Management
- Deprecations & Removals
- We deprecated the MultiRule class as it was overly complicated. The suggested approach is to just provide separated rules. - #5161
- The
--fail-fastCLI flag (andfailFastGradle property) has been removed. It was deprecated since 1.16.x - #5290- We deprecated the following rules
DuplicateCaseInWhenExpression,MissingWhenCase,RedundantElseInWhenas the Kotlin Compiler is already reporting errors for those scenarios - #5309- We removed the
--print-astCLI flag as PsiViewer provides the same features - #5418- Notable changes to existing rules
ArrayPrimitiveis 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- #4922- This version of Detekt is built with Gradle
v7.5.1, AGP7.3.1, Kotlin1.7.20and KtLint0.47.1(see #5363 #5189 #5411 #5312- The minimum supported Gradle version is now
v6.7.1- #4964Migration
We deprecated a number of rules in this release.
You should update your config file as follows:
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)