rsyslog/.editorconfig
Rainer Gerhards 786ea7c92f
chore: add project-wide formatting and editor configs
- 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.
2025-07-16 17:08:01 +02:00

40 lines
648 B
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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—dont trim here
[*.{md,txt}]
trim_trailing_whitespace = false