Summary
Add an .editorconfig file to the repository root to codify the project's coding conventions.
This is the foundation for all subsequent code style enforcement.
Details
The .editorconfig file should capture the conventions already present in the codebase (not impose new ones).
Key settings to include:
- General:
root = true, charset utf-8, LF line endings, final newline, trim trailing whitespace
- Indentation: 4 spaces for C#, appropriate settings for XML/JSON/YAML
- C# code style: namespace declaration style,
var usage preferences, brace placement, using directive placement
- C# naming conventions: PascalCase for public members,
_camelCase for private fields (match existing code)
- Severity levels: Start with
suggestion or warning — not error — so this PR doesn't break the build
Acceptance Criteria
Notes
This issue is a prerequisite for subsequent code style enforcement work.
Do NOT run dotnet format to reformat existing code — that is a separate issue.
Summary
Add an
.editorconfigfile to the repository root to codify the project's coding conventions.This is the foundation for all subsequent code style enforcement.
Details
The
.editorconfigfile should capture the conventions already present in the codebase (not impose new ones).Key settings to include:
root = true, charsetutf-8, LF line endings, final newline, trim trailing whitespacevarusage preferences, brace placement,usingdirective placement_camelCasefor private fields (match existing code)suggestionorwarning— noterror— so this PR doesn't break the buildAcceptance Criteria
.editorconfigfile added at repository rootdotnet buildstill succeeds without new errorsNotes
This issue is a prerequisite for subsequent code style enforcement work.
Do NOT run
dotnet formatto reformat existing code — that is a separate issue.