From 90cc87eb23309c7da699ab426d6600314b8d0987 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 30 Nov 2022 12:36:20 +0100 Subject: [PATCH] chore: starting a coding convention --- doc/coding_conventions.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/coding_conventions.md diff --git a/doc/coding_conventions.md b/doc/coding_conventions.md new file mode 100644 index 000000000..bc16d674b --- /dev/null +++ b/doc/coding_conventions.md @@ -0,0 +1,13 @@ +# early returns + +## in controllers + +good + +``` +... code + +return if !DossierSearchService.id_compatible?(@search_terms) + +... more code +```