Document the .editorconfig rules the sources follow and how to verify them

This commit is contained in:
drobor-ai
2026-09-08 07:16:05 +00:00
parent 2ba405b19c
commit cb590e0eb6
+12
View File
@@ -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