From 48dfa6edc3594a5981f3d76a66b939528138e509 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sun, 5 Apr 2020 15:14:19 +0300 Subject: [PATCH] .editorconfig: extend rules to .yml and .md files Added a rule for YAML files Ensure we all use the same settings Enabled trim_trailing_whitespace for all files, except Markdown ones Removed unused comments Some of them are even irrelevant --- .editorconfig | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 55abd4386e..f49fdd1b6b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,17 +1,21 @@ -# top-most EditorConfig file root = true -# Unix-style newlines with a newline ending every file [*] charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true -# Matches multiple files with brace expansion notation [*.v] indent_style = tab indent_size = 4 -trim_trailing_whitespace = true + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false [Makefile] indent_style = tab