Skip to content

Commit f3fcb3e

Browse files
author
aligneddev
committed
editorconfig and .gitignore
1 parent a80c1ff commit f3fcb3e

2 files changed

Lines changed: 140 additions & 0 deletions

File tree

.editorconfig

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Code files
7+
[*.{cs,csx,vb,vbx}]
8+
indent_size = 4
9+
#indent_style=tab
10+
#indent_style=space
11+
insert_final_newline = true
12+
charset = utf-8-bom
13+
trim_trailing_whitespace=true
14+
15+
# Xml project files
16+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
17+
indent_size = 2
18+
19+
# Xml config files
20+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
21+
indent_size = 2
22+
23+
# JSON files
24+
[*.json]
25+
indent_size = 2
26+
27+
# Dotnet code style settings:
28+
[*.{cs,vb}]
29+
# Sort using and Import directives with System.* appearing first
30+
dotnet_sort_system_directives_first = true
31+
# Avoid "this." and "Me." if not necessary
32+
dotnet_style_qualification_for_field = false:suggestion
33+
dotnet_style_qualification_for_property = false:suggestion
34+
dotnet_style_qualification_for_method = false:suggestion
35+
dotnet_style_qualification_for_event = false:suggestion
36+
37+
# Use language keywords instead of framework type names for type references
38+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
39+
dotnet_style_predefined_type_for_member_access = true:suggestion
40+
41+
# Suggest more modern language features when available
42+
dotnet_style_object_initializer = true:suggestion
43+
dotnet_style_collection_initializer = true:suggestion
44+
dotnet_style_coalesce_expression = true:suggestion
45+
dotnet_style_null_propagation = true:suggestion
46+
dotnet_style_explicit_tuple_names = true:suggestion
47+
48+
# CSharp code style settings:
49+
[*.cs]
50+
# Prefer "var" everywhere
51+
csharp_style_var_for_built_in_types = true:suggestion
52+
csharp_style_var_when_type_is_apparent = true:suggestion
53+
csharp_style_var_elsewhere = true:suggestion
54+
55+
# Prefer method-like constructs to have a block body
56+
csharp_style_expression_bodied_methods = false:none
57+
csharp_style_expression_bodied_constructors = false:none
58+
csharp_style_expression_bodied_operators = false:none
59+
60+
# Prefer property-like constructs to have an expression-body
61+
csharp_style_expression_bodied_properties = true:none
62+
csharp_style_expression_bodied_indexers = true:none
63+
csharp_style_expression_bodied_accessors = true:none
64+
65+
# Suggest more modern language features when available
66+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
67+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
68+
csharp_style_inlined_variable_declaration = true:suggestion
69+
csharp_style_throw_expression = true:suggestion
70+
csharp_style_conditional_delegate_call = true:suggestion
71+
72+
# Newline settings
73+
csharp_new_line_before_open_brace = all
74+
csharp_new_line_before_else = true
75+
csharp_new_line_before_catch = true
76+
csharp_new_line_before_finally = true
77+
csharp_new_line_before_members_in_object_initializers = true
78+
csharp_new_line_before_members_in_anonymous_types = true
79+
80+
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
81+
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
82+
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
83+
84+
dotnet_naming_symbols.private_fields.applicable_kinds = field
85+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
86+
87+
dotnet_naming_style.prefix_underscore.capitalization = camel_case
88+
dotnet_naming_style.prefix_underscore.required_prefix = _

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Ignore build results
2+
bin/
3+
obj/
4+
5+
# User-specific files
6+
*.user
7+
*.suo
8+
*.userosscache
9+
*.sln.docstates
10+
11+
# VS Code
12+
.history/
13+
14+
# Paket
15+
paket-files/
16+
17+
# Rider
18+
.idea/
19+
*.sln.iml
20+
21+
# Fable output
22+
fable-build/
23+
24+
# Logs
25+
*.log
26+
27+
# OS generated files
28+
.DS_Store
29+
Thumbs.db
30+
31+
# BikeCommuter.Web results
32+
TestResults/
33+
34+
# Azure Pipelines
35+
.azure-pipelines/
36+
37+
# Local secrets
38+
secrets.json
39+
appsettings.Development.json
40+
41+
# Others
42+
*.db
43+
*.sqlite
44+
*.bak
45+
*.cache
46+
47+
#Paket dependency manager
48+
paket-files/
49+
50+
src/.vs/*
51+
52+
.fake

0 commit comments

Comments
 (0)