Skip to content

Commit ae3164e

Browse files
committed
Add .editorconfig
Editorconfig is a lightweight specification that helps maintaining consistent coding/formatting style accross editors, especially those editors that are not explicitly aware of Rust and rustfmt. https://editorconfig.org/
1 parent dc1eee2 commit ae3164e

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)