Debian Bug report logs - #898091
lintian: Alter the semantics (etc.) of --pedantic?

version graph

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: Lucas Nussbaum <[email protected]>

Date: Mon, 28 Dec 2015 14:09:01 UTC

Severity: wishlist

Tags: moreinfo

Found in version lintian/2.5.39

Full log


Message #68 received at [email protected] (full text, mbox, reply):

Received: (at 884499) by bugs.debian.org; 7 May 2018 01:26:43 +0000
From [email protected] Mon May 07 01:26:43 2018
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
	(2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-23.1 required=4.0 tests=BAYES_00,FOURLA,
	FROMDEVELOPER,HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,TXREP autolearn=ham
	autolearn_force=no version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 12; hammy, 150; neutral, 216; spammy,
	0. spammytokens: hammytokens:0.000-+--Lintian, 0.000-+--allbery,
	0.000-+--Allbery, 0.000-+--U*lamby, 0.000-+--sk:lamby@d
Return-path: <[email protected]>
Received: from haven.eyrie.org ([2001:470:30:84:e276:63ff:fe62:3539])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1fFUvK-0000sW-8i
	for [email protected]; Mon, 07 May 2018 01:26:43 +0000
Received: from lothlorien.eyrie.org (unknown [IPv6:2603:3024:160b:400:ae22:bff:fe50:db06])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by haven.eyrie.org (Postfix) with ESMTPS id ECEE6118149;
	Sun,  6 May 2018 18:26:37 -0700 (PDT)
Received: by lothlorien.eyrie.org (Postfix, from userid 1000)
	id BE1F1B40338; Sun,  6 May 2018 18:26:36 -0700 (PDT)
From: Russ Allbery <[email protected]>
To: Chris Lamb <[email protected]>
Cc: [email protected],  Scott Kitterman <[email protected]>
Subject: Re: Bug#884499: lintian: Pedantic check for packages not using debhelper or CDBS
In-Reply-To: <1525655864.3849556.1362917336.4F1D8924@webmail.messagingengine.com>
	(Chris Lamb's message of "Mon, 07 May 2018 02:17:44 +0100")
Organization: The Eyrie
References: <[email protected]>
	<[email protected]>
	<1525652404.3835408.1362876960.64A81F13@webmail.messagingengine.com>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<1525655864.3849556.1362917336.4F1D8924@webmail.messagingengine.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
Date: Sun, 06 May 2018 18:26:36 -0700
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Chris Lamb <[email protected]> writes:

> However, my experience with being an author of a handful of static
> analysis tools is that people have a slight tendency to delegate
> thinking to the computer's output. The addition of an objective target
> (ie. zero output) only encourages our post-lapsarian brains to make
> poor, err, compromises.

> Do correct me if I'm wrong, but I believe this is the angle Scott was
> pushing. :)

> How could we make --pedantic more useful/obvious/something?  Ironically,
> if it were less useful in a strict sense — for example, if we moved some
> P: tags to I: — it would get less incorrect usage. :p

My modest proposal, and this is going to sound nuts so bear with me for a
moment, would be to make it impossible to get pedantic tags and regular
tags at the same time.  If you use --pedantic, suppress all other tags.

This problem stems from the fact that people are using Lintian as if
pickier is better, and the deeper they go into Lintian's settings while
keeping the package clear of any output, the better the package is.  And
that's true, up to a point -- moving from error to warning is certainly
significant, and moving from warning to info is probably significant.

But pedantic was a collection of tags that were mostly designed for a far
different purpose: you run them on a package to ask for a set of things
that might be out of step with common best practices or that you may want
to consider changing if you've not touched the package in years.  It's
much more of a one-time thing.  You run it, you look at the tags and read
the descriptions (I would argue that --pedantic is basically useless
without --info, and perhaps --pedantic should force --info, particularly
if one implements my modest proposal), you decide which ones make sense
and which ones don't, and then you fix the ones you like and move on with
your life.

Lintian has emitted pedantic warnings about some of my packages for not
having an upstream changelog for literally years.  This is never going to
be fixed; upstream is not going to make a changelog, and I'm not going to
make an artificial one.  The correct disposition of that tag is for me to
ignore it completely, *but it's still useful* for new packages when I'm
doing initial packaging and may have forgotten to include the right
debhelper command to copy over upstream's unconventionally-named
changelog.

If we *force* people to not treat --pedantic the same as other severity
levels and *force* it to be a separate pass that you only run in specific
situations, maybe this will finally get through to people, since arguing
with people in debian-mentors that they're using Lintian wrong doesn't
seem to be working.

-- 
Russ Allbery ([email protected])               <http://www.eyrie.org/~eagle/>



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:48:17 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.