summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2023-06-29 10:23:58 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2023-06-29 10:23:58 -0700
commit2ce88a00aeb774b7a16bb9a5809dcb47613ac2da (patch)
treeea7c98d7adbc669fafbaaba83ece32bad4885e78 /.editorconfig
parent30619fca8aa7f31a6ae81cd1ca6485fd3ebd34e3 (diff)
CI: Add pre-commit bits
Change-Id: Ie207583b16bda0f1851dcf31e6dfae386a59945c Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig25
1 files changed, 25 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..8700277e6
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,25 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+
+[*.json]
+indent_size = 2
+
+[*.rst]
+indent_size = 4
+
+[*.markdown]
+indent_size = 4
+max_line_length = 80
+
+[*.sh]
+indent_size = 4
+max_line_length = 80
+
+[*.yaml]
+indent_size = 2
+max_line_length = 120