Merge pull request #8166 from demarches-simplifiees/coding_convention
chore: ajoute d'un document pour les conventions de code
This commit is contained in:
commit
fbbad6e227
1 changed files with 13 additions and 0 deletions
13
doc/coding_conventions.md
Normal file
13
doc/coding_conventions.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# early returns
|
||||||
|
|
||||||
|
## in controllers
|
||||||
|
|
||||||
|
good
|
||||||
|
|
||||||
|
```
|
||||||
|
... code
|
||||||
|
|
||||||
|
return if !DossierSearchService.id_compatible?(@search_terms)
|
||||||
|
|
||||||
|
... more code
|
||||||
|
```
|
Loading…
Reference in a new issue