diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..6b124fa13 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# Единые правила редактора для репозиториев выгрузки 1С. +# Согласовано с tools/git_1c/.gitattributes (LF в репозитории). + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{bsl,os}] +indent_style = tab + +[*.xml] +indent_style = tab + +[VERSION] +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes index 429f69922..b90a7e2ce 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,31 +1,34 @@ -# ⮮। ⥪⮢ 䠩 +# Единые правила для репозиториев выгрузки 1С (Configurator / EDT). +# Канонический формат в git: UTF-8, LF. См. tools/git_1c/README.md + * text=auto -# 1 - ᥣ LF ᮢ⨬ Linux +# Текстовые файлы выгрузки 1С *.bsl text eol=lf -*.os text eol=lf -*.txt text eol=lf -*.md text eol=lf -*.json text eol=lf +*.os text eol=lf *.xml text eol=lf +*.txt text eol=lf +*.md text eol=lf +*.json text eol=lf +*.ini text eol=lf +*.conf text eol=lf +VERSION text eol=lf -# 䠩 1 - ண +# Бинарные артефакты 1С *.cf binary *.cfe binary +*.epf binary +*.erf binary *.ef binary *.bin binary *.cf.binary binary +*.mxl binary -# ࠢ 1 - +# Справка и графика *.html binary *.htm binary - -# ᪨ 䠩 - *.png binary *.jpg binary *.jpeg binary *.gif binary *.ico binary - -# ⮢ 1 -*.bin binary