From 895ebeb97eb5b00eed91089a2823a9979e5f31f6 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 11:22:05 +0100 Subject: 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. --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.3