Run Kotlin inspection "Variable declaration could be moved inside 'when'" on whole...
authorAlexey Belkov <alexey.belkov@jetbrains.com>
Mon, 23 May 2022 16:33:10 +0000 (19:33 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 23 May 2022 16:44:11 +0000 (16:44 +0000)
commitbc35c5c199f4b94ca16ce21ec8acf9c0f0b96584
tree2c6c5fc502c9fcb9b429c282f28c0eb395cff8e9
parent99e4f6c205974f6c8351650746687812a0022375
Run Kotlin inspection "Variable declaration could be moved inside 'when'" on whole project

GitOrigin-RevId: a55631180acd3340bded3e0cdfa46bf3afb3cf94
90 files changed:
java/idea-ui/src/com/intellij/ide/projectWizard/generators/IntelliJNewProjectWizardStep.kt
java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/inference/ParameterNullityInference.kt
java/java-impl-refactorings/src/com/intellij/refactoring/extractMethod/newImpl/CodeFragmentAnalyzer.kt
java/java-impl-refactorings/src/com/intellij/refactoring/extractMethod/newImpl/ExtractMethodHelper.kt
java/java-tests/testSrc/com/intellij/java/codeInsight/completion/JavaReflectionParametersCompletionTest.kt
notebooks/visualization/src/org/jetbrains/plugins/notebooks/visualization/r/inlays/components/NotebookTabs.kt
platform/credential-store/src/gpg/gpgUtil.kt
platform/diff-impl/tests/testSrc/com/intellij/diff/merge/MergeAutoTest.kt
platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserUtil.kt
platform/platform-impl/src/com/intellij/ide/impl/TrustedProjects.kt
platform/platform-impl/src/com/intellij/ui/colorpicker/GraphicalColorPipette.kt
platform/script-debugger/protocol/protocol-model-generator/src/Generator.kt
platform/testFramework/src/com/intellij/util/io/impl/DirectoryContentSpecImpl.kt
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CurrentBranchComponent.kt
platform/vcs-tests/testSrc/com/intellij/openapi/vcs/BaseChangeListsTest.kt
plugins/eclipse/src/org/jetbrains/idea/eclipse/codeStyleMapping/valueConversions/EclipseValueConversions.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/documentation/EditorConfigElementDescriptionProvider.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/findusages/EditorConfigFindUsagesProvider.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/findusages/EditorConfigFindVariableUsagesHandler.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/inspections/EditorConfigMissingRequiredDeclarationInspection.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/inspections/EditorConfigPatternRedundancyInspection.kt
plugins/editorconfig/src/org/editorconfig/language/codeinsight/refactoring/EditorConfigRenameHandler.kt
plugins/editorconfig/src/org/editorconfig/language/index/EditorConfigIdentifierIndex.kt
plugins/editorconfig/src/org/editorconfig/language/psi/base/EditorConfigDescribableElementBase.kt
plugins/editorconfig/src/org/editorconfig/language/util/EditorConfigPsiTreeUtil.kt
plugins/gradle/java/src/execution/test/runner/TestTasksChooser.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/annotator/GroovyAnnotator30.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/untypedUnresolvedAccess/UnresolvedReferenceInspectionSink.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/psiImplUtil.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/patterns/GroovyClosurePattern.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/util/lValueUtil.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/CategoryMemberContributor.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/GrCodeReferenceResolver.kt
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/transformations/indexedProperty/impl.kt
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/completion/completeReferenceElement.kt
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/convertToStatic/fixes.kt
plugins/kotlin/analysis/src/org/jetbrains/kotlin/idea/caches/resolve/util/JavaResolveExtension.kt
plugins/kotlin/analysis/src/org/jetbrains/kotlin/idea/structureView/KotlinStructureViewElement.kt
plugins/kotlin/analysis/src/org/jetbrains/kotlin/idea/vfilefinder/IDEVirtualFileFinderFactory.kt
plugins/kotlin/compiler-plugins/sam-with-receiver/common/src/org/jetbrains/kotlin/idea/compilerPlugin/samWithReceiver/IdeSamWithReceiverComponentContributor.kt
plugins/kotlin/completion/src/org/jetbrains/kotlin/idea/completion/KeywordValues.kt
plugins/kotlin/completion/src/org/jetbrains/kotlin/idea/completion/Weighers.kt
plugins/kotlin/completion/src/org/jetbrains/kotlin/idea/completion/smart/SmartCompletion.kt
plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/search/usagesSearch/operators/ContainsOperatorReferenceSearcher.kt
plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/search/usagesSearch/operators/DestructuringDeclarationReferenceSearcher.kt
plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/klib/KotlinNativeLibrariesDependencySubstitutor.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/actions/generate/utils.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/hierarchy/KotlinTypeHierarchyProvider.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/MapGetWithNotNullAssertionOperatorInspection.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/coroutines/DirectUseOfResultTypeInspection.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/Utils.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/joinLines/JoinToStringTemplateHandler.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/createFromUsage/createClass/createClassUtils.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/introduce/introduceTypeAlias/IntroduceTypeAliasHandler.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/pullUp/KotlinPullUpHelper.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/safeDelete/SafeDeleteImportDirectiveUsageInfo.kt
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/search/usagesSearch/utils.kt
plugins/kotlin/j2k/old/src/org/jetbrains/kotlin/j2k/AnnotationConverter.kt
plugins/kotlin/j2k/old/src/org/jetbrains/kotlin/j2k/ExpressionConverter.kt
plugins/kotlin/j2k/old/src/org/jetbrains/kotlin/j2k/ForConverter.kt
plugins/kotlin/j2k/old/src/org/jetbrains/kotlin/j2k/importConversion.kt
plugins/kotlin/jvm-debugger/util/src/org/jetbrains/kotlin/idea/debugger/KotlinEditorTextProvider.kt
plugins/kotlin/jvm/src/org/jetbrains/kotlin/idea/scratch/compile/KtScratchSourceFileProcessor.kt
plugins/kotlin/tests-common/test/org/jetbrains/kotlin/idea/renderer/AbstractDescriptorRendererTest.kt
plugins/kotlin/tests-common/test/org/jetbrains/kotlin/idea/test/util/jetTestUtils.kt
plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/controlStructures/KotlinUSwitchEntry.kt
plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/declarations/AbstractKotlinUVariable.kt
plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/internal/baseKotlinInternalUastUtils.kt
plugins/kotlin/uast/uast-kotlin-fir/src/org/jetbrains/uast/kotlin/FirKotlinUastResolveProviderService.kt
plugins/markdown/core/src/org/intellij/plugins/markdown/extensions/common/BaseStylesExtension.kt
plugins/markdown/core/src/org/intellij/plugins/markdown/extensions/common/InlineStylesExtension.kt
plugins/markdown/core/src/org/intellij/plugins/markdown/lang/psi/impl/MarkdownCodeFence.kt
plugins/markdown/core/src/org/intellij/plugins/markdown/lang/psi/impl/MarkdownFrontMatterHeader.kt
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/dependency/analyzer/DependencyAnalyzerGoToPackageSearchAction.kt
plugins/settings-repository/src/git/pull.kt
plugins/settings-sync/src/com/intellij/settingsSync/CloudConfigServerCommunicator.kt
plugins/settings-sync/src/com/intellij/settingsSync/ManualSyncAction.kt
python/python-psi-impl/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibCanonicalPathProvider.kt
python/python-psi-impl/src/com/jetbrains/python/documentation/PyDocumentationLink.kt
python/python-psi-impl/src/com/jetbrains/python/inspections/PyDunderSlotsInspection.kt
python/python-psi-impl/src/com/jetbrains/python/inspections/PyTypeHintsInspection.kt
python/src/com/jetbrains/python/codeInsight/mlcompletion/PyReceiverMlCompletionFeatures.kt
python/src/com/jetbrains/python/highlighting/PyRainbowVisitor.kt
python/src/com/jetbrains/python/sdk/add/PyAddExistingVirtualEnvPanel.kt
python/src/com/jetbrains/python/testing/PySMTestProxyUtils.kt
python/src/com/jetbrains/python/testing/pyTestParametrized/PyTestParamterized.kt
uast/uast-common/src/org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt
uast/uast-common/src/org/jetbrains/uast/expressions/ULiteralExpression.kt
uast/uast-java/src/org/jetbrains/uast/java/JavaAbstractUElement.kt
uast/uast-java/src/org/jetbrains/uast/java/expressions/JavaULambdaExpression.kt