agama/.editorconfig
Ladislav Slezák 4f9493984e
Fixed .editorconfig files
- Remove "root = true" from files in subdirectories,
  that prevents from using the shared rules from the
  top-level .editorconfig file
- Added `shfmt` section for formatting the shell files
2026-06-02 10:36:00 +02:00

30 lines
705 B
INI

# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# 2 space indentation
[*.sh]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
# A special non-standard configuration for the `shfmt` tool which matches any
# file with a shell hashbang on the first line, it does not need the *.sh
# extension in the file name (needs shfmt >= 3.8.0).
#
# To reformat all files run `shfmt -w -l .` at the top-level directory.
[[shell]]
indent_style = space
indent_size = 2
switch_case_indent = true
space_redirects = true
trim_trailing_whitespace = true
[*.{c,h,cxx,hxx}]
indent_style = space
indent_size = 2
tab_width = 8
[Makefile]
indent_style = tab