Increase scope of identifier typo disables on special cases

This commit is contained in:
Joseph Madamba
2021-12-29 14:07:36 -08:00
parent c22a07d9fc
commit cdc148f78e
2 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,12 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System; using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace osu.Desktop.Windows namespace osu.Desktop.Windows
{ {
[SuppressMessage("ReSharper", "IdentifierTypo")]
internal class WindowsKey internal class WindowsKey
{ {
private delegate int LowLevelKeyboardProcDelegate(int nCode, int wParam, ref KdDllHookStruct lParam); 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 wh_keyboard_ll = 13;
private const int wm_keydown = 256; private const int wm_keydown = 256;
// ReSharper disable once IdentifierTypo
private const int wm_syskeyup = 261; private const int wm_syskeyup = 261;
//Resharper disable once NotAccessedField.Local //Resharper disable once NotAccessedField.Local
@ -71,7 +72,6 @@ namespace osu.Desktop.Windows
} }
[DllImport(@"user32.dll", EntryPoint = @"SetWindowsHookExA")] [DllImport(@"user32.dll", EntryPoint = @"SetWindowsHookExA")]
// ReSharper disable once IdentifierTypo
private static extern IntPtr setWindowsHookEx(int idHook, LowLevelKeyboardProcDelegate lpfn, IntPtr hMod, int dwThreadId); private static extern IntPtr setWindowsHookEx(int idHook, LowLevelKeyboardProcDelegate lpfn, IntPtr hMod, int dwThreadId);
[DllImport(@"user32.dll", EntryPoint = @"UnhookWindowsHookEx")] [DllImport(@"user32.dll", EntryPoint = @"UnhookWindowsHookEx")]

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using osu.Game.Online.API.Requests.Responses; using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests namespace osu.Game.Online.API.Requests
@ -19,11 +20,10 @@ namespace osu.Game.Online.API.Requests
protected override string Target => $"users/{userId}/recent_activity"; protected override string Target => $"users/{userId}/recent_activity";
} }
[SuppressMessage("ReSharper", "IdentifierTypo")]
public enum RecentActivityType public enum RecentActivityType
{ {
Achievement, Achievement,
// ReSharper disable once IdentifierTypo
BeatmapPlaycount, BeatmapPlaycount,
BeatmapsetApprove, BeatmapsetApprove,
BeatmapsetDelete, BeatmapsetDelete,