Debian Bug report logs - #1014255
lintian: very-long-line-length-in-source-file should use file/magic to distinguish text from binary files

version graph

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

Affects: src:gnupg2

Reported by: Matt Barry <[email protected]>

Date: Fri, 1 Jul 2022 05:12:02 UTC

Severity: wishlist

Tags: confirmed

Found in version lintian/2.115.2

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#1014255: Long lines should also be ignored from non-code text files
Reply-To: Louis-Philippe Véronneau <[email protected]>, [email protected]
Resent-From: Louis-Philippe Véronneau <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Lintian Maintainers <[email protected]>
X-Loop: [email protected]
Resent-Date: Wed, 02 Aug 2023 19:33:04 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 1014255
X-Debian-PR-Package: lintian
X-Debian-PR-Keywords: confirmed
References: <[email protected]> <ZMqn/[email protected]> <[email protected]>
X-Debian-PR-Source: lintian
Received: via spool by [email protected] id=B1014255.1691004648642767
          (code B ref 1014255); Wed, 02 Aug 2023 19:33:04 +0000
Received: (at 1014255) by bugs.debian.org; 2 Aug 2023 19:30:48 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-112.3 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
	DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	FROMDEVELOPER,HAS_BUG_NUMBER,MD5_SHA1_SUM,NICE_REPLY_A,PGPSIGNATURE,
	SHIP_ID_INT,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
	UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
	autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 150; neutral, 132; spammy,
	0. spammytokens: hammytokens:0.000-+--H*ct:pgp-sha256,
	0.000-+--Hx-spam-relays-external:sk:stravin, 0.000-+--H*RT:sk:stravin,
	0.000-+--Hx-spam-relays-external:311, 0.000-+--H*RT:108
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:55630)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=stravinsky.debian.org,[email protected] (verified)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1qRHYW-002hD1-B2
	for [email protected]; Wed, 02 Aug 2023 19:30:48 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:In-Reply-To:From:
	References:To:Subject:MIME-Version:Date:Message-ID:Reply-To:Cc:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=C6q0fnpL2QAAqr40th0gASTsjX0+jGB9Jo2yrktVUb4=; b=FlID5juLstMVGrEoqc+BrnTAVt
	sGwspnTp3lbZ/Xc4Q7vzkMrBlpg+u4FaeL/j12aQCsRURHR+KFk2qzmyiJcq6+USkWPwAA+uNNhHX
	Sce9sXsw1gzGcst8qhULv6lmDA1Dh0Qg3rgHVp7/MjRxgcMvE7lWALyFmzGZMjcyp9BWMEdUfQMYf
	3Przcyl8PlFkShHALzdq/3BQ3DQs6eq3kjEs+b/l7JPtzW6MNsN4XgW2DJ9zPshgc7vrzvzjRgWmd
	uLrKy5xW5kO+x0j/rlytCqYxvqlJk+gqU6ojL/j1p91sMFLXBUNuVKgHlTwh209ElRPa76r4oBbUT
	q2ul5CUQ==;
Received: from authenticated user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1qRHYU-001Y4J-Pr
	for [email protected]; Wed, 02 Aug 2023 19:30:46 +0000
Message-ID: <[email protected]>
Date: Wed, 2 Aug 2023 15:30:37 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.1
Content-Language: en-US
To: [email protected]
From: Louis-Philippe Véronneau <[email protected]>
In-Reply-To: <ZMqn/[email protected]>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="------------FyPBcx7OlpFQbSFULUsAtKfq"
X-Debian-User: pollo
[Message part 1 (text/plain, inline)]
On 2023-08-02 15 h 01, Dr. Bas Wijnen wrote:
> Hi,
> 
> Axel writes that README.md and LICENSE are likely valid cases. I disagree.
> While I (and I expect many developers in Debian) are used to using short lines
> in text files, this is not that common for other people. Many will use the
> automatic word-wrap feature of text editors and write a whole paragraph on a
> single line.
> 
> I don't think I should ask upstream to reformat their non-code text files; it's
> not a good use of their time, and also they would likely not even do it.
> 
> Instead, I hope lintian can avoid emitting this tag for non-code text files (in
> particular: *.txt, *.html, *.md). Although CMakeLists.txt is probably an
> exception: that is code and it shouldn't contain long lines.
> 
> I could add overrides, but I don't think this would be an appropriate case for
> that. But please let me know if it is.
> 
> Thanks,
> Bas
> 

Note that the 'very-long-line-length-in-source-file' was marked as 
'experimental' in this commit [1] exactly for that kind of reason.

The default lintian mode doesn't use the 'experimental' tags and I would 
advise you not to include them if this tag is currently bothering you.

[1]: 
https://salsa.debian.org/lintian/lintian/-/commit/899bd1b683c479e166ebd465ff0ad101fbd04ee2

-- 
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   [email protected] / veronneau.org
  ⠈⠳⣄

[OpenPGP_0xE1E5457C8BAD4113.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:47:03 2025; Machine Name: buxtehude

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.