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, 11:23 a.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, 11:25 a.m.

This is a better one:

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

wrote on Jan. 17, 2011, 11:37 a.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, noon

@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, 12: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, 2:16 p.m.

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

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

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

New Comment

Due to excessive spam, new comments are disabled. If you have some feedback on this post, please send me email or followup on Twitter or Facebook.