Skip to content

Commit

Permalink
Initial config
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Oct 14, 2018
1 parent e35b8cb commit 2dc3b3f
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 3 deletions.
117 changes: 117 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
root = true

[*]
indent_style = space
indent_size = 2
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{cs,cshtml}]
indent_size = 4

dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

dotnet_style_require_accessibility_modifiers = always:suggestion
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion

dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion

csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion

csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_accessors = 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_inlined_variable_declaration = true:suggestion

csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion

csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion

csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion

csharp_prefer_braces = true:none

dotnet_sort_system_directives_first = true

csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left

csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false

csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true

dotnet_naming_rule.without_fields_and_parameters_capitalization_of_pascal_case.symbols = without_fields_and_parameters
dotnet_naming_rule.without_fields_and_parameters_capitalization_of_pascal_case.style = capitalization_of_pascal_case
dotnet_naming_rule.without_fields_and_parameters_capitalization_of_pascal_case.severity = suggestion

dotnet_naming_rule.interfaces_required_prefix_of_i.symbols = interfaces
dotnet_naming_rule.interfaces_required_prefix_of_i.style = required_prefix_of_i
dotnet_naming_rule.interfaces_required_prefix_of_i.severity = suggestion

dotnet_naming_rule.asynchronous_methods_required_suffix_of_async.symbols = asynchronous_methods
dotnet_naming_rule.asynchronous_methods_required_suffix_of_async.style = required_suffix_of_async
dotnet_naming_rule.asynchronous_methods_required_suffix_of_async.severity = suggestion

dotnet_naming_symbols.without_fields_and_parameters.applicable_kinds = class, struct, interface, enum, property, method, event, delegate
dotnet_naming_symbols.asynchronous_methods.applicable_accessibilities = *

dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_symbols.asynchronous_methods.applicable_accessibilities = *

dotnet_naming_symbols.asynchronous_methods.applicable_kinds = method
dotnet_naming_symbols.asynchronous_methods.applicable_accessibilities = *
dotnet_naming_symbols.asynchronous_methods.required_modifiers = async

dotnet_naming_style.capitalization_of_pascal_case.capitalization = pascal_case

dotnet_naming_style.required_prefix_of_i.required_prefix = I

dotnet_naming_style.required_suffix_of_async.required_suffix = Async

[*.{markdown,md}]
trim_trailing_whitespace = false

[*.sln]
indent_style = tab
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ ClientBin/
*.publishsettings
orleans.codegen.cs

# Including strong name files can present a security risk
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk

Expand Down Expand Up @@ -317,7 +317,7 @@ __pycache__/
# OpenCover UI analysis results
OpenCover/

# Azure Stream Analytics local run output
# Azure Stream Analytics local run output
ASALocalRun/

# MSBuild Binary and Structured Log
Expand All @@ -326,5 +326,5 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
# MFractors (Xamarin productivity tool) working folder
.mfractor/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# NewWave

ニューウェーブ

0 comments on commit 2dc3b3f

Please sign in to comment.