aboutsummaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 16:08:54 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 18:07:09 -0300
commit71d7572950e9266fcf54a9278a948f6b88fa495b (patch)
treecf6318c4e6a213903e005399a3c2111ec5fb4516 /.editorconfig
parentFix inconsistent leading spaces (diff)
downloadfirejail-71d7572950e9266fcf54a9278a948f6b88fa495b.tar.gz
firejail-71d7572950e9266fcf54a9278a948f6b88fa495b.tar.zst
firejail-71d7572950e9266fcf54a9278a948f6b88fa495b.zip
editorconfig: add indentation rules
Commands used to list the file extensions used in the project: $ git ls-files | sed -En 's/.*(\.[^.]+)$/\1/p' | LC_ALL=C sort | uniq -c For rules that are more specific to a given directory, put a dedicated .editorconfig file in it.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index f999431de..7d98c1b14 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -5,3 +5,30 @@ charset = utf-8
5end_of_line = lf 5end_of_line = lf
6insert_final_newline = true 6insert_final_newline = true
7trim_trailing_whitespace = true 7trim_trailing_whitespace = true
8
9# Build
10[configure.ac]
11indent_size = 8
12indent_style = tab
13
14[*{.mk,Makefile}{,.in}]
15indent_size = 8
16indent_style = tab
17
18# Source code and scripts
19[*.{c,h}{,.in}]
20indent_size = 8
21indent_style = tab
22
23[*.{awk,exp,sh}{,.in}]
24indent_size = 8
25indent_style = tab
26
27[*.py{,.in}]
28indent_size = 4
29indent_style = space
30
31# Misc
32[.gitlab-ci.yml]
33indent_size = 4
34indent_style = space