Last active
June 8, 2023 06:17
-
-
Save MatthewKing/52bd0d539799e105a5f997909beb219f to your computer and use it in GitHub Desktop.
Baseline editorconfig, gitattributes, and gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root] = true | |
[*] | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[*.{csproj,props}] | |
indent_size = 2 | |
[*.cs] | |
indent_size = 4 | |
csharp_style_namespace_declarations = file_scoped:warning | |
csharp_using_directive_placement = outside_namespace:warning | |
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion | |
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style | |
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields | |
dotnet_naming_style.instance_field_style.capitalization = camel_case | |
dotnet_naming_style.instance_field_style.required_prefix = _ | |
dotnet_naming_symbols.instance_fields.applicable_kinds = field | |
dotnet_sort_system_directives_first = true | |
dotnet_style_object_initializer = false | |
dotnet_style_predefined_type_for_locals_parameters_members = true | |
dotnet_style_predefined_type_for_member_access = false | |
dotnet_style_prefer_inferred_anonymous_type_member_names = false | |
dotnet_style_qualification_for_event = false | |
dotnet_style_qualification_for_field = false | |
dotnet_style_qualification_for_method = false | |
dotnet_style_qualification_for_property = false | |
dotnet_style_readonly_field = true | |
dotnet_style_require_accessibility_modifiers = for_non_interface_members | |
dotnet_diagnostic.IDE0005.severity = warning # Remove unnecessary using directives | |
dotnet_diagnostic.IDE0017.severity = none # Use object initializers | |
dotnet_diagnostic.IDE0028.severity = none # Use collection initializers | |
dotnet_diagnostic.IDE0161.severity = warning # File-scoped namespaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.vs/ | |
.vscode/ | |
bin/ | |
obj/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment