Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal static class FormatCommandCommon
internal const int UnableToLocateMSBuildExitCode = 3;

private static string[] VerbosityLevels => new[] { "q", "quiet", "m", "minimal", "n", "normal", "d", "detailed", "diag", "diagnostic" };
private static string[] SeverityLevels => new[] { "info", "warn", "error" };
private static string[] SeverityLevels => new[] { "info", "warn", "error", "hidden" };

public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(Resources.SolutionOrProjectArgumentName)
{
Expand Down Expand Up @@ -290,6 +290,7 @@ internal static DiagnosticSeverity GetSeverity(string? severity)
FixSeverity.Error => DiagnosticSeverity.Error,
FixSeverity.Warn => DiagnosticSeverity.Warning,
FixSeverity.Info => DiagnosticSeverity.Info,
FixSeverity.Hidden => DiagnosticSeverity.Hidden,
_ => throw new ArgumentOutOfRangeException(nameof(severity)),
};
}
Expand Down
1 change: 1 addition & 0 deletions src/BuiltInTools/dotnet-format/FixSeverity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public static class FixSeverity
public const string Error = "error";
public const string Warn = "warn";
public const string Info = "info";
public const string Hidden = "hidden";
}
}