code style: update .editorconfig file

Updates the .editorconfig file, first introduced in 2021
(see PR #21123, commit 7a135d57) w.r.t. following changes:
- consider Rust .rs files (relevant since #28076, commit bbbbdb0c)
- reflect build system change to CMake (#30454, #30664)
- add setting for the bare Makefile still used for depends builds

Can be tested e.g. by using the editorconfig-vim plugin
(https://github.com/editorconfig/editorconfig-vim).
pull/30877/head
Sebastian Falbesoner 2 months ago
parent a5e99669cc
commit 95560616fb

@ -10,17 +10,17 @@ insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
# Source code files # Source code files
[*.{h,cpp,py,sh}] [*.{h,cpp,rs,py,sh}]
indent_size = 4 indent_size = 4
# .cirrus.yml, .fuzzbuzz.yml, etc. # .cirrus.yml, etc.
[*.yml] [*.yml]
indent_size = 2 indent_size = 2
# Makefiles # Makefiles (only relevant for depends build)
[{*.am,Makefile.*.include}] [Makefile]
indent_style = tab indent_style = tab
# Autoconf scripts # CMake files
[configure.ac] [{CMakeLists.txt,*.cmake,*.cmake.in}]
indent_size = 2 indent_size = 2

Loading…
Cancel
Save