Skip to content

Commit 14d0480

Browse files
committed
Move from hint to warning
1 parent d8e4d17 commit 14d0480

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tooling/docs-builder/Cli/DiffCommands.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public async Task<int> ValidateRedirects(string? path = null, Cancel ctx = defau
5656
return collector.Errors;
5757
}
5858

59-
var sourceDirectory = buildContext.DocumentationSourceDirectory;
6059
var root = Paths.DetermineSourceDirectoryRoot(buildContext.DocumentationSourceDirectory);
6160
if (root is null)
6261
{
@@ -89,7 +88,7 @@ public async Task<int> ValidateRedirects(string? path = null, Cancel ctx = defau
8988
continue;
9089
if (redirects.ContainsKey(rootRelativePath))
9190
{
92-
collector.EmitHint(redirectFile.Source,
91+
collector.EmitWarning(redirectFile.Source,
9392
$"Redirect contains path relative to root '{rootRelativePath}' but should be relative to the documentation set '{docSetRelativePath}'");
9493
continue;
9594
}

0 commit comments

Comments
 (0)