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

Re: Extending whitespace checks

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 27, 2024, 23:53 UTC
Message-ID
<xmqq7c8os07x.fsf@gitster.g>
In-Reply-To
<20241127150429.GD2554@coredump.intra.peff.net>
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.

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 ;-)

Previous: Jeff KingNext: Jeff King
Message 8 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.