[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Add suggested [[:space:]]-based sed call for ile-contains-trailing-whitespace. Thanks to Stuart Prescott. (Closes: #881389)



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 45632b0eee8967eb155fddd093c7761c12bc1980
Author: Chris Lamb <lamby@debian.org>
Date:   Sat Nov 11 09:16:13 2017 +0000

    Add suggested [[:space:]]-based sed call for ile-contains-trailing-whitespace. Thanks to Stuart Prescott. (Closes: #881389)
---
 checks/cruft.desc | 7 ++++++-
 debian/changelog  | 5 +++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/checks/cruft.desc b/checks/cruft.desc
index 9bbe705..8df02f1 100644
--- a/checks/cruft.desc
+++ b/checks/cruft.desc
@@ -902,4 +902,9 @@ Info: This file appears to contain one or more lines with trailing
  .
  Whitespace can be removed with the following code snippet:
  .
-  $ sed -i -e 's@[ ]*$@@g' path/to/filename
+  $ sed -i -e 's@[[:space:]]*$@@g' debian/control
+ .
+ However, if you wish to only remove trailing spaces and leave trailing tabs
+ (eg. for Makefiles), you can use the following code snippet:
+ .
+  $ sed -i -e 's@[ ]*$@@g' debian/rules
diff --git a/debian/changelog b/debian/changelog
index 1fecbe2..f9253d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,11 @@ lintian (2.5.60) UNRELEASED; urgency=medium
 
   XXX: generate tag summary
 
+  * checks/cruft.desc:
+    + [CL] Add suggested [[:space:]]-based sed call for
+      file-contains-trailing-whitespace. Thanks to Stuart Prescott.
+      (Closes: #881389)
+
  -- Chris Lamb <lamby@debian.org>  Thu, 09 Nov 2017 09:09:49 +0000
 
 lintian (2.5.59) unstable; urgency=medium

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: