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>
This commit is contained in:
Aster Boese 2026-03-19 19:19:06 +01:00 committed by The Friendly Meow (merge) Bot
parent f3eb5b5e4e
commit ece20f16e5
No known key found for this signature in database

View file

@ -7,18 +7,23 @@
# 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
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[**.md]
# No indent_size since space size has meaning in markdown
indent_style = space
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
# Forked from Alpine
[extra-repos/systemd/networkmanager/networkmanager.rules]