git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Extending whitespace checks

From
Jeff King <peff@peff.net>
Date
Dec 1, 2024, 22:31 UTC
Message-ID
<20241201223146.GI145938@coredump.intra.peff.net>
In-Reply-To
<xmqq7c8os07x.fsf@gitster.g>
On Thu, Nov 28, 2024 at 08:53:06AM +0900, Junio C Hamano wrote:
Show 18 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > But it seems like a very deep rabbit hole to start adding in
> > shared-library line validators, because I think it ends in "now
> > compile this before I agree to apply the patch".
> 
> I am not sure I understand your conclusion.  Who is telling that to
> whom?  Somebody sends a patch that creates a file that requires a
> special validator and the maintainer gives the validator and tells
> the contributor to go use it to make sure their addition passses
> before resubmitting?
> 
> I was hoping that the ability to add extra validators is more of an
> enabler (than requirement and hindrance) for those who choose to be
> extra careful.  It is similar to CFLAGS in our Makefile that allows
> you to use options to enable more strict compiler warnings than what
> other developers usually use, to notice certain class of problems
> others may miss.

Yes, we who introduce the mechanism to create plug-ins do not have to worry about writing those plug-ins ourselves. But we do have to maintain the plug-in interface, and respond to complaints when it is not rich enough to do what people want to do. So I was merely pessimistically foreseeing where this may end up. ;)

Of course...
> Shared-libraries and plug-ins remain to be solution in search of
> problem at least for this project.  I do not really need CSV comma
> counter, but I thought it may give a good excuse for those who want
> to play with Rust and other stuff ;-)

...if playing with the plug-in interface is the point, none of that may matter. :)

-Peff
Previous: Junio C Hamano
Message 9 of 9 in “Extending whitespace checks”
  1. Junio C HamanoNov 24, 2024
  2. Bence FerdinandyNov 24, 2024
  3. Kristoffer HaugsbakkNov 24, 2024
  4. A bughunterDec 1, 2024
  5. Junio C HamanoNov 25, 2024
  6. Jacob KellerNov 25, 2024
  7. Jeff KingNov 27, 2024
  8. Junio C HamanoNov 27, 2024
  9. Jeff KingDec 1, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.