Skip to content

Commit

Permalink
Remove some unnecessary suppressions (#5400)
Browse files Browse the repository at this point in the history
* Remove @Suppress("DEPRECATION") as DataFlowValueFactoryImpl is not deprecated anymore.

* Remove @Suppress("unused") as everything is used many times.
  • Loading branch information
TWiStErRob committed Oct 10, 2022
1 parent 965e681 commit b5e2f27
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
@@ -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

0 comments on commit b5e2f27

Please sign in to comment.