Nmap Development mailing list archives

[PATCH] Re: Indenting style, modelines


From: Daniel Roethlisberger <daniel () roe ch>
Date: Thu, 5 Mar 2009 10:28:19 +0100

David Fifield <david () bamsoftware com> 2009-02-17:
On Tue, Feb 17, 2009 at 12:24:02PM +0100, Daniel Roethlisberger wrote:
What's the preferred indenting style: tabs + spaces or spaces
only?  The sources are rather inconsistent in this regard and the
HACKING file says nothing about coding style.

The sources are very inconsistent. If there is anything like a dominant
style I think it is two-space indents, no tabs. I have this in my .vimrc:

if getcwd() =~ '/home/david/nmap.*'
    set nocindent
    set expandtab
    set softtabstop=2
    set shiftwidth=2
    set copyindent
endif

Does something like that work for you instead of modelines?

Sure.  How about the attached patch to the HACKING file for a
start?  If there are other style recommendations or rules, they
can be added there too.

-- 
Daniel Roethlisberger
http://daniel.roe.ch/

Attachment: HACKING-style-vimrc.diff
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: