From cb590e0eb6588dff8b49783a44cbd1879abff3c4 Mon Sep 17 00:00:00 2001 From: drobor-ai Date: Tue, 8 Sep 2026 07:16:05 +0000 Subject: [PATCH] Document the .editorconfig rules the sources follow and how to verify them --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 312ad0b..3169d9f 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,18 @@ dotnet build # or dotnet run --project src/Minesweeper dotnet test # 65 tests ``` +## Code style + +Everything here follows the checked-in `.editorconfig`: UTF-8 BOM and four space indents +for C#, two spaces for project files, `System` usings first, no redundant `this.`, and +`s_` / `_` prefixes for private static and instance fields. A checkout can be verified +without changing it: + +```bash +dotnet format --verify-no-changes # exits non-zero if anything drifted +dotnet format whitespace --verify-no-changes # layout only +``` + ## Standalone binaries `./publish.sh` produces a self-contained, trimmed, single-file binary for each runtime under