Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some unnecessary suppressions #5400

Merged
merged 2 commits into from Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package io.gitlab.arturbosch.detekt.api

import io.gitlab.arturbosch.detekt.api.internal.EmptyConfig
Expand Down
Expand Up @@ -197,7 +197,6 @@ class RedundantVisibilityModifierRuleSpec {
hint(ExplicitApiMode::class)
languageVersionSettings.getFlag(AnalysisFlags.explicitApiMode)
} returns mode
@Suppress("DEPRECATION")
return CompilerResources(languageVersionSettings, DataFlowValueFactoryImpl(languageVersionSettings))
}

Expand Down
Expand Up @@ -46,7 +46,6 @@ fun BaseRule.lintWithContext(
val bindingContext = environment.getContextForPaths(listOf(ktFile) + additionalKtFiles)
val languageVersionSettings = environment.configuration.languageVersionSettings

@Suppress("DEPRECATION")
val dataFlowValueFactory = DataFlowValueFactoryImpl(languageVersionSettings)
val compilerResources = CompilerResources(languageVersionSettings, dataFlowValueFactory)
return findingsAfterVisit(ktFile, bindingContext, compilerResources)
Expand Down