Переглянути джерело

warning supression justification

flabbet 1 рік тому
батько
коміт
c5654aded0
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/PixiEditor.Extensions.Wasm/Interop.cs

+ 3 - 0
src/PixiEditor.Extensions.Wasm/Interop.cs

@@ -1,4 +1,5 @@
 using System.Diagnostics;
 using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
 using System.Reflection;
 using System.Reflection;
 using System.Runtime.CompilerServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ internal static class Program
     }
     }
 }
 }
 
 
+[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", 
+    Justification = "Interop is a special case, it's injected to C code and follows C naming conventions.")]
 internal static partial class Interop
 internal static partial class Interop
 {
 {
     [MethodImpl(MethodImplOptions.InternalCall)]
     [MethodImpl(MethodImplOptions.InternalCall)]