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

Bug#980862: lintian: Add detection of typo in d/control: not a dot separating description lines



Package: lintian
Version: 2.104.0
Severity: wishlist
Tags: l10n
X-Debbugs-Cc: mattia@debian.org, beatricet@libero.it

Dear colleagues,

Today Beatrice spotted a typo in d/control that slipped past me, Mattia and Lintian.
I think the situation described in Bug #980853 deserves a new Lintian tag.

As a very first step I crafted the following one-liner to test if I made more similar typos:

find -name control | while read FILE
do
    if grep "^[ ,]*$" "$FILE" | grep -q -v "^$"
    then
        echo "$FILE"
    fi
done

I feel the automation of detection is trivial: we check the lines of Description and License fields
of  d/control and d/copyright files, respectively, against the regexp like '/^[ ]*[,:+%&-]*$/' and
emit a warning because it breaks i10n.

Sincerely,
Vasyl

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-64-generic (SMP w/6 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect


Reply to: