1 # Nominatim contribution guidelines
 
   5 We operate the "Fork & Pull" model explained at
 
   7 https://help.github.com/articles/using-pull-requests
 
   9 You should fork the project into your own repo, create a topic branch
 
  10 there and then make one or more pull requests back to the openstreetmap repository.
 
  11 Your pull requests will then be reviewed and discussed.
 
  15 Nominatim historically hasn't followed a particular coding style but we
 
  16 are in process of consolodating the style. The following rules apply:
 
  18  * Python code uses the official Python style
 
  21    * all other file types use 4 spaces
 
  22    * [BSD style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) for braces
 
  24    * spaces before and after equal signs and operators
 
  26    * no spaces after opening and before closing bracket
 
  27    * leave out space between a function name and bracket
 
  28      but add one between control statement(if, while, etc.) and bracket
 
  30 The coding style is enforced with PHPCS and can be tested with:
 
  33   phpcs --report-width=120 --colors */**.php
 
  38 Before submitting a pull request make sure that the following tests pass:
 
  42   behave -DBUILDDIR=<builddir> db osm2pgsql