From: Sarah Hoffmann Date: Sun, 27 Mar 2016 18:00:15 +0000 (+0200) Subject: Merge branch 'tigerlines' of https://github.com/markigail/Nominatim X-Git-Tag: v3.0.0~190 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/443bfec0350085788ddcc6b5ca5a541e2321ec64?hp=7dd0a63b688c14b49179c47b592bdf309abe6d08 Merge branch 'tigerlines' of https://github.com/markigail/Nominatim --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..04ed748b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,47 @@ +# Nominatim contribution guidelines + +## Workflow + +We operate the "Fork & Pull" model explained at + +https://help.github.com/articles/using-pull-requests + +You should fork the project into your own repo, create a topic branch +there and then make one or more pull requests back to the openstreetmap repository. +Your pull requests will then be reviewed and discussed. + +## Coding style + +Nominatim historically hasn't followed a particular coding style but we +are in process of consolodating the style. The following rules apply: + + * Python code uses the official Python style + * indention + * SQL use 2 spaces + * all other use files TABs + * [BSD style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) for braces + * spaces + * spaces before and after equal signs and operators + * no trailing spaces + * no spaces after opening and before closing bracket + * leave out space between a function name and bracket + but add one between control statement(if, while, etc.) and bracket + + +This coding style must be applied to any new or changed code. You are also +welcome to fix the coding style of existing code but please submit separate +PRs for this. + +## Testing + +Before submitting a pull request make sure that the following tests pass: + +``` + cd tests + NOMINATIM_DIR= lettuce -t -Fail features/db features/osm2pgsql +``` + +``` + cd test-php + phpunit ./ +``` diff --git a/lib/init-cmd.php b/lib/init-cmd.php index e5a650fc..274256a6 100644 --- a/lib/init-cmd.php +++ b/lib/init-cmd.php @@ -1,9 +1,4 @@