summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 11:22:05 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 11:22:05 +0100
commit895ebeb97eb5b00eed91089a2823a9979e5f31f6 (patch)
tree46d8aed75c0c180a0dc49eec513b33196a59763e /CONTRIBUTING.md
parent4abb9c9ee84cf0391e95847e61b70251e5429573 (diff)
docs(contributing): Add rule for newline at end of file
Enforces a newline at the end of all source files to prevent linting errors and ensure consistent file formatting.
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e0a4cf7..cc7e188 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -21,6 +21,10 @@ clang-format -i $(git ls-files | grep -E '\.(h|cc)$' | grep -vE '^(assets|archiv
Refer to the `.clang-format` file in the project root for the specific style rules.
+### Ensure Newline at End of File
+
+All source files (`.h`, `.cc`, `.cpp`, etc.) must end with a newline character. This prevents "No newline at end of file" errors from linters and ensures consistent file handling.
+
### Source File Headers
Every source file (`.h`, `.cc`) must begin with a concise 3-line comment header describing its purpose.