From 7ae91612c13367e43752d9ff327d10e3801e9db9 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 15 Jul 2023 11:21:49 +0800 Subject: [PATCH 1/3] Sync the config from the osu project. Most change is from the https://github.com/ppy/osu/commit/81bfe1406386a8c40132ccdc39afefdbf5049609 --- osu.Game.Rulesets.Karaoke.sln.DotSettings | 32 ++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke.sln.DotSettings b/osu.Game.Rulesets.Karaoke.sln.DotSettings index 13aef5a19..cbfb9010d 100644 --- a/osu.Game.Rulesets.Karaoke.sln.DotSettings +++ b/osu.Game.Rulesets.Karaoke.sln.DotSettings @@ -7,11 +7,15 @@ ExplicitlyExcluded SOLUTION WARNING + WARNING + WARNING WARNING WARNING HINT HINT WARNING + WARNING + WARNING WARNING True WARNING @@ -59,13 +63,16 @@ HINT HINT WARNING + DO_NOT_SHOW WARNING WARNING WARNING WARNING + DO_NOT_SHOW WARNING WARNING WARNING + DO_NOT_SHOW WARNING WARNING WARNING @@ -91,6 +98,7 @@ WARNING HINT DO_NOT_SHOW + HINT HINT HINT ERROR @@ -118,7 +126,7 @@ WARNING WARNING WARNING - HINT + HINT WARNING WARNING WARNING @@ -126,6 +134,8 @@ HINT HINT WARNING + HINT + HINT HINT HINT HINT @@ -133,6 +143,8 @@ HINT HINT WARNING + HINT + HINT WARNING WARNING WARNING @@ -143,6 +155,7 @@ DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW + WARNING WARNING WARNING WARNING @@ -205,6 +218,7 @@ WARNING WARNING WARNING + WARNING WARNING HINT WARNING @@ -263,6 +277,8 @@ Explicit ExpressionBody BlockBody + BlockScoped + ExplicitlyTyped True NEXT_LINE True @@ -313,6 +329,7 @@ False AABB API + ARGB BPM EF FPS @@ -320,6 +337,8 @@ GL GLSL HID + HSL + HSPA HSV HTML HUD @@ -335,7 +354,9 @@ OS PM RGB + RGBA RNG + SDL SHA SRGB TK @@ -790,6 +811,15 @@ See the LICENCE file in the repository root for full licence text. <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + True + True + True + True + True + True + True + True + True True True True From a7d2082dc2629f0fecd0037ef3cab293178e7a59 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 15 Jul 2023 11:45:57 +0800 Subject: [PATCH 2/3] Change the config tot the file scoped namespace. See: https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpCodeStylePageImplSchema.html#resharper_csharp_namespace_body --- osu.Game.Rulesets.Karaoke.sln.DotSettings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke.sln.DotSettings b/osu.Game.Rulesets.Karaoke.sln.DotSettings index cbfb9010d..469da76c3 100644 --- a/osu.Game.Rulesets.Karaoke.sln.DotSettings +++ b/osu.Game.Rulesets.Karaoke.sln.DotSettings @@ -277,7 +277,7 @@ Explicit ExpressionBody BlockBody - BlockScoped + FileScoped ExplicitlyTyped True NEXT_LINE From fd3a68a0a19f36b86cc98bb02c462f467d37014c Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 15 Jul 2023 11:50:55 +0800 Subject: [PATCH 3/3] Change the object creation type to the target type. see: https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpCodeStylePageImplSchema.html#Object_creation --- osu.Game.Rulesets.Karaoke.sln.DotSettings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke.sln.DotSettings b/osu.Game.Rulesets.Karaoke.sln.DotSettings index 469da76c3..dc4184515 100644 --- a/osu.Game.Rulesets.Karaoke.sln.DotSettings +++ b/osu.Game.Rulesets.Karaoke.sln.DotSettings @@ -278,7 +278,7 @@ ExpressionBody BlockBody FileScoped - ExplicitlyTyped + TargetTyped True NEXT_LINE True