Package: lintian
Severity: wishlist

Lintian should warn about trailing whitespace in at least the Debian
files part of packages, as per Bug#177523:

>>>>> "J" == Justin Pryzby <[EMAIL PROTECTED]> writes:

J> These are all (except codecs.conf.gz) Debian files, and it would be 
appropriate
J> for lintian to check for them.  However, when you submitted a bug against
J> lintian, it was apparently to "check program source code to make sure that it
J> doesn't create any syslog entries with trailing whitespace".

J> These are two separate issues, both of which might warrent bug reports.  The
J> "logfiles" bug, however, should be submitted against the individual packages,
J> since there is no conceivable way for lintian (or such) to check for it,
J> whereas the "Debian files" bug might reasonably be implemented in such a 
tool.

OK, hereby submitting the latter item.

pcregrep '\s$' is right regexp to catch it.
or perl -nlwe 'print if /\s$/' to avoid depending on pcregrep.
Add warning message with file name and line number.

Maybe also lintian could warn of blank lines at end of files too...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to