bitcoin/.editorconfig
Sebastian Falbesoner 95560616fb 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).
2024-09-13 17:55:10 +02:00

27 lines
439 B
INI

# This is the top-most EditorConfig file.
root = true
# For all files.
[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
# Source code files
[*.{h,cpp,rs,py,sh}]
indent_size = 4
# .cirrus.yml, etc.
[*.yml]
indent_size = 2
# Makefiles (only relevant for depends build)
[Makefile]
indent_style = tab
# CMake files
[{CMakeLists.txt,*.cmake,*.cmake.in}]
indent_size = 2