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

Bug#583330: lintian: Check for extra VIM .swp files (like CVS/ .svn/)



On Thu, May 27, 2010 07:24, Jari Aalto wrote:
> Sometimes packages ship extra files like:
>
> 	  .swp	   	VIM backup
> 	  DEADJOE	Joe backup
> 	  *~ *#		Emacs backup, temporary
>
> Perhaps lintian could display some message about these files? The
> developers could use the information to notify the upstream.

The vim and emacs files are already flagged if they appear in the .diff.gz
(diff-contains-editor-backup-file); adding the equivalents for other
editors seems reasonable.

However, lintian intentionally does /not/ flag the presence of such files
in source packages; from checks/cruft:

# given file.  If the third column is a true value, don't issue this tag
# unless the file is included in the diff; it's too common in source packages
# and not important enough to worry about.
[...]
     [ qr,((^|/)\.[^/]+\.swp|~)$,         => 'editor-backup-file',  1 ],

Regards,

Adam




Reply to: