summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorVasili Novikov <vasya.novikov+cm3513git@gmail.com>2021-01-22 09:51:23 +0100
committerVasili Novikov <vasya.novikov+cm3513git@gmail.com>2021-02-02 18:13:18 +0100
commitae3164e226320ea8082b8257f0c67b43c1db56d2 (patch)
treeddf6746dca368edeb537f5b99854374ea81bd157 /.editorconfig
parentdc1eee2f256efbd1d3b50b6b090232f81cac6d72 (diff)
downloadrust-ae3164e226320ea8082b8257f0c67b43c1db56d2.tar.gz
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/
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig21
1 files changed, 21 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..ec6e107d547
--- /dev/null
+++ b/.editorconfig
@@ -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