diff options
Diffstat (limited to 'tags/c/carriage-return-line-feed.tag')
-rw-r--r-- | tags/c/carriage-return-line-feed.tag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tags/c/carriage-return-line-feed.tag b/tags/c/carriage-return-line-feed.tag new file mode 100644 index 0000000..d4f2d8b --- /dev/null +++ b/tags/c/carriage-return-line-feed.tag @@ -0,0 +1,13 @@ +Tag: carriage-return-line-feed +Severity: error +Check: debian/line-separators +Renamed-From: control-file-with-CRLF-EOLs +Explanation: The given control file uses <code>CRLF</code> as line terminator + instead of the traditional UNIX <code>LF</code> terminator. Since some + tools were only designed with the UNIX end-of-line terminators in mind, + it is possible that they misbehave or lead to unexpected results. + . + Running the following command against the given file removes any + <code>CR</code> character in the file: + . + <code>sed -i 's/\r//g' path/to/file</code> |