Context
This repo's CODESTYLE.md predates the template's General/.NET/Python restructure (ptr727/ProjectTemplate CODESTYLE.md). Its content still works but the organization has diverged, only because the template restructure was never propagated here. (The narrow spelling-rule fix — US-English + CI scope — already landed in #11.)
Goal
Reorganize CODESTYLE.md into the template's structure — General + .NET (this repo is csharp / console / docker) — adapted to this repo's actuals. Do NOT copy the template verbatim: it describes the template's own specifics.
This repo's actuals (make the doc match reality)
- VS Code task labels are
.Net Build / .Net Format (this repo's casing), not the template's .NET .... Keep doc and .vscode/tasks.json consistent (match one to the other).
- Confirm the actual analyzer settings in the
.csproj/props — the template asserts <AnalysisMode>All</AnalysisMode> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors>; only state what this repo really sets.
PhotoCleaner.code-workspace currently holds a cSpell.words list; the template rule says the word list must live in cspell.json. Reconcile (move it) or describe the actual setup.
- Tests use
Assert.Skip(...) to skip when external tools are unavailable — the template forbids native xUnit asserts; carve out this legitimate exception or adjust the rule text.
- The template's
LanguageTags / LogOptions code examples don't exist here — replace with repo-real examples or mark as illustrative.
- Markdown here is CRLF (
.editorconfig); keep any rewrite CRLF.
Reference
Context
This repo's
CODESTYLE.mdpredates the template's General/.NET/Python restructure (ptr727/ProjectTemplateCODESTYLE.md). Its content still works but the organization has diverged, only because the template restructure was never propagated here. (The narrow spelling-rule fix — US-English + CI scope — already landed in #11.)Goal
Reorganize
CODESTYLE.mdinto the template's structure — General + .NET (this repo iscsharp/console/docker) — adapted to this repo's actuals. Do NOT copy the template verbatim: it describes the template's own specifics.This repo's actuals (make the doc match reality)
.Net Build/.Net Format(this repo's casing), not the template's.NET .... Keep doc and.vscode/tasks.jsonconsistent (match one to the other)..csproj/props — the template asserts<AnalysisMode>All</AnalysisMode>+<TreatWarningsAsErrors>true</TreatWarningsAsErrors>; only state what this repo really sets.PhotoCleaner.code-workspacecurrently holds acSpell.wordslist; the template rule says the word list must live incspell.json. Reconcile (move it) or describe the actual setup.Assert.Skip(...)to skip when external tools are unavailable — the template forbids native xUnit asserts; carve out this legitimate exception or adjust the rule text.LanguageTags/LogOptionscode examples don't exist here — replace with repo-real examples or mark as illustrative..editorconfig); keep any rewrite CRLF.Reference
CODESTYLE.md= structure/rules source (adapt, don't clone).