Skip to content

Commit 17a3f3a

Browse files
Remove ReSharper ignores
1 parent e68195e commit 17a3f3a

File tree

11 files changed

+0
-20
lines changed

11 files changed

+0
-20
lines changed

Commands/Owner/EvalCommands.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ private static string HideSensitiveInfo(string input)
176176
}
177177
}
178178

179-
// ReSharper disable MemberCanBePrivate.Global
180-
// ReSharper disable UnusedAutoPropertyAccessor.Global
181-
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
182179
public class Globals
183180
{
184181
public Globals(DiscordClient client, SlashCommandContext ctx)

Events/ComponentInteractionEvent.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,6 @@ await e.Interaction.CreateResponseAsync(DiscordInteractionResponseType.ChannelMe
495495
private static partial Regex IdPattern();
496496
}
497497

498-
// ReSharper disable MemberCanBePrivate.Global
499-
// ReSharper disable UnusedAutoPropertyAccessor.Global
500-
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
501498
public class EventGlobals
502499
{
503500
public EventGlobals(DiscordClient client, DiscordInteraction ctx)

Events/GuildEvents.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
public class GuildEvents
44
{
5-
// ReSharper disable once MemberCanBePrivate.Global
65
public static readonly List<ulong> UnavailableGuilds = [];
76
private static DiscordChannel _guildLogChannel;
87

Helpers/UserInfoHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public static Task<DiscordEmbed> GenerateUserInfoEmbed(DiscordUser user)
114114
.WithColor(Program.BotColor)
115115
.WithFooter($"User ID: {user.Id}")
116116
.AddField("User Mention", user.Mention, true);
117-
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
118117
if (user.GlobalName is not null) basicUserInfoEmbed.AddField("Display Name", user.GlobalName, true);
119118
basicUserInfoEmbed.AddField("Account created on", $"<t:{createdAt}:F> (<t:{createdAt}:R>)");
120119

Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ internal static async Task Main()
154154
catch
155155
{
156156
Discord.Logger.LogError(BotEventId,
157-
// ReSharper disable once LogMessageIsSentenceProblem
158157
"\"homeChannel\" or \"homeServer\" in config.json are misconfigured. Please make sure you have a valid ID for both of these values.");
159158
Environment.Exit(1);
160159
}
@@ -165,7 +164,6 @@ internal static async Task Main()
165164
if (ConfigJson is null || ConfigJson.WolframAlphaAppId == "")
166165
{
167166
Discord.Logger.LogWarning(BotEventId,
168-
// ReSharper disable once LogMessageIsSentenceProblem
169167
"WolframAlpha commands disabled due to missing App ID.");
170168

171169
DisabledCommands.Add("wa");
@@ -174,7 +172,6 @@ internal static async Task Main()
174172
if (ConfigJson is null || ConfigJson.FeedbackChannel == "")
175173
{
176174
Discord.Logger.LogWarning(BotEventId,
177-
// ReSharper disable once LogMessageIsSentenceProblem
178175
"Feedback command disabled due to missing channel ID.");
179176

180177
DisabledCommands.Add("feedback");

ServerSpecificFeatures.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,8 @@ public async Task Poop(CommandContext ctx, [RemainingText] string much = "")
195195

196196
try
197197
{
198-
// ReSharper disable JoinDeclarationAndInitializer
199198
DiscordChannel chan;
200199
DiscordMessage msg;
201-
// ReSharper restore JoinDeclarationAndInitializer
202200
#if DEBUG
203201
chan = await Program.Discord.GetChannelAsync(893654247709741088);
204202
msg = await chan.GetMessageAsync(1282187612844589168);

Tasks/ActivityTasks.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public static async Task ExecuteAsync()
99
await Task.Delay(TimeSpan.FromHours(1));
1010
await SetActivityAsync();
1111
}
12-
// ReSharper disable once FunctionNeverReturns
1312
}
1413

1514
public static async Task SetActivityAsync()
@@ -53,7 +52,6 @@ await Program.Db.HashSetAsync("customStatus", "userStatus",
5352
}
5453

5554
var chosenStatus = random.Next(0, customStatusList.Length);
56-
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
5755
if (Program.Discord.CurrentUser.Presence is not null && !string.IsNullOrWhiteSpace(Program.Discord.CurrentUser.Presence.Activity.Name))
5856
if (customStatusList.Length != 1)
5957
while (customStatusList[chosenStatus].Name.ToString() ==
@@ -151,7 +149,6 @@ await Program.Db.HashSetAsync("customStatus", "userStatus",
151149
return;
152150
}
153151

154-
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
155152
if (Program.Discord.CurrentUser.Presence is null || string.IsNullOrWhiteSpace(Program.Discord.CurrentUser.Presence.Activity.Name))
156153
await Program.Db.StringSetAsync("customStatusLastUpdated", $"{DateTime.Now}");
157154
else

Tasks/CommandTasks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public static async Task ExecuteAsync()
99
await PopulateApplicationCommandListAsync();
1010
await Task.Delay(TimeSpan.FromMinutes(1));
1111
}
12-
// ReSharper disable once FunctionNeverReturns
1312
}
1413

1514
public static async Task PopulateApplicationCommandListAsync()

Tasks/DBotsTasks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public static async Task ExecuteAsync()
2121
await UpdateStatsAsync();
2222
await Task.Delay(TimeSpan.FromHours(1));
2323
}
24-
// ReSharper disable once FunctionNeverReturns
2524
}
2625

2726
public static async Task UpdateStatsAsync()

Tasks/DatabaseTasks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public static async Task ExecuteAsync()
99
await CheckDatabaseConnectionAsync();
1010
await Task.Delay(TimeSpan.FromSeconds(5));
1111
}
12-
// ReSharper disable once FunctionNeverReturns
1312
}
1413

1514
public static async Task<double> CheckDatabaseConnectionAsync()

0 commit comments

Comments
 (0)