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:
authorJacob Vosmaer <jacob@gitlab.com>2020-03-25 14:08:46 +0300
committerJacob Vosmaer <jacob@gitlab.com>2020-03-25 14:08:46 +0300
commitc3c0c16c40a326868d4a010c249b6465bcf8847a (patch)
treea43260fd4f9b410dad1e3af8dba4bce27b583c26 /STYLE.md
parent18895a7279c38b757a660ab56d2446dfad54519d (diff)
parent6b2a9261801d52735620da070e96bb820ca9cedd (diff)
Merge branch 'pks-style-ordering' into 'master'
Add a note on ordering of functions and types See merge request gitlab-org/gitaly!1949
Diffstat (limited to 'STYLE.md')
-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