mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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.
This commit is contained in:
parent
ab1f8af8d0
commit
71d7572950
6 changed files with 46 additions and 0 deletions
|
|
@ -5,3 +5,30 @@ charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# Build
|
||||||
|
[configure.ac]
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[*{.mk,Makefile}{,.in}]
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
# Source code and scripts
|
||||||
|
[*.{c,h}{,.in}]
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[*.{awk,exp,sh}{,.in}]
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[*.py{,.in}]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
[.gitlab-ci.yml]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
|
|
||||||
3
.github/.editorconfig
vendored
Normal file
3
.github/.editorconfig
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
7
contrib/syntax/.editorconfig
Normal file
7
contrib/syntax/.editorconfig
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[*.lang{,.in}]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.vim{,.in}]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
3
platform/rpm/.editorconfig
Normal file
3
platform/rpm/.editorconfig
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[*.sh{,.in}]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
3
src/bash_completion/.editorconfig
Normal file
3
src/bash_completion/.editorconfig
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[*.bash_completion{,.in}]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
3
src/zsh_completion/.editorconfig
Normal file
3
src/zsh_completion/.editorconfig
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[_*{,.in}]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
Loading…
Add table
Add a link
Reference in a new issue