Skip to content

Commit

Permalink
code style: update .editorconfig file
Browse files Browse the repository at this point in the history
Updates the .editorconfig file, first introduced in 2021
(see PR bitcoin#21123, commit 7a135d5) w.r.t. following changes:
- consider Rust .rs files (relevant since bitcoin#29076, commit bbbbdb0)
- reflect build system change to CMake (bitcoin#30454, bitcoin#30664)
- add setting for bare Makefile still used for depends builds

Can be tested e.g. by using the editorconfig-vim plugin
(https://github.com/editorconfig/editorconfig-vim).
  • Loading branch information
theStack committed Sep 12, 2024
1 parent a5e9966 commit bf0ee88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ insert_final_newline = true
trim_trailing_whitespace = true

# Source code files
[*.{h,cpp,py,sh}]
[*.{h,cpp,rs,py,sh}]
indent_size = 4

# .cirrus.yml, .fuzzbuzz.yml, etc.
[*.yml]
indent_size = 2

# Makefiles
[{*.am,Makefile.*.include}]
# Makefiles (only relevant for depends build)
[Makefile]
indent_style = tab

# Autoconf scripts
[configure.ac]
# CMake files
[{CMakeLists.txt,*.cmake,*.cmake.in}]
indent_size = 2

0 comments on commit bf0ee88

Please sign in to comment.