Skip to content

Commit

Permalink
improve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Feb 2, 2023
1 parent 200ec1e commit 823cb66
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ private static bool ContainsUnsupportedSequences(string codeownersPath)
{
Console.Error.WriteLine(
$"CODEOWNERS path \"{codeownersPath}\" ends with " +
"unsupported sequence of \"/**\". Replace it with \"/\".");
"unsupported sequence of \"/**\". Replace it with \"/\". " +
"Until then this path will never match.");
return true;
}

Expand All @@ -173,7 +174,8 @@ private static bool ContainsUnsupportedSequences(string codeownersPath)
{
Console.Error.WriteLine(
$"CODEOWNERS path \"{codeownersPath}\" ends with " +
"unsupported sequence of \"/**/\". Replace it with \"/\".");
"unsupported sequence of \"/**/\". Replace it with \"/\". " +
"Until then this path will never match.");
return true;
}

Expand All @@ -184,8 +186,9 @@ private static bool ContainsUnsupportedSequences(string codeownersPath)
{
Console.Error.WriteLine(
$"CODEOWNERS path \"{codeownersPath}\" contains " +
"unsupported sequence of \"**\" that is not \"/**/\". Replace it with \"*\". " +
"Until then this path will never match.");
"unsupported sequence of \"**\". Double star can be used only within slashes \"/**/\" " +
"or as a top-level catch all path of \"/**\". " +
"This path will never match.");
return true;
}

Expand Down

0 comments on commit 823cb66

Please sign in to comment.