Skip to content

Commit

Permalink
Rollup merge of rust-lang#81260 - vn971:restore-editorconfig, r=Mark-…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
m-ou-se committed Feb 2, 2021
2 parents 9cbd231 + ae3164e commit aed63da
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.md]
# double whitespace at end of line
# denotes a line break in Markdown
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
2 changes: 2 additions & 0 deletions src/tools/clippy/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ indent_style = space
indent_size = 4

[*.md]
# double whitespace at end of line
# denotes a line break in Markdown
trim_trailing_whitespace = false

[*.yml]
Expand Down

0 comments on commit aed63da

Please sign in to comment.