Skip to content

Commit cdc81b4

Browse files
committed
Initial commit
0 parents  commit cdc81b4

21 files changed

+1074
-0
lines changed

.editorconfig

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = tab
9+
guidelines = 80, 120, 160
10+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
11+
12+
# Code files
13+
[*.{cs,csx,vb,vbx}]
14+
indent_size = 2
15+
16+
# Xml project files
17+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
18+
indent_size = 2
19+
20+
# Xml config files
21+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
22+
indent_size = 2
23+
24+
# JSON files
25+
[*.json]
26+
indent_size = 2
27+
28+
# YAML files
29+
[*.yml]
30+
indent_style = space
31+
32+
# Dotnet code style settings:
33+
[*.cs]
34+
# Sort using and Import directives with System.* appearing first
35+
dotnet_sort_system_directives_first = true
36+
37+
# Specify validation methods
38+
dotnet_code_quality.null_check_validation_methods = IsNotNull
39+
40+
# Don't use this. qualifier
41+
dotnet_style_qualification_for_field = false:suggestion
42+
dotnet_style_qualification_for_property = false:suggestion
43+
44+
# use int x = .. over Int32
45+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
46+
47+
# use int.MaxValue over Int32.MaxValue
48+
dotnet_style_predefined_type_for_member_access = true:suggestion
49+
50+
# Require var all the time.
51+
csharp_style_var_for_built_in_types = false:suggestion
52+
csharp_style_var_when_type_is_apparent = true:suggestion
53+
csharp_style_var_elsewhere = true:suggestion
54+
55+
# Disallow throw expressions.
56+
csharp_style_throw_expression = false:suggestion
57+
58+
# Newline settings
59+
csharp_new_line_before_open_brace = all
60+
csharp_new_line_before_else = true
61+
csharp_new_line_before_catch = true
62+
csharp_new_line_before_finally = true
63+
csharp_new_line_before_members_in_object_initializers = true
64+
csharp_new_line_before_members_in_anonymous_types = true
65+
66+
# CA1707: Identifiers should not contain underscores
67+
dotnet_diagnostic.CA1707.severity = silent

0 commit comments

Comments
 (0)