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

[lintian] 01/01: Add example on how to remove trailing whitespace with sed.



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

lamby pushed a commit to branch master
in repository lintian.

commit 12b946617365d87dfe06bdd8110de79e88cfdd6c
Author: Chris Lamb <lamby@debian.org>
Date:   Sat Oct 28 08:50:39 2017 +0100

    Add example on how to remove trailing whitespace with sed.
---
 checks/cruft.desc | 4 ++++
 debian/changelog  | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/checks/cruft.desc b/checks/cruft.desc
index 68b65a9..9bbe705 100644
--- a/checks/cruft.desc
+++ b/checks/cruft.desc
@@ -899,3 +899,7 @@ Info: This file appears to contain one or more lines with trailing
  Whilst typically harmless and merely unsightly, they can often cause
  difficult-to-spot issues where tools interpret the whitespace characters
  literally and are thus best avoided in their entirity.
+ .
+ Whitespace can be removed with the following code snippet:
+ .
+  $ sed -i -e 's@[ ]*$@@g' path/to/filename
diff --git a/debian/changelog b/debian/changelog
index 7addfcb..a08ac84 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ lintian (2.5.57) UNRELEASED; urgency=medium
     + [CL] Avoid false positives in debian-control-has-empty-field when the
       field is wrapped onto a new line. Thanks to Mattia Rizzolo for the
       report.  (Closes: #879977)
+  * checks/cruft.desc:
+    + [CL] Add example on how to remove trailing whitespace with sed.
 
  -- Chris Lamb <lamby@debian.org>  Fri, 27 Oct 2017 20:00:29 +0100
 

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


Reply to: