Skip to content

Commit 336091a

Browse files
committed
Consolidate .editorconfig files
1 parent 25e9daf commit 336091a

File tree

4 files changed

+14
-48
lines changed

4 files changed

+14
-48
lines changed

.editorconfig

+14-23
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
root = true
22

3-
# Code files
4-
[*.{cs,csx,vb}]
3+
[*]
4+
charset = utf-8
55
indent_style = space
6+
indent_size = 2
67
end_of_line = lf
7-
indent_size = 4
8-
charset = utf-8
98
trim_trailing_whitespace = true
109
insert_final_newline = true
1110

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+
##############################################################################
1220

1321
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.
1422

@@ -21,7 +29,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
2129
csharp_using_directive_placement = outside_namespace
2230
csharp_prefer_braces = true
2331

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)
2533
dotnet_diagnostic.IDE0005.severity = suggestion
2634

2735
# Require file header
@@ -247,7 +255,7 @@ dotnet_diagnostic.CA5399.severity = warning
247255
dotnet_diagnostic.CA5400.severity = warning
248256
# Do not use CreateEncryptor with non-default IV
249257
dotnet_diagnostic.CA5401.severity = warning
250-
# Use CreateEncryptor with the default IV
258+
# Use CreateEncryptor with the default IV
251259
dotnet_diagnostic.CA5402.severity = warning
252260
# Do not hard-code certificate
253261
dotnet_diagnostic.CA5403.severity = warning
@@ -266,20 +274,3 @@ dotnet_diagnostic.CA1851.severity = warning
266274
# Override code quality rules for test projects
267275
[{src/Bicep.Core.Samples/*.cs,src/*Test*/*.cs}]
268276
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

src/Bicep.Cli.E2eTests/.editorconfig

-8
This file was deleted.

src/vscode-bicep-ui/.editorconfig

-9
This file was deleted.

src/vscode-bicep/.editorconfig

-8
This file was deleted.

0 commit comments

Comments
 (0)