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

Bug#877802: include file name and line number in output



Sorry for not being more clear: when I run lintian (notably, without
-i), I get output such as:

% lintian dunst_1.2.0-1_amd64.changes
I: dunst source: testsuite-autopkgtest-missing
P: dunst source: debian-watch-may-check-gpg-signature
I: dunst: dbus-session-service-wrong-name
org.freedesktop.Notifications.service
usr/share/dbus-1/services/org.knopwob.dunst.service
I: dunst: spelling-error-in-manpage usr/share/man/man1/dunst.1.gz
verticaly vertically
W: dunst: manpage-has-errors-from-man usr/share/man/man1/dunst.1.gz
476: warning [p 5, 8.7i, div `an-div', 0.2i]: can't break line

What I’d like is to output to look like this (possibly only after
specifying a flag in case it causes breakage):

% lintian dunst_1.2.0-1_amd64.changes
debian/watch:1: P: dunst source: debian-watch-may-check-gpg-signature
I: dunst: dbus-session-service-wrong-name
org.freedesktop.Notifications.service
usr/share/dbus-1/services/org.knopwob.dunst.service
I: dunst: spelling-error-in-manpage usr/share/man/man1/dunst.1.gz
verticaly vertically
[…]

I realize that for some of the messages, like the manpage-related
ones, we don’t have the mapping between binary artifact and source
file (maybe debhelper could be extended to store it). But many other
warnings that I run into can be tied to a specific source file.

On Fri, Oct 6, 2017 at 2:40 AM, Chris Lamb <lamby@debian.org> wrote:
> Hi Michael,
>
>> It would be great if lintian could include the relevant file name and line
>> number in each line of output
>
> Lintian does do this in many cases; do you have any specific examples where
> it doesn't right now?
>
>
> Regards,
>
> --
>       ,''`.
>      : :'  :     Chris Lamb
>      `. `'`      lamby@debian.org / chris-lamb.co.uk
>        `-



-- 
Best regards,
Michael


Reply to: