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

Bug#491365: lintian: debian-copyright-line-too-long should honour word boundaries



Hi,

On Fri, 2008-07-18 at 23:32 +0200, Bernd Zeimetz wrote:
> The debian-copyright-line-too-long complains about too long lines, even
> if there's no chance to make the line shorter, as you can't break the
> word. For example 
>        http://foo/bar/fuzz/foo/bar/fuzz/foo/bar/fuzz/foo/bar/fuzz/foo/bar/fuzz/foo/bar/fuzz/boo.html
> is not possible to write in a different way.
> So imho the check should be changed to complain only about lines which
> consist of more than one word. Only lines matching something like
> (^ *[^ ]+ +[^ ]*) should be checked for their length. The regexp should
> be enhanced to match all white spaces probably...

We already do something similar when checking the length of changelog
lines, allowing for common line starts; to be precise "^[\s.o*+-]*\S+$".
I'll add that to the copyright check as well.

Thanks for the suggestion,

Adam



Reply to: