Format the project with 'dotnet format' (#2551)

* Sync and Re-Format

* Fix Title string.

* Fix indentation.
This commit is contained in:
NaN
2023-02-13 14:45:59 -03:00
committed by GitHub
parent 71e9ecb21e
commit 257f246d1d
401 changed files with 3178 additions and 2671 deletions

View File

@@ -1,7 +1,7 @@
using System;
using Discord.Analyzers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Discord.Analyzers;
using System;
using TestHelper;
using Xunit;

View File

@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.Simplification;

View File

@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
using System;
namespace TestHelper
@@ -84,4 +84,4 @@ namespace TestHelper
}
}
}
}
}

View File

@@ -1,13 +1,13 @@
using Discord.Commands;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Text;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Text;
using Discord.Commands;
namespace TestHelper
{

View File

@@ -1,8 +1,8 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
using Xunit;

View File

@@ -1,4 +1,4 @@
using Discord.API;
using Discord.API;
using Discord.API.Rest;
using Discord.Net;
using Discord.Rest;

View File

@@ -76,7 +76,7 @@ namespace Discord
await guild.ModifyAsync(x => { x.SystemChannel = new Optional<ITextChannel>(systemChannel); });
Assert.Equal(systemChannel.Id, guild.SystemChannelId);
await Assert.ThrowsAsync<NullReferenceException>( async () =>
await Assert.ThrowsAsync<NullReferenceException>(async () =>
{
await guild.ModifyAsync(x => x.SystemChannel = null);
});
@@ -103,7 +103,7 @@ namespace Discord
await guild.ModifyAsync(x => x.AfkChannel = new Optional<IVoiceChannel>(afkChannel));
Assert.Equal(afkChannel.Id, guild.AFKChannelId);
await Assert.ThrowsAsync<NullReferenceException>( async () =>
await Assert.ThrowsAsync<NullReferenceException>(async () =>
{
await guild.ModifyAsync(x => x.AfkChannel = null);
});

View File

@@ -1,8 +1,8 @@
using Discord.Rest;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Text;
namespace Discord
{

View File

@@ -1,5 +1,5 @@
using System;
using Discord;
using System;
using Xunit;
namespace Discord;
@@ -17,7 +17,7 @@ public class CommandBuilderTests
ApplicationCommandOptionType.String,
"option1 description",
isRequired: true,
choices: new []
choices: new[]
{
new ApplicationCommandOptionChoiceProperties()
{

View File

@@ -1,4 +1,4 @@
using Discord.Rest;
using Discord.Rest;
using FluentAssertions;
using Moq;
using System;

View File

@@ -1,5 +1,5 @@
using Xunit;
using Discord.Rest;
using Xunit;
namespace Discord
{

View File

@@ -20,7 +20,7 @@ namespace Discord
public DateTimeOffset CreatedAt => throw new NotImplementedException();
public ulong Id => throw new NotImplementedException();
public ChannelFlags Flags => throw new NotImplementedException();
public Task AddPermissionOverwriteAsync(IRole role, OverwritePermissions permissions, RequestOptions options = null)

View File

@@ -1,8 +1,8 @@
using Discord.Audio;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Discord.Audio;
namespace Discord
{

View File

@@ -214,7 +214,7 @@ namespace Discord
{
throw new NotImplementedException();
}
public Task<IUserMessage> SendFileAsync(FileAttachment attachment, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();
public Task<IUserMessage> SendFilesAsync(IEnumerable<FileAttachment> attachments, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();
public Task<IThreadChannel> CreateThreadAsync(string name, ThreadType type = ThreadType.PublicThread, ThreadArchiveDuration autoArchiveDuration = ThreadArchiveDuration.OneDay, IMessage message = null, bool? invitable = null, int? slowmode = null, RequestOptions options = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();

View File

@@ -1,9 +1,9 @@
using Discord.Audio;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Discord.Audio;
namespace Discord
{