mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Add a style section very similar to one suggested by Daniel Roethlisberger on nmap-dev
This commit is contained in:
parent
56d83f74a2
commit
bf9d1bad77
1 changed files with 15 additions and 0 deletions
15
HACKING
15
HACKING
|
|
@ -93,6 +93,21 @@ easier. For each file, just do:
|
|||
|
||||
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
|
||||
-------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue