[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72kSyHxLUFYA0KyXoQszHoZpTXyN5oPyx2OMbQZVG4dzcg@mail.gmail.com>
Date: Sun, 2 Jun 2024 18:28:51 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Mateusz Guzik <mjguzik@...il.com>
Cc: Masahiro Yamada <masahiroy@...nel.org>, Íñigo Huguet <ihuguet@...hat.com>,
Vincent MAILHOL <mailhol.vincent@...adoo.fr>, Jonathan Corbet <corbet@....net>, ojeda@...nel.org,
danny@...ag0n.dev, jgg@...dia.com, mic@...ikod.net,
linux-kernel@...r.kernel.org, joe@...ches.com, linux@...musvillemoes.dk,
willy@...radead.org
Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting
On Sun, Jun 2, 2024 at 5:31 PM Mateusz Guzik <mjguzik@...il.com> wrote:
>
> You can try yourself by editing fs/dcache.c or fs/bad_inode.c.
>
> It stems from this line:
> trim_trailing_whitespace = true
>
> The problem is dodged by setting it to false or adding this to
> ~/.config/nvim/init.lua:
> vim.g.editorconfig = false
>
> Is there a non-giant-hammer method to disable the thing? Maybe some lua
> magic to special-case that this is the kernel tree?
It may be possible to disable it for particular folder/patterns and
then try to get their maintainers to do a sweep eventually.
Cheers,
Miguel
Powered by blists - more mailing lists