summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-08-14 21:26:33 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-08-14 21:26:33 -0400
commitda4708337bcee095ea76b87460eb14f0f5134183 (patch)
treeb975c94e5f512ca4bed70192560449312f492c96
parent72d42ddff8be9bce4e9ab6a1ac04b9cc26deb42f (diff)
downloadSMAPI-da4708337bcee095ea76b87460eb14f0f5134183.tar.gz
SMAPI-da4708337bcee095ea76b87460eb14f0f5134183.tar.bz2
SMAPI-da4708337bcee095ea76b87460eb14f0f5134183.zip
minor tweaks to .editorconfig
-rw-r--r--src/.editorconfig9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/.editorconfig b/src/.editorconfig
index 4271803d..a5cdcf97 100644
--- a/src/.editorconfig
+++ b/src/.editorconfig
@@ -12,13 +12,16 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
+[*.csproj]
+indent_size = 2
+insert_final_newline = false
+
[*.json]
indent_size = 2
##########
## C# formatting
## documentation: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
-## some undocumented settings from: https://github.com/dotnet/roslyn/blob/master/.editorconfig
##########
[*.cs]
@@ -47,6 +50,7 @@ dotnet_style_explicit_tuple_names = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
+csharp_prefer_simple_default_expression = true:suggestion
# prefer method block bodies
csharp_style_expression_bodied_methods = false:suggestion
@@ -59,3 +63,6 @@ csharp_style_expression_bodied_accessors = true:suggestion
# prefer inline out variables
csharp_style_inlined_variable_declaration = true:warning
+
+# avoid superfluous braces
+csharp_prefer_braces = false:suggestion