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

Re: Adding spell checker to GIT

From
DBDeepak Barua <dbbarua@gmail.com>
Date
Jan 6, 2007, 03:21 UTC
Message-ID
<b5a19cd20701051921j69f1a85bo97e39db7d8401222@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0701052147070.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Hi Johannes,
                    I spell check "//" comments in
in find_ext()
if($_[0] =~ /\.cc|\.java/) {
                $start_pattern  = qr!\s/\*\s|\s//\s!;
        }
and

$chosen_pattern eq qq!\s//\s! ? $end_pattern=qq!\s\014\s! : "End Pattern Not Found" ;

Also yes i didnt include to use spell checking in string literals , i thought that would be irregular and cumbersome.

Could you please test the code then i can include it in a seperate file ..?

Regards Deepak

On 1/6/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 23 quoted lines
> Hi,
>
> On Fri, 5 Jan 2007, Deepak Barua wrote:
>
> >         I and sasikumar have designed and built a spell checker into
> > the pre-commit hook, could someone please test it and give us your
> > comments.
>
> It's a rather big chunk of code, and it is in perl, so I'd rather put it
> in another file, but oh well.
>
> There are a few remaining problems, and I don't even know if the second
> can be solved:
>
> - you miss "//" comments,
> - if the diff is only about a small part of a comment, you do not spell
>   check that
> - you do not spell check literal messages (i.e. printf("No such fiel!"))
>
> Ciao,
> Dscho
>
>
-- 
Code Code Code Away
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 8 in “Adding spell checker to GIT”
  1. Deepak BaruaJan 4, 2007
  2. Johannes SchindelinJan 5, 2007
  3. Deepak BaruaJan 6, 2007
  4. Johannes SchindelinJan 16, 2007
  5. Deepak BaruaJan 16, 2007
  6. Deepak BaruaJan 25, 2007
  7. Johannes SchindelinJan 25, 2007
  8. Deepak BaruaJan 26, 2007

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.