[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#866728: lintian: spell checks for scripts or alternatively POT files?



Package: lintian
Version: 2.5.51
Severity: wishlist

Hi

Yesterday I received a bug #866644 about apt-listchanges printing "retrive" 
instead of "retrieve" in one of messages. If apt-listchanges was written 
in C, lintian would surely have complained about spelling typo in binary.
However apt-listchanges is just a Python script with modules...

It would be nice if lintian could somehow check scripts for spelling typos, 
just like it does for compiled binaries. I know that it might be hard to do
correctly. My first impression was that it could check all words inside 
the "" or '' quotes, ignoring any words starting with $ or %, but 
than I recalled things like eval(), os.system() in Python or similar
constructs in other script languages. 
But maybe it would be possible to spell check strings marked for translation 
between `_(', and `)'? Or alternatively check msgids in the POT files? What
do you think?

Regards,
robert

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: