From 122581a872b30b2a1a930ab0eeb834ba6475b441 Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Mon, 2 May 2022 08:22:00 +0200 Subject: [PATCH] Introduce .editorconfig --- .editorconfig | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 750b534..f445484 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,17 +1,40 @@ root = true +# defaults [*] charset=utf-8 -end_of_line = lf -trim_trailing_whitespace=true +trim_trailing_whitespace = true insert_final_newline = true - -[*.sh] +end_of_line=lf +indent_size = 4 indent_style = space + +[*.{java, kt, kts}] +continuation_indent_size = 4 +max_line_length=120 +wildcard_import_limit=99 + +[*.xml] +continuation_indent_size = 8 + +# YAML +# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668 +[*.{yaml,yml}] indent_size = 2 -[*.py] +# Shell +# https://google.github.io/styleguide/shell.xml#Indentation +[*.{bash,sh,zsh}] +indent_size = 2 + +# HTML +# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules +[*.{htm,html}] +indent_size = 2 + +[*.json] +indent_size=2 + +# Erlang +[*.erl] indent_style = tab -indent_size = 4 - -