Merge pull request #8166 from demarches-simplifiees/coding_convention

chore: ajoute d'un document pour les conventions de code
This commit is contained in:
LeSim 2023-01-11 14:41:46 +01:00 committed by GitHub
commit fbbad6e227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
doc/coding_conventions.md Normal file
View file

@ -0,0 +1,13 @@
# early returns
## in controllers
good
```
... code
return if !DossierSearchService.id_compatible?(@search_terms)
... more code
```