1
1
root = true
2
2
3
- # Code files
4
- [ * .{cs,csx,vb} ]
3
+ [ * ]
4
+ charset = utf-8
5
5
indent_style = space
6
+ indent_size = 2
6
7
end_of_line = lf
7
- indent_size = 4
8
- charset = utf-8
9
8
trim_trailing_whitespace = true
10
9
insert_final_newline = true
11
10
11
+ [* .md ]
12
+ trim_trailing_whitespace = false # Two spaces in markdown is the same as a <br>.
13
+
14
+ [* .{cs,csx,vb} ]
15
+ indent_size = 4
16
+
17
+ # #############################################################################
18
+ # ######################### .NET Code Analysis Rules ##########################
19
+ # #############################################################################
12
20
13
21
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.
14
22
@@ -21,7 +29,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
21
29
csharp_using_directive_placement = outside_namespace
22
30
csharp_prefer_braces = true
23
31
24
- # IDE0005: [Using directive is unnecessary](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005)
32
+ # IDE0005: [Using directive is unnecessary](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005)
25
33
dotnet_diagnostic.IDE0005.severity = suggestion
26
34
27
35
# Require file header
@@ -247,7 +255,7 @@ dotnet_diagnostic.CA5399.severity = warning
247
255
dotnet_diagnostic.CA5400.severity = warning
248
256
# Do not use CreateEncryptor with non-default IV
249
257
dotnet_diagnostic.CA5401.severity = warning
250
- # Use CreateEncryptor with the default IV
258
+ # Use CreateEncryptor with the default IV
251
259
dotnet_diagnostic.CA5402.severity = warning
252
260
# Do not hard-code certificate
253
261
dotnet_diagnostic.CA5403.severity = warning
@@ -266,20 +274,3 @@ dotnet_diagnostic.CA1851.severity = warning
266
274
# Override code quality rules for test projects
267
275
[{src/Bicep.Core.Samples/* .cs,src/* Test* /* .cs} ]
268
276
dotnet_diagnostic.CA1851.severity = suggestion
269
-
270
- [* .{ts,tsx,js} ]
271
- indent_style = space
272
- end_of_line = lf
273
- indent_size = 2
274
- charset = utf-8
275
- trim_trailing_whitespace = true
276
- insert_final_newline = true
277
-
278
- # Xml config files
279
- [.resx ]
280
- indent_style = space
281
- end_of_line = lf
282
- indent_size = 2
283
- charset = utf-8
284
- trim_trailing_whitespace = true
285
- insert_final_newline = true
0 commit comments