Use SuppressMessage attribute instead of #pragma warning to suppress naming violations
MODIFY
WalletWasabi.Backend/Program.cs
WalletWasabi.Backend/Program.cs
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using System;
+using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using WalletWasabi.Logging;
@@ -8,10 +9,8 @@ namespace WalletWasabi.Backend
{
public class Program
{
-#pragma warning disable IDE1006 // Naming Styles
-
+ [SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "The Main method is the entry point of a C# application")]
public static async Task Main(string[] args)
-#pragma warning restore IDE1006 // Naming Styles
{
try
{

MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
using NSubsys;
using System;
using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.IO.Compression;
using System.Linq;
@@ -57,10 +58,8 @@ namespace WalletWasabi.Packager
/// <summary>
/// Main entry point.
/// </summary>
-#pragma warning disable IDE1006 // Naming Styles
-
+ [SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "The Main method is the entry point of a C# application")]
private static async Task Main(string[] args)
-#pragma warning restore IDE1006 // Naming Styles
{
var argsProcessor = new ArgsProcessor(args);

MODIFY
WalletWasabi/Crypto/SchnorrBlindingSignature.cs
WalletWasabi/Crypto/SchnorrBlindingSignature.cs
using System;
+using System.Diagnostics.CodeAnalysis;
using NBitcoin;
using NBitcoin.Crypto;
using NBitcoin.Secp256k1;
namespace WalletWasabi.Crypto
{
+ [SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Crypto naming")]
public class SchnorrBlinding
{
public class Requester
{
-#pragma warning disable IDE1006 // Naming Styles
-
private Scalar _v = Scalar.Zero;
private Scalar _c = Scalar.Zero;
private Scalar _w = Scalar.Zero;
@@ -187,7 +187,5 @@ namespace WalletWasabi.Crypto
sha.GetHash(tmp);
return new Scalar(tmp) == signature.C;
}
-
-#pragma warning restore IDE1006 // Naming Styles
}
}

Use SuppressMessage attribute instead of #pragma warning to suppress naming violations