Michal Čihař - Useful parameters for Lintian

Useful parameters for Lintian

Every time I review some package for sponsoring, I usually end up suggesting to fix some of more picky things which lintian finds. It looks like everybody is using default set of checks and does not look at others. Indeed the defaults tell about things which are really errors or need override, but --pedantic and --display-info show also useful hints. However you need to take them more as a suggestions than as a errors.

What I usually find interesting is --pedantic, because it tells about several things, which might be good idea to have in your package. Missing Homepage in debian/control is one of them and I believe this should exist for every package which has a homepage.

The --display-info (or just -I) is also useful, for example it does spell checking of texts in binaries and man pages. Registration into doc-base is also useful integration into the system and you should definitely do it if the package provides documentation in HTML.

To run these checks every time, you can create alias in your ~/.bashrc:

alias lintian='lintian -I --pedantic'


Fabian wrote on Jan. 17, 2011, 12:23 p.m.

I still think it's a pity that lintian does not support a per-user configuration file, e.g. ~/.lintian, in which these parameters could be hard coded.

foo wrote on Jan. 17, 2011, 12:25 p.m.

This is a better one:

lintian --info --display-info --display-experimental --pedantic --show-overrides --checksums --color auto

wrote on Jan. 17, 2011, 12:37 p.m.

@Fabian: I guess volunteers are welcome to implement it - http://bugs.debian.org/460350

PS: I don't speak Perl.

wrote on Jan. 17, 2011, 1 p.m.

@foo: Did not know about --color auto, thanks for the tip. However I find --info too verbose (and I remember what most tags mean anyway :-)).

wrote on Jan. 17, 2011, 1:55 p.m.

I run “lintian -vIiE --pedantic %s”
from Midnight Commander all the time.
Drop --pedantic on Lenny, -E on etch.

chrysn wrote on Jan. 17, 2011, 3:16 p.m.

i'd also recommend --color=auto, which colors items depending on their severity.

wrote on Jan. 17, 2011, 3:41 p.m.

Erm, no, why? The first letter already
says the severity, and the colour will
only confuse me.