From cdc148f78e08fe1929b4e1b8ddb59f8b683b194e Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Wed, 29 Dec 2021 14:07:36 -0800 Subject: [PATCH] Increase scope of identifier typo disables on special cases --- osu.Desktop/Windows/WindowsKey.cs | 4 ++-- .../Online/API/Requests/GetUserRecentActivitiesRequest.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Desktop/Windows/WindowsKey.cs b/osu.Desktop/Windows/WindowsKey.cs index c9d94cd05c..ec4d3f5d74 100644 --- a/osu.Desktop/Windows/WindowsKey.cs +++ b/osu.Desktop/Windows/WindowsKey.cs @@ -2,10 +2,12 @@ // See the LICENCE file in the repository root for full licence text. using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace osu.Desktop.Windows { + [SuppressMessage("ReSharper", "IdentifierTypo")] internal class WindowsKey { private delegate int LowLevelKeyboardProcDelegate(int nCode, int wParam, ref KdDllHookStruct lParam); @@ -15,7 +17,6 @@ namespace osu.Desktop.Windows private const int wh_keyboard_ll = 13; private const int wm_keydown = 256; - // ReSharper disable once IdentifierTypo private const int wm_syskeyup = 261; //Resharper disable once NotAccessedField.Local @@ -71,7 +72,6 @@ namespace osu.Desktop.Windows } [DllImport(@"user32.dll", EntryPoint = @"SetWindowsHookExA")] - // ReSharper disable once IdentifierTypo private static extern IntPtr setWindowsHookEx(int idHook, LowLevelKeyboardProcDelegate lpfn, IntPtr hMod, int dwThreadId); [DllImport(@"user32.dll", EntryPoint = @"UnhookWindowsHookEx")] diff --git a/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs b/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs index f2fa51bde7..62b27b31b4 100644 --- a/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs +++ b/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs @@ -2,6 +2,7 @@ // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests @@ -19,11 +20,10 @@ namespace osu.Game.Online.API.Requests protected override string Target => $"users/{userId}/recent_activity"; } + [SuppressMessage("ReSharper", "IdentifierTypo")] public enum RecentActivityType { Achievement, - - // ReSharper disable once IdentifierTypo BeatmapPlaycount, BeatmapsetApprove, BeatmapsetDelete,