diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..fd230fd6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# 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 + +# Java files +[*.java] +indent_style = space +indent_size = 4 + +# XML files +[*.xml] +indent_style = space +indent_size = 4 + +# YAML files +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +# Properties files +[*.properties] +indent_style = space +indent_size = 4 + +# Markdown files +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..a3fd9cca --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +# Auto detect text files and perform LF normalization +* text=auto eol=lf + +# Java files +*.java text eol=lf +*.xml text eol=lf + +# Config files +*.yml text eol=lf +*.yaml text eol=lf +*.properties text eol=lf + +# Shell scripts +*.sh text eol=lf