Nmap Development mailing list archives

Re: [PATCH] Re: Indenting style, modelines


From: Fyodor <fyodor () insecure org>
Date: Fri, 6 Mar 2009 19:30:03 -0800

On Thu, Mar 05, 2009 at 10:28:19AM +0100, Daniel Roethlisberger wrote:

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.

Good idea.  I added this section which is only slightly modified from
your patch:

--- HACKING     (revision 12445)
+++ HACKING     (working copy)
@@ -93,7 +93,22 @@
 
 and just send us the patch: file.c.patch.
 
+Style
+-----
 
+When contributing new code, we suggest using two-space indents with no
+tabs.  This is generally the default in emacs, and Vim users can
+achieve it by adding rules such as the following to .vimrc:
+
+if getcwd() =~ '/nmap'
+    set nocindent
+    set expandtab
+    set softtabstop=2
+    set shiftwidth=2
+    set copyindent
+endif
+
+
 Credits
 -------


Cheers,
-F

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


Current thread: