Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--STYLE.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/STYLE.md b/STYLE.md
index fae4e0a98..e9bfc5c08 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -89,6 +89,12 @@ variables.
In Gitaly we don't use this feature. If the function returns one or
more values, then always pass them to `return`.
+## Ordering
+
+### Declare types before their first use
+
+A type should be declared before its first use.
+
## Tests
### Table-driven tests