mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-19 15:58:39 +00:00
Resolve CA1303
This commit is contained in:
@@ -111,7 +111,6 @@ dotnet_diagnostic.ca1028.severity = silent
|
|||||||
dotnet_diagnostic.ca1031.severity = silent
|
dotnet_diagnostic.ca1031.severity = silent
|
||||||
|
|
||||||
# TODO - one at a time
|
# TODO - one at a time
|
||||||
dotnet_diagnostic.ca1303.severity = silent
|
|
||||||
dotnet_diagnostic.ca1307.severity = silent
|
dotnet_diagnostic.ca1307.severity = silent
|
||||||
dotnet_diagnostic.ca1308.severity = silent
|
dotnet_diagnostic.ca1308.severity = silent
|
||||||
dotnet_diagnostic.ca1508.severity = silent
|
dotnet_diagnostic.ca1508.severity = silent
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ namespace ArchiSteamFarm.NLog {
|
|||||||
private static readonly ConcurrentHashSet<LoggingRule> ConsoleLoggingRules = new();
|
private static readonly ConcurrentHashSet<LoggingRule> ConsoleLoggingRules = new();
|
||||||
private static readonly SemaphoreSlim ConsoleSemaphore = new(1, 1);
|
private static readonly SemaphoreSlim ConsoleSemaphore = new(1, 1);
|
||||||
|
|
||||||
|
private static string Backspace => "\b \b";
|
||||||
|
|
||||||
private static bool IsUsingCustomConfiguration;
|
private static bool IsUsingCustomConfiguration;
|
||||||
private static bool IsWaitingForUserInput;
|
private static bool IsWaitingForUserInput;
|
||||||
|
|
||||||
@@ -279,8 +281,7 @@ namespace ArchiSteamFarm.NLog {
|
|||||||
Console.Write(' ');
|
Console.Write(' ');
|
||||||
Console.SetCursorPosition(Console.BufferWidth - 1, Console.CursorTop - 1);
|
Console.SetCursorPosition(Console.BufferWidth - 1, Console.CursorTop - 1);
|
||||||
} else {
|
} else {
|
||||||
// There are two \b characters here
|
Console.Write(Backspace);
|
||||||
Console.Write(@" ");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user