.editorconfig: code style guidelines for text editors
authorKatrin Leinweber <9948149+katrinleinweber@users.noreply.github.com>
Tue, 21 Aug 2018 16:02:31 +0000 (18:02 +0200)
committerMaxim Belkin <maxim.belkin@gmail.com>
Tue, 21 Aug 2018 16:02:31 +0000 (16:02 +0000)
Pull Request: carpentries/styles#216

.editorconfig [new file with mode: 0644]
bin/lesson_check.py

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..1d7d564
--- /dev/null
@@ -0,0 +1,25 @@
+root = true
+
+[*]
+charset = utf-8
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+indent_size = 2
+indent_style = space
+max_line_length = 100  # Please keep this in sync with bin/lesson_check.py!
+
+[*.r]
+max_line_length = 80
+
+[*.py]
+indent_size = 4
+indent_style = space
+max_line_length = 79
+
+[*.sh]
+end_of_line = lf
+
+[Makefile]
+indent_style = tab
index b728dcb928e7c8e654c32d74fa0c8017859fadd9..84c28f37c5300fea1e065f1be06196b60cc4db7f 100755 (executable)
@@ -102,6 +102,7 @@ BREAK_METADATA_FIELDS = {
 }
 
 # How long are lines allowed to be?
+# Please keep this in sync with .editorconfig!
 MAX_LINE_LEN = 100