pmaports/.editorconfig
Aster Boese ece20f16e5
ci: ec: enforce proper line endings for more files
The POSIX standard defines a line as terminating in a newline. Non-POSIX
systems (such as Windows) generally do not automatically add a newline
to the end of a line, leading to some files not having a newline at their
end. This is an issue because, while a good portion of modern Linux tooling
can handle missing newlines, some cannot, leading to breakage on
non-conformant files. This is also better for consistency and preventing
unnecessary edits to files because a contributor's editor saves a file with
an automatically added newline when there wasn't one originally.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8197>
2026-07-18 11:51:54 +02:00

31 lines
756 B
INI

; This file is for unifying the coding style for different editors and IDEs.
; Plugins are available for notepad++, emacs, vim, gedit,
; textmate, visual studio, and more.
;
; See http://editorconfig.org for details.
# Top-most EditorConfig file.
root = true
[*]
end_of_line = lf
insert_final_newline = true
# Ignore .git and blobs
[{.git/**,**.{cer,kwl,rle,salt}}]
end_of_line = unset
insert_final_newline = unset
[{**.{ini,sh,rules,nft},**/APKBUILD,CODEOWNERS}]
indent_style = tab
trim_trailing_whitespace = true
[**.md]
# No indent_size since space size has meaning in markdown
indent_style = space
trim_trailing_whitespace = true
# Forked from Alpine
[extra-repos/systemd/networkmanager/networkmanager.rules]
indent_style = space
indent_size = 4