diff --git a/.editorconfig b/.editorconfig index 21fa25c..b6dbdab 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,6 +10,7 @@ trim_trailing_whitespace = true [*.cs] indent_size = 4 max_line_length = 160 +csharp_style_namespace_declarations = block_scoped:suggestion #### Project C# Conventions #### @@ -33,9 +34,8 @@ csharp_style_expression_bodied_indexers = when_on_single_line:suggestion csharp_style_expression_bodied_accessors = false:suggestion csharp_style_expression_bodied_local_functions = when_on_single_line:suggestion -# Preserve compact control flow and Unity-compatible namespace syntax. +# Preserve compact control flow csharp_prefer_braces = when_multiline:suggestion -csharp_style_namespace_declarations = block_scoped:suggestion #### Project Naming Conventions #### diff --git a/Alchemy.SourceGenerator.Tests/.editorconfig b/Alchemy.SourceGenerator.Tests/.editorconfig new file mode 100644 index 0000000..4bf9ff5 --- /dev/null +++ b/Alchemy.SourceGenerator.Tests/.editorconfig @@ -0,0 +1,2 @@ +[*.cs] +csharp_style_namespace_declarations = file_scoped:suggestion diff --git a/Alchemy.SourceGenerator/.editorconfig b/Alchemy.SourceGenerator/.editorconfig new file mode 100644 index 0000000..4bf9ff5 --- /dev/null +++ b/Alchemy.SourceGenerator/.editorconfig @@ -0,0 +1,2 @@ +[*.cs] +csharp_style_namespace_declarations = file_scoped:suggestion diff --git a/Alchemy/Assets/Alchemy/Editor/BuiltinGroupDrawers.cs b/Alchemy/Assets/Alchemy/Editor/BuiltinGroupDrawers.cs index 6a25f5c..6faa5a9 100644 --- a/Alchemy/Assets/Alchemy/Editor/BuiltinGroupDrawers.cs +++ b/Alchemy/Assets/Alchemy/Editor/BuiltinGroupDrawers.cs @@ -91,7 +91,7 @@ public override VisualElement CreateRootElement(string label) paddingLeft = 3f, } }; - rootElement.Remove(rootElement.Q