Skip to content

Commit

Permalink
Add an editorconfig file (libusual#60)
Browse files Browse the repository at this point in the history
This adds an `.editorconfig` file to help maintain a consistent coding
style. It's copy-pasted from the PgBouncer repo, with some PgBouncer
specific files removed.

Related to libusual#59
  • Loading branch information
JelteF authored Sep 8, 2024
1 parent 12e118e commit d76ad7a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# top-most EditorConfig file
root = true

# basic rules for all files
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

[*.{c,h}]
indent_style = tab
indent_size = 8

[*.py]
indent_style = space
indent_size = 4

[*.{yml,sh}]
indent_style = space
indent_size = 2

0 comments on commit d76ad7a

Please sign in to comment.