1
1
root = true
2
2
3
- # #########################################################
4
- # 🌐 General Settings
5
- # #########################################################
6
3
[* ]
7
- charset = utf-8-bom
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 4
8
7
end_of_line = crlf
9
8
insert_final_newline = true
10
9
trim_trailing_whitespace = true
11
- indent_style = space
12
- indent_size = 4
13
-
14
10
15
- # #########################################################
16
- # 🔧 C# Specific Settings
17
- # #########################################################
18
11
[* .cs ]
19
12
20
- # 🔹 Using Directive Settings
21
13
csharp_using_directive_placement = outside_namespace:warning
22
14
dotnet_sort_system_directives_first = true
23
15
dotnet_separate_import_directive_groups = true
24
16
csharp_style_namespace_declarations = file_scoped:suggestion
25
17
26
- # 🔹 Qualification Requirements (this. usage)
27
18
dotnet_style_qualification_for_field = false :suggestion
28
19
dotnet_style_qualification_for_property = false :suggestion
29
20
dotnet_style_qualification_for_method = false :suggestion
30
21
dotnet_style_qualification_for_event = false :suggestion
31
22
32
- # 🔹 New Line and Indentation Rules
33
23
csharp_new_line_before_open_brace = all
34
24
csharp_indent_block_contents = true
35
25
csharp_indent_case_contents = true
@@ -38,7 +28,6 @@ csharp_indent_labels = flush_left
38
28
csharp_preserve_single_line_statements = false
39
29
csharp_preserve_single_line_blocks = false
40
30
41
- # 🔹 Code Style: var, switch, interpolation etc.
42
31
csharp_style_var_elsewhere = true :suggestion
43
32
csharp_style_var_for_built_in_types = true :suggestion
44
33
csharp_style_var_when_type_is_apparent = true :suggestion
@@ -52,17 +41,10 @@ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
52
41
csharp_style_prefer_switch_expression = true :suggestion
53
42
csharp_style_prefer_simplified_interpolation = true :suggestion
54
43
55
- # 🔹 Diagnostic Warnings and Severity Levels
56
- dotnet_diagnostic.IDE0005.severity = warning # unnecessary using
57
- dotnet_diagnostic.IDE0044.severity = suggestion # suggest readonly field
58
- dotnet_diagnostic.IDE0060.severity = suggestion # unused parameter
44
+ dotnet_diagnostic.IDE0005.severity = warning
45
+ dotnet_diagnostic.IDE0044.severity = suggestion
46
+ dotnet_diagnostic.IDE0060.severity = suggestion
59
47
60
-
61
- # #########################################################
62
- # ✨ Naming Rules (Optional but useful)
63
- # #########################################################
64
-
65
- # 🟩 Rule: Private readonly fields should be camelCase with "_" prefix
66
48
dotnet_naming_rule.private_fields_should_be_camel_case.severity = warning
67
49
dotnet_naming_rule.private_fields_should_be_camel_case.symbols = private_fields
68
50
dotnet_naming_rule.private_fields_should_be_camel_case.style = camel_case
@@ -74,3 +56,23 @@ dotnet_naming_symbols.private_fields.required_modifiers = readonly
74
56
dotnet_naming_style.camel_case.capitalization = camel_case
75
57
dotnet_naming_style.camel_case.required_prefix = _
76
58
dotnet_naming_style.camel_case.required_suffix =
59
+
60
+ [* .{cs,vb} ]
61
+ dotnet_diagnostic.RS0016.severity = none
62
+ dotnet_diagnostic.RS0017.severity = none
63
+ dotnet_diagnostic.RS0018.severity = none
64
+ dotnet_diagnostic.IDE0059.severity = none
65
+ dotnet_diagnostic.IDE0079.severity = none
66
+ dotnet_diagnostic.CA1707.severity = none
67
+ dotnet_diagnostic.RS0022.severity = none
68
+ dotnet_diagnostic.IDE0130.severity = none
69
+ dotnet_diagnostic.SA1650.severity = none
70
+ dotnet_diagnostic.CA1704.severity = none
71
+ dotnet_diagnostic.CA2204.severity = none
72
+
73
+ [* .{cs,cpp,md} ]
74
+ spelling_languages = en-us,tr-tr
75
+ spelling_error_severity = hint
76
+ spelling_checkable_types = identifiers,comments,strings
77
+
78
+ file_header_template = Copyright (c) Norr\nLicensed under the MIT license.\n #nullable enable\n
0 commit comments