Skip to content

Commit 1f3311b

Browse files
Add more rule exemptions and prevent blanket using recommendations
1 parent 15a7a55 commit 1f3311b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.editorconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ csharp_space_between_square_brackets = false
339339
# warn when using var for built-in types,
340340
# warn when using var when the type is not apparent, and
341341
# warn when not using var when the type is apparent
342+
# warn when using simplified "using" declaration
342343
###############################################################################
343344
[*.cs]
344345
csharp_prefer_braces = true:silent
@@ -367,6 +368,8 @@ csharp_style_throw_expression = true:suggestion
367368
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
368369
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
369370

370-
csharp_style_var_for_built_in_types = false:warning
371-
csharp_style_var_elsewhere = false:warning
371+
csharp_style_var_for_built_in_types = false:silent
372372
csharp_style_var_when_type_is_apparent = true:warning
373+
csharp_style_var_elsewhere = false:warning
374+
375+
csharp_prefer_simple_using_statement = false:silent

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,22 @@
9696
*.gif binary
9797
*.jpg binary
9898
*.ktx binary
99+
*.otf binary
99100
*.pbm binary
100101
*.pdf binary
101102
*.png binary
102103
*.ppt binary
103104
*.pptx binary
104105
*.pvr binary
105-
*.ttf binary
106106
*.snk binary
107107
*.tga binary
108+
*.ttc binary
108109
*.ttf binary
109110
*.woff binary
110111
*.woff2 binary
111112
*.xls binary
112113
*.xlsx binary
113114

114-
115115
###############################################################################
116116
# Set explicit file behavior to:
117117
# diff as plain text

0 commit comments

Comments
 (0)