Skip to content

Commit

Permalink
Suppress deprecation warnings in PotentialBugProvider.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyVPinchuk committed Sep 20, 2022
1 parent 897eee5 commit 14d7bad
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -13,16 +13,15 @@ class PotentialBugProvider : DefaultRuleSetProvider {

override val ruleSetId: String = "potential-bugs"

@Suppress("DEPRECATION")
override fun instance(config: Config): RuleSet = RuleSet(
ruleSetId,
listOf(
AvoidReferentialEquality(config),
Deprecation(config),
DontDowncastCollectionTypes(config),
DoubleMutabilityForCollection(config),
DuplicateCaseInWhenExpression(config),
ElseCaseInsteadOfExhaustiveWhen(config),
@Suppress("DEPRECATION") DuplicateCaseInWhenExpression(config),
@Suppress("DEPRECATION") ElseCaseInsteadOfExhaustiveWhen(config),
EqualsAlwaysReturnsTrueOrFalse(config),
EqualsWithHashCodeExist(config),
ExitOutsideMain(config),
Expand All @@ -35,9 +34,9 @@ class PotentialBugProvider : DefaultRuleSetProvider {
LateinitUsage(config),
MapGetWithNotNullAssertionOperator(config),
MissingPackageDeclaration(config),
MissingWhenCase(config),
@Suppress("DEPRECATION") MissingWhenCase(config),
NullCheckOnMutableProperty(config),
RedundantElseInWhen(config),
@Suppress("DEPRECATION") RedundantElseInWhen(config),
UnconditionalJumpStatementInLoop(config),
UnnecessaryNotNullOperator(config),
UnnecessarySafeCall(config),
Expand Down

0 comments on commit 14d7bad

Please sign in to comment.