mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-10 15:00:42 +01:00
- add .editorconfig for indent, whitespace, and file-type rules - add project-local .vimrc to enforce Vim settings via exrc - add .clang-format for C/C++ style presets and list formatting - add devtools/format-code.sh to run clang-format and fixups - adjust clang-format config for stable, idempotent output - update AGENTS.md with new formatting strategy - add .git-blame-ignore-revs entry for format change commit This commit sets up an automated formatting pipeline to let contributors use their editor of choice while ensuring consistent, stable code style across the project.
40 lines
648 B
INI
40 lines
648 B
INI
|
||
# EditorConfig is awesome: https://EditorConfig.org
|
||
root = true
|
||
|
||
# Default for all files
|
||
[*]
|
||
indent_style = space
|
||
indent_size = 4
|
||
trim_trailing_whitespace = true
|
||
insert_final_newline = true
|
||
end_of_line = lf
|
||
|
||
# Makefiles use hard tabs
|
||
[Makefile]
|
||
indent_style = tab
|
||
|
||
# Autoconf scripts & shell files
|
||
[*.{ac,am,sh}]
|
||
indent_style = space
|
||
indent_size = 2
|
||
|
||
# C/C++ source and headers
|
||
[*.{c,cpp,h,hpp}]
|
||
indent_style = space
|
||
indent_size = 4
|
||
|
||
# Python
|
||
[*.py]
|
||
indent_style = space
|
||
indent_size = 4
|
||
|
||
# YAML/Ansible/CI files
|
||
[*.{yml,yaml}]
|
||
indent_style = space
|
||
indent_size = 2
|
||
|
||
# Markdown/text—don’t trim here
|
||
[*.{md,txt}]
|
||
trim_trailing_whitespace = false
|