1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 20:33:21 +08:00

Turn off CA1507

This commit is contained in:
Huo Yaoyuan 2024-12-03 00:00:31 +08:00
parent 68f21709a8
commit 68f4fa5a57
4 changed files with 4 additions and 6 deletions

View File

@ -50,6 +50,10 @@ dotnet_diagnostic.IDE1006.severity = warning
# Too many noisy warnings for parsing/formatting numbers
dotnet_diagnostic.CA1305.severity = none
# CA1507: Use nameof to express symbol names
# Flaggs serialization name attributes
dotnet_diagnostic.CA1507.severity = suggestion
# CA1806: Do not ignore method results
# The usages for numeric parsing are explicitly optional
dotnet_diagnostic.CA1806.severity = suggestion

View File

@ -45,9 +45,7 @@ namespace osu.Game.Online.API.Requests.Responses
public KudosuAction Action;
#pragma warning disable CA1507 // Happens to name the same because of casing preference
[JsonProperty("action")]
#pragma warning restore CA1507
private string action
{
set

View File

@ -15,9 +15,7 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty("count")]
public int PlayCount { get; set; }
#pragma warning disable CA1507 // Happens to name the same because of casing preference
[JsonProperty("beatmap")]
#pragma warning restore CA1507
private APIBeatmap beatmap { get; set; }
public APIBeatmap BeatmapInfo

View File

@ -19,9 +19,7 @@ namespace osu.Game.Online.Notifications.WebSocket.Events
[JsonProperty(@"messages")]
public List<Message> Messages { get; set; } = null!;
#pragma warning disable CA1507 // Happens to name the same because of casing preference
[JsonProperty(@"users")]
#pragma warning restore CA1507
private List<APIUser> users { get; set; } = null!;
[OnDeserialized]