Skip to content

Commit aae9ed1

Browse files
committed
add todo to emit as error in the future
1 parent 2e5370f commit aae9ed1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Elastic.Markdown/Myst/FrontMatter/Applicability.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ public static bool TryParse(string? value, IList<(Severity, string)> diagnostics
188188
"discontinued" => ProductLifecycle.Discontinued,
189189
_ => throw new Exception($"Unknown product lifecycle: {tokens[0]}")
190190
};
191+
192+
// TODO emit as error when all docs have been updated
191193
if (lifecycle is ProductLifecycle.Planned or ProductLifecycle.Deprecated or ProductLifecycle.Development)
192194
diagnostics.Add((Severity.Hint, $"The '{lookup}' lifecycle is deprecated and will be removed in a future release."));
193195

0 commit comments

Comments
 (0)