mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
95560616fb
Updates the .editorconfig file, first introduced in 2021 (see PR #21123, commit7a135d57
) w.r.t. following changes: - consider Rust .rs files (relevant since #28076, commitbbbbdb0c
) - 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).
27 lines
439 B
INI
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
|