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

Bug#896671: lintian: false positive description-synopsis-might-not-be-phrased-properly on 'e.g.'



Package: lintian
Version: 2.5.83
Severity: normal

Hi,

this Description triggers a false positive:

Package: mysql-common
Description: MySQL database common files, e.g. /etc/mysql/my.cnf

I: mysql-common: description-synopsis-might-not-be-phrased-properly
N: 
N:    The package synopsis (also known as the "short" description, ie. the
N:    first line in the package's "Description:" field) either ends with a
N:    full stop "." character or starts another sentence.

Probably add 'e\.?g|i\.?e' to the list of excluded words (currently 'etc').

        if ($synopsis =~ m/(?<!etc)\.(?:\s*$|\s+\S+)/i) {
            tag 'description-synopsis-might-not-be-phrased-properly';
        }

I haven't tried it, but I think this could produce a false negative since
the negated lookbehind pattern is not anchored at the beginning of a word:

  Description: Misspelled variant of stretc.

Unlikely for etc, but e\.?g|i\.?e would match on 

  Description: Helpers for typing with a broken leg.
  Description: My favorite recipe for apple pie.

Andreas

PS: I made the inner dot optional since that is what lintian used
in the tag's description ...

PPS: what about ellipses?
Description: collection of foo, bar, baz, ... and other words


Reply to: