mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-12 01:14:23 -05:00
011a71a36d
Editorconfig can only act based on file extension and path, not attributes, it remains a mean only for multiple collaborators to use the same configuration on their editor. When it is too restrictive, such as not considering the file syntax, use a lint tool for the specific file type instead of trusting editorconfig. Changes were made to increase readability.
40 lines
1.0 KiB
INI
40 lines
1.0 KiB
INI
# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 2
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
|
|
[{.gitmodules,**/git/**/config,**/git/**/config.d/*,**/git/**/sample/*}]
|
|
indent_style = tab
|
|
indent_size = 8
|
|
|
|
[*.{md,toml,json}]
|
|
indent_size = 2
|
|
|
|
[*.{yaml,yml}]
|
|
indent_size = 2
|
|
max_line_length = 120
|
|
|
|
[*.{sls,top,jinja}]
|
|
max_line_length = 160
|
|
|
|
[*.py]
|
|
indent_size = 4
|
|
max_line_length = 79
|
|
|
|
[{*.{sh,bash,ksh,zsh,lessfilter,xinitrc,Xinitrc,xsession,Xsession,xsessionrc,Xsessionrc,xprofile,Xprofile},**/.config/{sh,bash,ksh,zsh}/**,**/git/shell/**,**/qubes-bind-dirs.d/**,**/lib-qubes-bind-dirs.d/**,**/rc.local.d/**,**/dom0/files/autostartart-scripts/**,**/git/template/hooks/**,**/git/files/client/git-core/**}]
|
|
indent_size = 2
|
|
## Impossible to be sure via file extension if it is a shell file.
|
|
# /bin/.*
|
|
# /rpc/.*
|
|
# /network-hooks\.d/.*
|
|
# /qubes-firewall\.d/.*
|