mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 13:54:07 +00:00
adapt coding style for new spaces-only policy
This commit is contained in:
@@ -18,7 +18,7 @@ are in process of consolodating the style. The following rules apply:
|
|||||||
* Python code uses the official Python style
|
* Python code uses the official Python style
|
||||||
* indention
|
* indention
|
||||||
* SQL use 2 spaces
|
* SQL use 2 spaces
|
||||||
* all other use files TABs
|
* all other file types use 4 spaces
|
||||||
* [BSD style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) for braces
|
* [BSD style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) for braces
|
||||||
* spaces
|
* spaces
|
||||||
* spaces before and after equal signs and operators
|
* spaces before and after equal signs and operators
|
||||||
@@ -27,7 +27,6 @@ are in process of consolodating the style. The following rules apply:
|
|||||||
* leave out space between a function name and bracket
|
* leave out space between a function name and bracket
|
||||||
but add one between control statement(if, while, etc.) 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
|
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
|
welcome to fix the coding style of existing code but please submit separate
|
||||||
PRs for this.
|
PRs for this.
|
||||||
|
|||||||
Reference in New Issue
Block a user