forked from wixtoolset/Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
37 lines (32 loc) · 1.48 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
#
# Do NOT modify this file. Update the canonical version in Home\repo-template\src\.editorconfig
# then update all of the repos.
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{cs,vb}]
dotnet_sort_system_directives_first = true
[*.cs]
csharp_indent_case_contents = true : error
csharp_indent_switch_labels = true : error
csharp_new_line_before_open_brace = all
csharp_prefer_braces = true : error
csharp_style_expression_bodied_methods = when_on_single_line : suggestion
csharp_style_expression_bodied_constructors = when_on_single_line : suggestion
csharp_style_expression_bodied_operators = when_on_single_line : suggestion
csharp_style_expression_bodied_properties = when_on_single_line : suggestion
csharp_style_expression_bodied_indexers = when_on_single_line : suggestion
csharp_style_expression_bodied_accessors = when_on_single_line : suggestion
csharp_style_var_elsewhere = true : suggestion
csharp_style_var_for_built_in_types = true : suggestion
csharp_style_var_when_type_is_apparent = true : suggestion
dotnet_style_qualification_for_event = true : error
dotnet_style_qualification_for_field = true : error
dotnet_style_qualification_for_method = true : error
dotnet_style_qualification_for_property = true : error
[*.targets]
indent_size = 2