mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[Analyzers] Resolve Stylecop SA1516 violations and others to enable fully building on VS 17.12 (#35248)
* [Analyzers][Settings] Fix SA1516 * [Analyzers][Workspaces] Fix SA1516 * [Analyzers][Awake] Fix SA1516 * [Analyzers][Wox] Fix SA1516 * [MWB] Disable CA1716 warning on class name * [Wox] Update ExecuteFilePath property visibility for Json Source Generator * [Analyzers][MWB] Fix CA1716 on NativeMethods. --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
@@ -6,7 +6,10 @@ using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
// Disable the warning to preserve original code
|
||||
#pragma warning disable CA1716
|
||||
namespace MouseWithoutBorders.Class
|
||||
#pragma warning restore CA1716
|
||||
{
|
||||
internal static class Extensions
|
||||
{
|
||||
|
||||
@@ -36,7 +36,10 @@ using System.Text;
|
||||
[module: SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", Scope = "member", Target = "MouseWithoutBorders.NativeMethods.#GetAsyncKeyState(System.IntPtr)", MessageId = "0", Justification = "Dotnet port with style preservation")]
|
||||
[module: SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", Scope = "member", Target = "MouseWithoutBorders.NativeMethods.#GetAsyncKeyState(System.IntPtr)", MessageId = "return", Justification = "Dotnet port with style preservation")]
|
||||
|
||||
// Disable the warning to preserve original code
|
||||
#pragma warning disable CA1716
|
||||
namespace MouseWithoutBorders.Class
|
||||
#pragma warning restore CA1716
|
||||
{
|
||||
internal partial class NativeMethods
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user