mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-17 15:00:29 +00:00
Resolve CA1812
This commit is contained in:
@@ -111,7 +111,6 @@ dotnet_diagnostic.ca1028.severity = silent
|
||||
dotnet_diagnostic.ca1031.severity = silent
|
||||
|
||||
# TODO - one at a time
|
||||
dotnet_diagnostic.ca1812.severity = silent
|
||||
dotnet_diagnostic.ca1823.severity = silent
|
||||
dotnet_diagnostic.ca2000.severity = silent
|
||||
dotnet_diagnostic.ca2002.severity = silent
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin {
|
||||
return Uri.EscapeUriString(response.Content!.Link!);
|
||||
}
|
||||
|
||||
#pragma warning disable CA1812 // False positive
|
||||
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
|
||||
private sealed class MeowResponse {
|
||||
[JsonProperty(PropertyName = "file", Required = Required.Always)]
|
||||
@@ -60,5 +61,6 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin {
|
||||
[JsonConstructor]
|
||||
private MeowResponse() { }
|
||||
}
|
||||
#pragma warning restore CA1812 // False positive
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper {
|
||||
#pragma warning disable CA1812 // False positive
|
||||
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
|
||||
internal sealed class ResponseData {
|
||||
#pragma warning disable CS0649
|
||||
@@ -58,4 +59,5 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper {
|
||||
private InternalData() { }
|
||||
}
|
||||
}
|
||||
#pragma warning restore CA1812 // False positive
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user