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


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

Received: (at 1014255) by bugs.debian.org; 2 Aug 2023 19:01:24 +0000
From [email protected] Wed Aug 02 19:01:24 2023
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=-5.6 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,FROMDEVELOPER,HEADER_FROM_DIFFERENT_DOMAINS,
	RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE
	autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 120; neutral, 43; spammy,
	0. spammytokens: hammytokens:0.000-+--cmakeliststxt,
	0.000-+--cmakelists.txt, 0.000-+--CMakeLists.txt,
	0.000-+--UD:CMakeLists.txt, 0.000-+--CMakeListstxt
Return-path: <[email protected]>
Received: from ewsoutbound.kpnmail.nl ([195.121.94.167]:22334)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1qRH64-002dfd-53
	for [email protected]; Wed, 02 Aug 2023 19:01:24 +0000
X-KPN-MessageId: eb8ce82d-3166-11ee-88a0-005056abbe64
Received: from smtp.kpnmail.nl (unknown [10.31.155.37])
	by ewsoutbound.so.kpn.org (Halon) with ESMTPS
	id eb8ce82d-3166-11ee-88a0-005056abbe64;
	Wed, 02 Aug 2023 21:01:00 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=kpnmail.nl; s=kpnmail01;
	h=content-type:mime-version:message-id:subject:to:from:date;
	bh=xhDdNd7TKjSlYaUz7L4Jb5RJ8KkV2ET/iuGKyf/LugE=;
	b=WTu0LiJzPU0ujhixZRGnI3F3UpsOjuDySPiA4wfF4NjjROvuSwdyhsttxT7T6xH+VD9SuQV3SVwYN
	 AUG/V+BoV/Y+5bwNFHSpYvOarmrcQZVq1d6GWw+9MlKghmEg19hx96w2MbLxXsA1RhgMDLKeDlp+sm
	 1AgooaMT+yu+LVO4=
X-KPN-MID: 33|BjOFMsaJdR++NSsxQJy8KblFA9PQ0bUH13zMLwMWivHv76gqlLjG66jmLKnjvqi
 hhUU4Lq2vQdK1g/+YK7McWD9VVgj+7JFKWwqg9pJ45tM=
X-KPN-VerifiedSender: No
X-CMASSUN: 33|G93tcDSN07QKBOfd9R2NMyCfWM/1B+PXu7ZYoQQQbLdIXPEar1TrVJ0hkerjAt+
 mHxJjVluMRTl9z0J4N/CWFw==
X-Originating-IP: 86.81.162.254
Received: from wijnen.me (86-81-162-254.fixed.kpn.net [86.81.162.254])
	by smtp.xs4all.nl (Halon) with ESMTPSA
	id f6fc765e-3166-11ee-8a1f-005056ab1411;
	Wed, 02 Aug 2023 21:01:19 +0200 (CEST)
Received: by wijnen.me (Postfix, from userid 1000)
	id 41B00FBC40; Wed,  2 Aug 2023 21:01:19 +0200 (CEST)
Date: Wed, 2 Aug 2023 21:01:19 +0200
From: "Dr. Bas Wijnen" <[email protected]>
To: [email protected]
Subject: Long lines should also be ignored from non-code text files
Message-ID: <ZMqn/[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:47:04 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.