From 3785bb5ca5de4057f64d580506baac08bff6e26b Mon Sep 17 00:00:00 2001 From: Andrew KeepCoding Date: Fri, 13 Dec 2024 15:27:18 +0900 Subject: [PATCH] Add editor configuration for file-scoped namespace --- WinUIGallery/.editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WinUIGallery/.editorconfig b/WinUIGallery/.editorconfig index 683280893..0065ff06f 100644 --- a/WinUIGallery/.editorconfig +++ b/WinUIGallery/.editorconfig @@ -90,6 +90,9 @@ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion # IDE0016: Null check can be simplified csharp_style_throw_expression = true:suggestion +# IDE0161: Convert to file-scoped namespace +csharp_style_namespace_declarations = file_scoped:warning + # dotnet_style_coalesce_expression = true:suggestion