Skip to content

Commit d91ce83

Browse files
authored
Rollup merge of #81260 - vn971:restore-editorconfig, r=Mark-Simulacrum
Add .editorconfig This adds a .editorconfig file to rust-lang/rust, matching Clippy's. It's not clear that this will benefit many people, but the cost is low and the rewards are potentially meaningful.
2 parents c1623a2 + ae3164e commit d91ce83

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.md]
16+
# double whitespace at end of line
17+
# denotes a line break in Markdown
18+
trim_trailing_whitespace = false
19+
20+
[*.yml]
21+
indent_size = 2

src/tools/clippy/.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ indent_style = space
1313
indent_size = 4
1414

1515
[*.md]
16+
# double whitespace at end of line
17+
# denotes a line break in Markdown
1618
trim_trailing_whitespace = false
1719

1820
[*.yml]

0 commit comments

Comments
 (0)