Skip to main content

Coding standards

Canonical source

The living checklist for naming, layering, async, errors, and UI lives in:

.cursor/rules/coding-standard.mdc

Open that file in-repo for full detail (PascalCase, I* interfaces, Async suffixes, DI rules, Avalonia notes).

Summary (non-exhaustive)

TopicRule
LayersCore = contracts/models; Infrastructure = implementations; UI = Avalonia + modules
DIInject interfaces; avoid service locator except bootstrap/module patterns
AsyncNo .Result / .Wait() on async APIs
ModulesFeatures expose IModule; avoid manual registration lists

UI reminder

StackPanel / Grid: no padding or corner radius on the panel—use Margin or wrap in Border (project convention).


Related: Contributing