summaryrefslogtreecommitdiff
path: root/doc/CONTRIBUTING.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/CONTRIBUTING.md')
-rw-r--r--doc/CONTRIBUTING.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md
index 27391e4..4b85e9f 100644
--- a/doc/CONTRIBUTING.md
+++ b/doc/CONTRIBUTING.md
@@ -238,6 +238,10 @@ Make sure the `.field = ...,` initialization pattern is compatible with the comp
keep the code compact vertically. That includes shader code, too.
Use only one statement per line.
+### File size limit
+
+Any file larger than 500 lines should ideally be split into sub-functionalities in separate files. (Exceptions: platform code or generated files).
+
### finally
Make sure everything is reflected in clang-format.