We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b633b8 commit 20d2e15Copy full SHA for 20d2e15
ktlint/style-rules/src/main/kotlin/software/aws/ktlint/rules/DeprecatedUntilVersionRule.kt
@@ -21,7 +21,7 @@ class DeprecatedUntilVersionRule : Rule(RuleId("$RULE_SET:deprecated-until-versi
21
) {
22
if (node.elementType == ElementType.MODIFIER_LIST) {
23
val annotations = node.getChildren(null).filter { it.elementType == ElementType.ANNOTATION_ENTRY }
24
- val deprecated = annotations.any { it.text.startsWith("@Deprecated") }
+ val deprecated = annotations.any { it.text.startsWith("@Deprecated") && !it.text.contains("@DeprecatedUntilVersion") }
25
val deprecatedUntilVersion = annotations.any { it.text.startsWith("@DeprecatedUntilVersion") }
26
27
if (deprecatedUntilVersion && !deprecated) {
0 commit comments