From ab4fde3a401a8ebaafa66a0fbe567d4b5c3e2444 Mon Sep 17 00:00:00 2001 From: Urs Roesch Date: Sun, 9 Apr 2023 08:34:52 +0200 Subject: [PATCH] Add .gitattributes and .editorconfig --- .editorconfig | 25 +++++++++++++++++++++++++ .gitattributes | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c83c36f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.{ps1,psm1}] +end_of_line = crlf + +[*.sh] +end_of_line = lf +max_line_length = 80 + +[*.adoc] +max_line_length = 80 + +[Makefile] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9e797bf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,47 @@ +# Globals +text eol=crlf + +# document formats +*.adoc text +*.html text +*.svg text +*.txt text +*.yml text +*.yaml text +*.jsn text +*.json text +*.ini text + +# Git config files +.gitignore text +.gitattributes text +.editorconfig text + +# Source code formats +*.sh text eol=lf +*.ps1 text eol=crlf +*.psm1 text eol=crlf + +# Images formats +*.gif binary +*.ico binary +*.png binary +*.jpg binary +*.jpeg binary +*.webm binary +*.avif binary + +# Binary formats +*.bin binary +*.bpm binary +*.dll binary +*.exe binary +*.lib binary +*.pat binary +bzip2-* binary +bzip2_* binary +lzma-* binary +lzma_* binary +uninst binary +zlib-* binary +zlib_* binary