Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

.editorconfig: remove trim_trailing_whitespace option

Some editors (like the vim variants), when seeing "trim_whitespace"
decide to do just that for all of the whitespace in the file you are
saving, even if it is not on a line that you have modified. This plays
havoc with diffs and is NOT something that should be intended.

As the "only trim whitespace on modified lines" is not part of the
editorconfig standard yet, just delete these lines from the
.editorconfig file so that we don't end up with diffs that are
automatically rejected by maintainers for containing things they
shouldn't.

Cc: Danny Lin <danny@kdrag0n.dev>
Cc: Íñigo Huguet <ihuguet@redhat.com>
Cc: Mickaël Salaün <mic@digikod.net>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Fixes: 5a602de99797 ("Add .editorconfig file for basic formatting")
Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/2024061137-jawless-dipped-e789@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-3
-3
.editorconfig
··· 5 5 [{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] 6 6 charset = utf-8 7 7 end_of_line = lf 8 - trim_trailing_whitespace = true 9 8 insert_final_newline = true 10 9 indent_style = tab 11 10 indent_size = 8 ··· 12 13 [*.{json,py,rs}] 13 14 charset = utf-8 14 15 end_of_line = lf 15 - trim_trailing_whitespace = true 16 16 insert_final_newline = true 17 17 indent_style = space 18 18 indent_size = 4 ··· 24 26 [*.yaml] 25 27 charset = utf-8 26 28 end_of_line = lf 27 - trim_trailing_whitespace = unset 28 29 insert_final_newline = true 29 30 indent_style = space 30 31 indent_size = 2