zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Fossies Administrator <Jens.Schleusener@fossies.org>
Cc: zsh-workers@zsh.org
Subject: Re: Codespell report for "zsh" (on fossies.org)
Date: Thu, 9 Jan 2020 13:50:32 +0000	[thread overview]
Message-ID: <20200109135032.einkmjbdtoyzkhn7@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <alpine.LSU.2.21.2001091252160.17699@fossies.org>

Fossies Administrator wrote on Thu, Jan 09, 2020 at 13:05:13 +0100:
> the FOSS server fossies.org - also supporting "zsh" - offers a new feature
> "Source code misspelling reports":
> 
>  https://fossies.org/features.html#codespell
> 
> Such reports are normally only generated on request, but as Fossies
> administrator I have just created (for testing purposes) an analysis for the
> current "zsh" release 5.7.1:
> 
>  https://fossies.org/linux/misc/zsh/codespell.html
> Maybe more meaningful is an additional report for the current Git master
> version that can be found in a special "test" folder (that isn't integrated
> in the Fossies standard services and should - at least principally - not
> accessible by search engines):
> 
>  https://fossies.org/linux/test/zsh-code-4858e868dcf809016a1cb5680327d66d551353ae.zip/codespell.html
> 
> Obviously in that current development version some of the spelling errors
> respectively typos are already fixed.

Thanks a lot.  I've committed it, minus the archived changelog files (I left
them as-is for ease of correlation to git logs), false positives, and variant
spellings.

Is it possible to get the report in the form of a unidiff?  Basically the first
thing I did with the report is to convert it to a wdiff, with the following
script:

[[[
#!/usr/bin/env zsh

setopt extendedglob

< fossies.out while IFS=$'\t\n' read -r ignore from to fname_and_parenthesized_lineno; do
  fname=${fname_and_parenthesized_lineno%% *}
  parenthesized_lineno=${fname_and_parenthesized_lineno#* }
  if printf %s $from $to | grep -E -q '^[A-Za-z0-9_]+$'; then
    perl -pi -E "s/\\b\\Q$from\\E\\b/$to/ if \$. == $parenthesized_lineno" -- ${fname#*/}
  else
    echo >&2 "$0: warning: skipped [$from $to $fname $parenthesized_lineno]"
  fi
done
]]]

… where fossies.out was created by copy-pasting the table from firefox into a text file.

Thanks again.

Daniel

  reply	other threads:[~2020-01-09 13:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 12:05 Fossies Administrator
2020-01-09 13:50 ` Daniel Shahaf [this message]
2020-01-09 14:54   ` Fossies Administrator
2020-01-09 15:49     ` Mikael Magnusson
2020-01-09 16:43       ` Fossies Administrator
2020-01-09 17:38     ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200109135032.einkmjbdtoyzkhn7@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=Jens.Schleusener@fossies.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).