From 66773f6d7d26436ac4b0c751f70c17f09cd1fb95 Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Wed, 12 Jan 2022 15:49:28 -0800 Subject: [PATCH] Use comments to disable identifier typos instead --- osu.Desktop/Windows/WindowsKey.cs | 5 ++--- .../Online/API/Requests/GetUserRecentActivitiesRequest.cs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/osu.Desktop/Windows/WindowsKey.cs b/osu.Desktop/Windows/WindowsKey.cs index ec4d3f5d74..fdca2028d3 100644 --- a/osu.Desktop/Windows/WindowsKey.cs +++ b/osu.Desktop/Windows/WindowsKey.cs @@ -2,12 +2,12 @@ // See the LICENCE file in the repository root for full licence text. using System; -using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; +// ReSharper disable IdentifierTypo + namespace osu.Desktop.Windows { - [SuppressMessage("ReSharper", "IdentifierTypo")] internal class WindowsKey { private delegate int LowLevelKeyboardProcDelegate(int nCode, int wParam, ref KdDllHookStruct lParam); @@ -16,7 +16,6 @@ internal class WindowsKey private const int wh_keyboard_ll = 13; private const int wm_keydown = 256; - private const int wm_syskeyup = 261; //Resharper disable once NotAccessedField.Local diff --git a/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs b/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs index 62b27b31b4..f2fa51bde7 100644 --- a/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs +++ b/osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs @@ -2,7 +2,6 @@ // 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 @@ -20,10 +19,11 @@ public GetUserRecentActivitiesRequest(long userId, int page = 0, int itemsPerPag protected override string Target => $"users/{userId}/recent_activity"; } - [SuppressMessage("ReSharper", "IdentifierTypo")] public enum RecentActivityType { Achievement, + + // ReSharper disable once IdentifierTypo BeatmapPlaycount, BeatmapsetApprove, BeatmapsetDelete,