Update project files for configuration changes. (#14281)
This commit is contained in:
committed by
GitHub
parent
9b080c0ef3
commit
c5b3f62f6f
@@ -11,19 +11,14 @@ using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.YAMLLinter
|
||||
{
|
||||
internal class Program
|
||||
internal static class Program
|
||||
{
|
||||
private static int Main(string[] args)
|
||||
{
|
||||
return new Program().Run();
|
||||
}
|
||||
|
||||
private int Run()
|
||||
private static async Task<int> Main(string[] args)
|
||||
{
|
||||
var stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
|
||||
var errors = RunValidation().Result;
|
||||
var errors = await RunValidation();
|
||||
|
||||
if (errors.Count == 0)
|
||||
{
|
||||
@@ -43,7 +38,7 @@ namespace Content.YAMLLinter
|
||||
return -1;
|
||||
}
|
||||
|
||||
private async Task<Dictionary<string, HashSet<ErrorNode>>> ValidateClient()
|
||||
private static async Task<Dictionary<string, HashSet<ErrorNode>>> ValidateClient()
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{DummyTicker = true, Disconnected = true});
|
||||
var client = pairTracker.Pair.Client;
|
||||
@@ -61,7 +56,7 @@ namespace Content.YAMLLinter
|
||||
return clientErrors;
|
||||
}
|
||||
|
||||
private async Task<Dictionary<string, HashSet<ErrorNode>>> ValidateServer()
|
||||
private static async Task<Dictionary<string, HashSet<ErrorNode>>> ValidateServer()
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{DummyTicker = true, Disconnected = true});
|
||||
var server = pairTracker.Pair.Server;
|
||||
@@ -79,7 +74,7 @@ namespace Content.YAMLLinter
|
||||
return serverErrors;
|
||||
}
|
||||
|
||||
public async Task<Dictionary<string, HashSet<ErrorNode>>> RunValidation()
|
||||
public static async Task<Dictionary<string, HashSet<ErrorNode>>> RunValidation()
|
||||
{
|
||||
var allErrors = new Dictionary<string, HashSet<ErrorNode>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user