From a8e61ef3ab2754b89e4670a92a2f1524dc9985e0 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Sun, 21 Apr 2024 20:56:40 +1000 Subject: [PATCH] Add in editorconfig --- .editorconfig | 35 +++++++++++++++++++++++++++++++++++ Saunter.sln | 1 + 2 files changed, 36 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..27ce2c66 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 4 +tab-width = 4 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = false +csharp_indent_labels = one_less_than_current +csharp_using_directive_placement = outside_namespace:suggestion +csharp_prefer_simple_using_statement = true:suggestion +csharp_prefer_braces = true:suggestion + +[*.{build,config,csproj,js,json,proj,props,targets,xml,ruleset,xsd,yml,yaml}] +indent_size = 2 +tab-width = 2 +max_line_length = 160 + +[*.{cs,cshtml,ascx,aspx}] + +#### C#/.NET Coding Conventions #### + +# 'using' directive preferences +dotnet_sort_system_directives_first = true +csharp_using_directive_placement = outside_namespace:suggestion + +[*.{cs,vb}] + +# Naming styles +tab_width = 4 +end_of_line = crlf diff --git a/Saunter.sln b/Saunter.sln index 89b19027..106c5858 100644 --- a/Saunter.sln +++ b/Saunter.sln @@ -17,6 +17,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StreetlightsAPI", "examples EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E0D34C77-924E-4F6B-9289-5A2F07D125A8}" ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig CHANGELOG.md = CHANGELOG.md .github\workflows\ci.yaml = .github\workflows\ci.yaml Directory.Build.props = Directory.Build.props