| CS-A11Y-001 |
Use logical properties and utilities in new CSS |
major |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-002 |
Let shrinkable grid tracks shrink with minmax(0, 1fr) |
major |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-003 |
Show dates through one formatter in the user's time zone |
blocker |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-004 |
Give every input a programmatic label |
major |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-005 |
Run a Playwright and axe smoke test in every Shell and micro-frontend template |
major |
template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-006 |
Render ARIA state attributes as explicit "true" or "false" |
major |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-007 |
Show validation and refusal messages in the user's language |
major |
blazor, template, service |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-008 |
Render both branches of a bool |
minor |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-009 |
Set the tone of a message explicitly |
minor |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-010 |
Make every action reachable from the keyboard, and test it from a known focus |
minor |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-011 |
Don't use month or week inputs |
major |
blazor, template |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-012 |
Use only the UIKit breakpoints |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-013 |
Render a control and its explanation in every responsive branch |
major |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-014 |
Scope responsive end-to-end locators to visible elements |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-015 |
Keep a visible close action in phone modals |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-016 |
Use only CSS classes that are defined |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-017 |
Keep one theme file and no duplicated selectors |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-018 |
Link the scoped CSS bundle in App.razor |
major |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-019 |
Keep a component's own display when a breakpoint helper shows it |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-020 |
Translate every coded value through the lookup its column declares |
major |
blazor, template, service |
active |
ui/accessibility-and-rtl.md |
| CS-A11Y-021 |
Keep flex layouts inside the viewport at phone width |
major |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-022 |
Take every colour from a theme token |
minor |
blazor, template |
active |
ui/responsive-layout.md |
| CS-A11Y-023 |
Space sibling controls with CSS, not markup whitespace |
nit |
blazor, template |
active |
ui/responsive-layout.md |
| CS-API-001 |
Use lowercase, hyphenated, plural paths for new REST contracts |
major |
service, api-client, template |
active |
service/api-contracts.md |
| CS-API-002 |
Version internal contracts through the ServiceModel package, not the URL |
major |
service, api-client, template |
active |
service/api-contracts.md |
| CS-API-003 |
Release every contract change as a ServiceModel version |
major |
service, api-client, template |
active |
service/api-contracts.md |
| CS-API-004 |
Send enums as strings and treat a new member as a contract change |
major |
service, api-client, template |
active |
service/api-contracts.md |
| CS-API-005 |
Return errors as ProblemDetails through the shared mappings |
major |
service, template |
active |
service/api-contracts.md |
| CS-API-006 |
Define gRPC contracts code-first in the ServiceModel |
major |
service, template |
active |
service/api-contracts.md |
| CS-API-007 |
Round-trip the whole record in a full-replace update |
blocker |
service, blazor, api-client |
active |
service/api-contracts.md |
| CS-API-008 |
Map every field through every hop |
major |
service, api-client, blazor |
active |
service/api-contracts.md |
| CS-API-009 |
Never let a request body set a server-stamped field |
blocker |
service, template |
active |
service/api-contracts.md |
| CS-API-010 |
Log infrastructure failures that are mapped to a 4xx status |
major |
service, template |
retired |
service/api-contracts.md |
| CS-API-011 |
Read a paged endpoint to the end, by its total count |
major |
service, api-client, blazor, template |
active |
service/api-contracts.md |
| CS-API-012 |
Name the child a command changes |
major |
service, template |
active |
service/api-contracts.md |
| CS-API-013 |
Read internal service responses through the shared response guard |
major |
service |
active |
service/api-contracts.md |
| CS-API-014 |
Leave a response body readable in a delegating handler |
major |
service, library |
active |
service/api-contracts.md |
| CS-API-015 |
Remove a compensating check only after the replacing downstream is deployed |
blocker |
service |
active |
service/api-contracts.md |
| CS-ASY-001 |
Use ConfigureAwait(false) in library, API client and service code |
major |
library, api-client, service |
active |
code/async-and-concurrency.md |
| CS-ASY-002 |
Never use ConfigureAwait(false) in Orleans grains or Blazor components |
blocker |
service, blazor, template |
active |
code/async-and-concurrency.md |
| CS-ASY-003 |
Do not block on asynchronous code |
blocker |
service, library, api-client, blazor, template |
active |
code/async-and-concurrency.md |
| CS-ASY-004 |
Use async void only for event handlers |
major |
service, library, api-client, blazor, template |
active |
code/async-and-concurrency.md |
| CS-ASY-005 |
Accept a CancellationToken and pass it on |
major |
service, library, api-client, template |
active |
code/async-and-concurrency.md |
| CS-ASY-006 |
Use Task.Run only to offload work, never to fake asynchrony |
minor |
service, library, api-client, blazor, template |
active |
code/async-and-concurrency.md |
| CS-ASY-007 |
Return per-call results instead of reading shared state after an await |
major |
service, library, api-client, blazor, template |
active |
code/async-and-concurrency.md |
| CS-AUZ-001 |
Gate every action with a named policy above an authenticated floor |
blocker |
service, template |
active |
service/authorization.md |
| CS-AUZ-002 |
Remember that authorize attributes add up and only [AllowAnonymous] overrides them |
blocker |
service, template |
active |
service/authorization.md |
| CS-AUZ-003 |
Name policies with constants |
minor |
service, template |
active |
service/authorization.md |
| CS-AUZ-004 |
Return 404 for an out-of-scope record and 403 for a missing capability, never 500 |
blocker |
service, template |
active |
service/authorization.md |
| CS-AUZ-005 |
Enforce record scope on the server, from the token |
blocker |
service, template |
active |
service/authorization.md |
| CS-AUZ-006 |
Treat an empty grant set as no access, and hide unscoped rows |
blocker |
service, template |
active |
service/authorization.md |
| CS-AUZ-007 |
Call other services from background jobs with a service token |
major |
service, template |
active |
service/authorization.md |
| CS-AUZ-008 |
Compare scope in the id space the record stores |
major |
service |
active |
service/authorization.md |
| CS-AUZ-009 |
Carry the scope into every query an operation builds |
major |
service |
active |
service/authorization.md |
| CS-AUZ-010 |
Give every issued claim a token destination, and assert it in a decoded token |
major |
service, template |
active |
service/authorization.md |
| CS-AUZ-011 |
Shape an open route's response to the reason it is open |
major |
service, template |
active |
service/authorization.md |
| CS-AUZ-012 |
Test every gated feature as the least-privileged role that uses it |
major |
service, blazor, template |
active |
service/authorization.md |
| CS-AUZ-013 |
Write tool policies against the exposed tool name |
minor |
service |
active |
service/authorization.md |
| CS-AUZ-014 |
Compare ownership through one helper that rejects empty ids |
blocker |
service, template |
active |
service/authorization.md |
| CS-CFG-001 |
Register options with validation on start |
major |
service, library, template |
active |
service/configuration-and-options.md |
| CS-CFG-002 |
Inject IOptions<T> unless values must reload |
minor |
service, library, template |
active |
service/configuration-and-options.md |
| CS-CFG-003 |
Never give a bound collection property a default value |
blocker |
service, library, template |
active |
service/configuration-and-options.md |
| CS-CFG-004 |
Keep base settings at Information level with console exporters off |
major |
service, template |
active |
service/configuration-and-options.md |
| CS-CFG-005 |
Set environment-specific values in the deployment, not in committed environment files |
minor |
service, pipelines, template |
active |
service/configuration-and-options.md |
| CS-CFG-006 |
Open header propagation before middleware that calls other services |
major |
service, template |
active |
service/configuration-and-options.md |
| CS-CFG-007 |
Add a required options section to every settings variant, guarded by a parity test |
major |
service, template |
active |
service/configuration-and-options.md |
| CS-CFG-008 |
Extend a registered options instance instead of registering it again |
major |
service, library |
active |
service/configuration-and-options.md |
| CS-CFG-009 |
Restate every base array entry in an overlay settings file |
major |
service, template |
active |
service/configuration-and-options.md |
| CS-CFG-010 |
Declare every substituted key in the settings file it is substituted into |
major |
service, template, pipelines |
active |
service/configuration-and-options.md |
| CS-CFG-011 |
Read a section only through its options type |
minor |
service, library, template |
active |
service/configuration-and-options.md |
| CS-CFG-012 |
Keep test and CI settings at Information level without console sinks |
major |
service, template, pipelines |
active |
service/configuration-and-options.md |
| CS-DEP-001 |
Never cross a commercial licence boundary in a version bump |
blocker |
service, library, api-client, blazor, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-002 |
Hold Swashbuckle and Microsoft.OpenApi together |
blocker |
service, library, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-003 |
Wire a commercial licence key through configuration |
major |
service, library, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-004 |
Check the licence of a package and of its later majors before you add it |
major |
service, library, api-client, blazor, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-005 |
Do not add Moq to new code |
major |
service, library, api-client, blazor, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-006 |
Check what a security pin removes from the dependency graph |
major |
service, library, template |
active |
dependencies/dependency-licensing.md |
| CS-DEP-007 |
Declare every package version in a root Directory.Packages.props |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-008 |
Turn on central package management once, in Directory.Packages.props |
minor |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-009 |
Put no version on a PackageReference |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-010 |
Use VersionOverride only with a comment that gives the reason |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-011 |
Pin exact versions |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-012 |
Never move a stable pin to a prerelease |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-013 |
Comment every held version with the ADR that holds it |
minor |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-014 |
Keep package source mapping and NuGet audit on |
major |
service, library, api-client, blazor, template, pipelines |
active |
dependencies/central-package-management.md |
| CS-DEP-015 |
Keep per-framework version lines inside their major |
minor |
library, template |
active |
dependencies/central-package-management.md |
| CS-DEP-016 |
Build and test every repository of a dependency wave in Release before review |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-017 |
Remove a package from every file that names it |
major |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-018 |
Ship static web assets only through the SDK pipeline |
major |
library, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-019 |
Use MSBuild Exists() only in a condition |
minor |
service, library, api-client, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DEP-020 |
Keep analyzer and build-only packages out of the package's dependencies |
major |
library, blazor, template |
active |
dependencies/central-package-management.md |
| CS-DOCS-001 |
Write documentation in English |
major |
docs, service, library, api-client, blazor, template, pipelines |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-002 |
Open each page with one title and a purpose statement |
minor |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-003 |
Give every page front matter |
minor |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-004 |
Keep the site building in strict mode |
major |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-005 |
Keep client names, people and secrets out of canonical documentation |
major |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-006 |
Use admonitions for their meaning |
nit |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-007 |
Make diagrams render and stay true |
minor |
docs |
active |
documentation/documentation-writing-standard.md |
| CS-DOCS-008 |
Validate anchors in every documentation site |
minor |
docs, template |
active |
documentation/documentation-writing-standard.md |
| CS-DOD-001 |
No new warnings |
major |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-DOD-002 |
Tests come with the change |
major |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-DOD-003 |
The coverage threshold is not lowered |
major |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-DOD-004 |
Documentation follows behaviour |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/definition-of-done.md |
| CS-DOD-005 |
No secrets in the change |
blocker |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/definition-of-done.md |
| CS-DOD-006 |
XML comments on public and internal members |
minor |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-DOD-007 |
Link the work item |
nit |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/definition-of-done.md |
| CS-DOD-008 |
Run the full test suites of every repository the change affects |
major |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-DOD-009 |
Prove a fix against the binary that contains it |
major |
service, library, api-client, blazor, template |
active |
process/definition-of-done.md |
| CS-E2E-001 |
Locate elements by test id first |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-002 |
Never wait for a fixed time |
blocker |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-003 |
Wait for Blazor hydration before you interact |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-004 |
Assert with Expect, not with a one-shot read |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-005 |
Do not check a control and then click it |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-006 |
Catch action timeouts as TimeoutException |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-007 |
Pair every withholding assertion with a positive control |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-008 |
Settle on evidence the browser did not create |
major |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-009 |
Pass only supported regex flags to Playwright assertions |
minor |
blazor, template |
active |
testing/e2e-playwright.md |
| CS-E2E-010 |
Keep a screenshot and a trace of every failure |
minor |
blazor, template, pipelines |
active |
testing/e2e-playwright.md |
| CS-E2E-011 |
Run one end-to-end lane per environment at a time |
major |
pipelines |
active |
testing/e2e-playwright.md |
| CS-ERR-001 |
Never swallow an exception |
blocker |
service, library, api-client, blazor, template |
active |
code/error-handling.md |
| CS-ERR-002 |
Log a business refusal at the boundary at Warning |
minor |
service, template |
active |
code/error-handling.md |
| CS-ERR-003 |
Classify infrastructure failures by exception type and always log them at Error |
major |
service, template |
active |
code/error-handling.md |
| CS-ERR-004 |
Keep problem details mappings from throwing |
major |
service, template |
active |
code/error-handling.md |
| CS-ERR-005 |
Map exceptions to responses at the boundary and hide internal details |
major |
service, template |
active |
code/error-handling.md |
| CS-ERR-006 |
Throw specific exception types |
minor |
service, library, api-client, blazor, template |
active |
code/error-handling.md |
| CS-ERR-007 |
Guard arguments with the ThrowIf helpers |
nit |
service, library, api-client, blazor, template |
active |
code/error-handling.md |
| CS-ERR-008 |
Treat cancellation as cancellation, not as a failure |
minor |
service, library, api-client, blazor, template |
active |
code/error-handling.md |
| CS-ERR-009 |
Test a retry policy against the exception the call actually throws |
minor |
service, library, template |
active |
code/error-handling.md |
| CS-ERR-010 |
Keep the original exception when you wrap it |
major |
service, library, blazor, template |
active |
code/error-handling.md |
| CS-GIT-001 |
The default branch is master or main |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/branching-strategy.md |
| CS-GIT-002 |
Only the repository owner commits directly to the default branch |
major |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/branching-strategy.md |
| CS-GIT-003 |
Use short-lived change branches named by kind and work item |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/branching-strategy.md |
| CS-GIT-004 |
Write the subject as one imperative line |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/git-commit-conventions.md |
| CS-GIT-005 |
Reference the work item when there is one |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/git-commit-conventions.md |
| CS-GIT-006 |
Explain the reason in the body of a non-trivial commit |
nit |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/git-commit-conventions.md |
| CS-LOG-001 |
Log with message templates |
major |
service, library, api-client, blazor |
active |
service/logging.md |
| CS-LOG-002 |
Use Here() in application code and source-generated logging in hot paths and libraries |
minor |
service, library |
active |
service/logging.md |
| CS-LOG-003 |
Scope every public domain operation with a flow name |
minor |
service |
active |
service/logging.md |
| CS-LOG-004 |
Log the start, completion and failure of a domain operation |
major |
service |
active |
service/logging.md |
| CS-LOG-005 |
Never log secrets or personal data |
blocker |
service, library, api-client, blazor |
active |
service/logging.md |
| CS-LOG-006 |
Treat existing log text as behaviour |
minor |
service, library |
active |
service/logging.md |
| CS-LOG-007 |
Test logs that are behaviour with FakeLogger, never with a mocked ILogger |
major |
service, library, api-client, blazor, template |
active |
service/logging.md |
| CS-LOG-008 |
Count and log references that enrichment cannot resolve |
major |
service, library, template |
active |
service/logging.md |
| CS-LOG-009 |
Log the status the client receives, outside the exception mapping |
major |
service, template |
active |
service/logging.md |
| CS-LOG-010 |
Write response headers only before the response starts, never from a log enricher |
major |
service, library, template |
active |
service/logging.md |
| CS-MAP-001 |
Depend on the object mapping abstraction |
major |
service, library, template |
active |
code/object-mapping.md |
| CS-MAP-002 |
Never cross AutoMapper 15 without the licence wiring |
blocker |
service, library, template |
active |
code/object-mapping.md |
| CS-MAP-003 |
Test every mapping configuration for validity |
major |
service, library, template |
active |
code/object-mapping.md |
| CS-MAP-004 |
Keep business logic and I/O out of mappings |
major |
service, library, template |
active |
code/object-mapping.md |
| CS-MAP-005 |
Ignore a destination member explicitly, and only that member |
major |
service, library, template |
active |
code/object-mapping.md |
| CS-MAP-006 |
Keep "null means keep" collections intact through every mapping hop |
major |
service, template |
active |
code/object-mapping.md |
| CS-MET-001 |
Create meters through IMeterFactory in a metrics class |
minor |
service, library, template |
active |
service/metrics.md |
| CS-MET-002 |
Name new meters and instruments in lowercase OpenTelemetry style |
minor |
service, library, template |
active |
service/metrics.md |
| CS-MET-003 |
Record durations as Histogram<double> in seconds |
minor |
service, library, template |
active |
service/metrics.md |
| CS-MET-004 |
Record a success counter, a failure counter and a duration for every operation |
major |
service, template |
active |
service/metrics.md |
| CS-MET-005 |
Keep tag values few and safe |
major |
service, library, template |
active |
service/metrics.md |
| CS-MET-006 |
Treat existing metric names as behaviour |
minor |
service, library, template |
active |
service/metrics.md |
| CS-MET-007 |
Test every metrics class and the metrics of every domain operation with MetricCollector<T> |
major |
service, library, template |
active |
service/metrics.md |
| CS-MET-008 |
Make health checks cover hosted services and the schema, not only connectivity |
major |
service, template |
active |
service/metrics.md |
| CS-MET-009 |
Configure health dashboard endpoints with absolute URIs |
minor |
service, template |
active |
service/metrics.md |
| CS-MSG-001 |
Name events and commands with their suffix |
major |
service, library, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-002 |
Declare every published event with its subscribers or an unrouted reason |
blocker |
service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-003 |
Publish inside the unit-of-work transaction |
blocker |
service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-004 |
Configure each route in every settings variant and in the deployment pipeline |
major |
service, pipelines, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-005 |
Make every handler idempotent |
major |
service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-006 |
Choose a non-default messaging stack only with a recorded reason |
minor |
service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-007 |
Carry the initial value of every projected field on the creation event |
major |
service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-008 |
Signal the outbox dispatcher only after the transaction commits |
major |
library, service, template |
active |
service/messaging-and-orleans.md |
| CS-MSG-009 |
Give each service interface one owner when optional modules can register it |
major |
library, service, template |
active |
service/messaging-and-orleans.md |
| CS-NAM-001 |
Name private fields in camelCase and access them with this. |
major |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-NAM-002 |
Follow the .NET casing and naming conventions for types and members |
minor |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-NAM-003 |
Name events and commands with their suffix |
major |
service, library, template |
retired |
code/csharp-style-and-naming.md |
| CS-NAM-004 |
Use lowercase, hyphenated, plural paths for new REST contracts |
major |
service, api-client, template |
retired |
code/csharp-style-and-naming.md |
| CS-NAM-005 |
Give asynchronous methods the Async suffix in libraries and API clients |
minor |
library, api-client |
active |
code/csharp-style-and-naming.md |
| CS-ORL-001 |
Never use ConfigureAwait(false) in grain code |
blocker |
service, library, template |
retired |
service/messaging-and-orleans.md |
| CS-ORL-002 |
Never block on async code that a grain can reach |
blocker |
service, library, template |
active |
service/messaging-and-orleans.md |
| CS-ORL-003 |
Resolve scoped services in a grain through a new scope |
major |
service, template |
active |
service/messaging-and-orleans.md |
| CS-ORL-004 |
Key grains by the identifier of the thing they represent |
minor |
service, template |
active |
service/messaging-and-orleans.md |
| CS-ORL-005 |
Start a fake clock at the test's baseline time |
major |
service, template |
active |
service/messaging-and-orleans.md |
| CS-ORL-006 |
Reference the Orleans SDK directly in every project with grains |
blocker |
service, library, template |
active |
service/messaging-and-orleans.md |
| CS-ORL-007 |
Confirm a host has stopped before starting another instance of it |
minor |
service, pipelines |
active |
service/messaging-and-orleans.md |
| CS-PER-001 |
Use NHibernate, FluentNHibernate and FluentMigrator by default |
minor |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-002 |
Fold schema changes into the baseline migration before release |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-003 |
Keep migrations immutable and additive after release |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-004 |
Seed lookup tables from the enumeration in the baseline |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-005 |
Never drop, recreate or alter a database that was not named |
blocker |
service, template, docs |
active |
service/persistence-and-migrations.md |
| CS-PER-006 |
Change data through repositories inside the unit of work |
minor |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-007 |
Flush between closing and opening rows under a filtered unique index |
major |
service |
active |
service/persistence-and-migrations.md |
| CS-PER-008 |
Re-parent a child by setting its parent reference |
blocker |
service |
active |
service/persistence-and-migrations.md |
| CS-PER-009 |
Test persistence the way production runs it |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-010 |
Apply a command's effective date to every record it writes |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-011 |
Match search text word by word across the searched columns |
minor |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PER-012 |
Keep SQL echo off in deployed configurations and batch-fetch the collections that list reads touch |
major |
service, template |
active |
service/persistence-and-migrations.md |
| CS-PRC-001 |
Record a durable technical decision as an ADR |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/decision-records.md |
| CS-PRC-002 |
Use the ADR template, number and index |
minor |
docs |
active |
process/decision-records.md |
| CS-PRC-003 |
Change a decision by status, never by rewriting history |
minor |
docs |
active |
process/decision-records.md |
| CS-PRC-004 |
Change the major version for a breaking change and the minor version for a feature |
major |
library, api-client, template |
active |
process/versioning-and-release.md |
| CS-PRC-005 |
State breaking changes in the pull request |
major |
library, api-client, template |
active |
process/versioning-and-release.md |
| CS-PRC-006 |
Publish only from the default branch |
major |
library, api-client, template, pipelines |
active |
process/versioning-and-release.md |
| CS-PRC-007 |
Keep one pipeline file at the repository root |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/ci-cd.md |
| CS-PRC-008 |
Reuse the shared step templates in service and template pipelines |
minor |
service, template, pipelines |
active |
process/ci-cd.md |
| CS-PRC-009 |
Keep the dependency and coverage checks |
major |
service, library, api-client, blazor, template, pipelines |
active |
process/ci-cd.md |
| CS-PRC-010 |
Deploy beyond development only after an approval |
major |
service, pipelines |
active |
process/ci-cd.md |
| CS-PRC-011 |
Check trigger paths and publish conditions against the repository |
major |
library, api-client, template, pipelines |
active |
process/ci-cd.md |
| CS-PRC-012 |
Give CI service containers generated names and dynamic host ports |
major |
service, template, pipelines |
active |
process/ci-cd.md |
| CS-PRC-013 |
Write one test results file per test assembly |
minor |
service, library, api-client, blazor, template, pipelines |
active |
process/ci-cd.md |
| CS-REV-001 |
The repository owner approves every pull request before merge |
major |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/code-review.md |
| CS-REV-002 |
Write each finding with a rule ID, a severity and a location |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/code-review.md |
| CS-REV-003 |
Resolve blockers and majors before merge |
major |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/code-review.md |
| CS-REV-004 |
Review the change, and report pre-existing issues separately |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/code-review.md |
| CS-REV-005 |
Describe the change, its reason and its risks in the pull request |
minor |
service, library, api-client, blazor, template, docs, pipelines |
active |
process/code-review.md |
| CS-SEC-001 |
Never commit a secret |
blocker |
service, library, api-client, blazor, template, docs, pipelines |
active |
governance/security-and-compliance.md |
| CS-SEC-002 |
Validate every token in the resource API |
blocker |
service |
active |
governance/security-and-compliance.md |
| CS-SEC-003 |
Trust gateway-propagated identity only on internal paths |
blocker |
service |
active |
governance/security-and-compliance.md |
| CS-SEC-004 |
Use only the approved OAuth and OpenID Connect flows |
major |
service, blazor, api-client, template |
active |
governance/security-and-compliance.md |
| CS-SEC-005 |
Grant the least privilege |
major |
service, pipelines, template |
active |
governance/security-and-compliance.md |
| CS-SEC-006 |
Encrypt in transit and protect sensitive data |
major |
service, template |
active |
governance/security-and-compliance.md |
| CS-STY-001 |
Use a block-scoped namespace with the usings inside it |
minor |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-STY-002 |
Write methods and properties with block bodies |
nit |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-STY-003 |
Capture primary constructor parameters in readonly fields |
minor |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-STY-004 |
Seal classes that are not designed for inheritance |
minor |
service, library, api-client, blazor, template |
active |
code/csharp-style-and-naming.md |
| CS-STY-005 |
Keep wire contracts as classes, not records |
minor |
service, library, api-client, template |
active |
code/csharp-style-and-naming.md |
| CS-STY-006 |
Put one top-level type in each file, named after the type |
major |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-007 |
Do not use #region in hand-written code |
nit |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-008 |
Match the namespace to the folder path |
minor |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-009 |
Order members by kind and access |
nit |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-010 |
Use partial classes only to pair hand-written and generated code |
minor |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-011 |
Keep one .slnx solution file and no .sln |
minor |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-STY-012 |
Initialise a static field only from fields declared above it |
major |
service, library, api-client, blazor, template |
active |
code/file-and-type-layout.md |
| CS-SVC-001 |
Give every public domain-service method the house shape |
major |
service, template |
active |
service/domain-service-shape.md |
| CS-SVC-002 |
Time the success path with a duration histogram |
major |
service, template |
active |
service/domain-service-shape.md |
| CS-SVC-003 |
Name domain services Processor, Retriever or UseCase |
minor |
service, template |
active |
service/domain-service-shape.md |
| CS-SVC-004 |
Own the transaction and the publish in the domain service |
major |
service, template |
active |
service/domain-service-shape.md |
| CS-SVC-005 |
Keep each domain-service method under 60 lines |
minor |
service, template |
active |
service/domain-service-shape.md |
| CS-SVC-006 |
Guard every path into a state, reversals included |
major |
service, template |
active |
service/domain-service-shape.md |
| CS-TIM-001 |
Read the current time only from an injected TimeProvider |
major |
service, library, api-client, blazor, template |
active |
code/date-and-time.md |
| CS-TIM-002 |
Wait and schedule through the TimeProvider |
major |
service, library, api-client, blazor, template |
active |
code/date-and-time.md |
| CS-TIM-003 |
Convert to DateTime with .UtcDateTime, never .DateTime |
major |
service, library, api-client, blazor, template |
active |
code/date-and-time.md |
| CS-TIM-004 |
Test time-dependent code with FakeTimeProvider |
major |
service, library, api-client, blazor, template |
active |
code/date-and-time.md |
| CS-TPL-001 |
Change the generator, never the generated output |
major |
service, library, api-client, blazor, template |
active |
code/generated-code.md |
| CS-TPL-002 |
Commit Reqnroll code-behind and regenerate it after a restore |
minor |
service, library, api-client, blazor, template |
active |
code/generated-code.md |
| CS-TPL-003 |
Mark generated files with a banner that names the generator |
minor |
service, library, api-client, blazor, template |
active |
code/generated-code.md |
| CS-TPL-004 |
Pin each generator's output with a test |
minor |
service, library, api-client, blazor, template |
active |
code/generated-code.md |
| CS-TPL-005 |
Create new repositories and projects with dotnet new |
major |
service, library, api-client, blazor, template |
active |
code/generated-code.md |
| CS-TPL-006 |
Never edit a base-template submodule checkout |
major |
template |
active |
code/generated-code.md |
| CS-TPL-007 |
Write template conditionals that the template engine evaluates correctly |
major |
template |
active |
code/generated-code.md |
| CS-TPL-008 |
Generate, build and test every artifact kind and supported preset in template CI |
major |
template, pipelines |
active |
code/generated-code.md |
| CS-TPL-009 |
Put every part of an optional feature under the same condition |
major |
template |
active |
code/generated-code.md |
| CS-TPL-010 |
Use the full template source name in every identifier that must be renamed |
minor |
template |
active |
code/generated-code.md |
| CS-TPL-011 |
Regenerate committed copies of template output in CI and fail on a difference |
major |
service, template |
active |
code/generated-code.md |
| CS-TPL-012 |
Compare a template-update merge with fresh template output |
minor |
service, template |
active |
code/generated-code.md |
| CS-TRC-001 |
Use one ActivitySource per library or service, named after its root namespace |
major |
service, library, blazor, template |
active |
service/tracing.md |
| CS-TRC-002 |
Register every activity source the host must export |
major |
service, blazor, template |
active |
service/tracing.md |
| CS-TRC-003 |
Mark a failed activity before the exception leaves it |
major |
service, library, blazor, template |
active |
service/tracing.md |
| CS-TRC-004 |
Keep span names fixed and tags safe |
major |
service, library, blazor, template |
active |
service/tracing.md |
| CS-TST-001 |
Use MSTest, Reqnroll and Playwright |
major |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-002 |
Assert with MSTest assertions in new tests |
minor |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-003 |
Name tests after the behaviour and the expected outcome |
minor |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-004 |
Name test projects by kind and categorize tests to match |
minor |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-005 |
Categorize tests that call live external systems as integration tests |
major |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-006 |
Structure each test as Arrange, Act, Assert |
minor |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-007 |
Keep tests deterministic and independent |
major |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-008 |
Meet the coverage target with one collector |
major |
service, library, api-client, blazor, template, pipelines |
active |
testing/testing-standard.md |
| CS-TST-009 |
Fail the run on undefined or pending steps |
blocker |
service, library, blazor, template |
active |
testing/bdd-reqnroll.md |
| CS-TST-010 |
Treat a test run that runs no tests as an error |
major |
service, library, api-client, blazor, template, pipelines |
active |
testing/bdd-reqnroll.md |
| CS-TST-011 |
Write each step as a Cucumber expression or as an anchored regular expression |
major |
service, library, blazor, template |
active |
testing/bdd-reqnroll.md |
| CS-TST-012 |
Write one binding per sentence form |
major |
service, library, blazor, template |
active |
testing/bdd-reqnroll.md |
| CS-TST-013 |
Use the keyword the step is bound with |
major |
service, library, blazor, template |
active |
testing/bdd-reqnroll.md |
| CS-TST-014 |
Restore every environment variable or static that a hook changes |
major |
service, library, blazor, template |
active |
testing/bdd-reqnroll.md |
| CS-TST-015 |
Filter by tag with one TestCategory clause per tag |
major |
pipelines |
active |
testing/bdd-reqnroll.md |
| CS-TST-016 |
Give each test database a name unique to its suite |
blocker |
service, library, template |
active |
testing/test-data-and-databases.md |
| CS-TST-017 |
Point fixtures at their own database in code |
blocker |
service, library, template |
active |
testing/test-data-and-databases.md |
| CS-TST-018 |
Clear the connection pools after you drop a database |
major |
service, template |
active |
testing/test-data-and-databases.md |
| CS-TST-019 |
Make each test own the data it uses and give back what it consumes |
major |
service, blazor, template |
active |
testing/test-data-and-databases.md |
| CS-TST-020 |
Guard every collection assertion against an empty set |
major |
service, library, api-client, blazor, template |
active |
testing/test-data-and-databases.md |
| CS-TST-021 |
Prove that nothing was written with a write counter |
major |
service, library |
active |
testing/test-data-and-databases.md |
| CS-TST-022 |
Count seeded rows by the seed's own identifiers |
minor |
service, template |
active |
testing/test-data-and-databases.md |
| CS-TST-023 |
Find a created row by walking the pages or by filtering to it |
major |
service, blazor, template |
active |
testing/test-data-and-databases.md |
| CS-TST-024 |
Write architecture tests with NetArchTest |
minor |
service, library, template |
active |
testing/architecture-tests.md |
| CS-TST-025 |
Scan an explicit set of assemblies that covers the shipped ones |
blocker |
service, library, template |
active |
testing/architecture-tests.md |
| CS-TST-026 |
Assert that every rule has something to check |
major |
service, library, template |
active |
testing/architecture-tests.md |
| CS-TST-027 |
Keep one test per architecture rule |
minor |
service, library, template |
active |
testing/architecture-tests.md |
| CS-TST-028 |
Choose personas, data and environment that tell correct code from broken code |
major |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-029 |
Start a test on evidence that its dependencies are ready |
major |
service, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-030 |
Fail a capture-and-restore hook when the captured value was not found |
major |
service, blazor, template |
active |
testing/test-data-and-databases.md |
| CS-TST-031 |
Locate repository files from the source file, not from the binary folder |
minor |
service, library, api-client, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-032 |
Never let a skipped test stand for a passing one |
major |
service, library, blazor, template |
active |
testing/testing-standard.md |
| CS-TST-033 |
Assert the request a client sends, not only where it sends it |
major |
service, library, blazor, template |
active |
testing/testing-standard.md |
| CS-UI-001 |
Guard every write handler against re-entry |
blocker |
blazor, template |
active |
ui/blazor.md |
| CS-UI-002 |
Put component logic in a code-behind file |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-003 |
Set the render mode once on <Routes> |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-004 |
Keep the first render hydration-safe |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-005 |
Never use ConfigureAwait(false) in components |
major |
blazor, template |
retired |
ui/blazor.md |
| CS-UI-006 |
Mark interactive elements and page roots with data-testid |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-007 |
Show no field that has no save path |
blocker |
blazor, template |
active |
ui/blazor.md |
| CS-UI-008 |
Validate the record the server will store |
major |
blazor, service, template |
active |
ui/blazor.md |
| CS-UI-009 |
Round-trip every field that an edit form does not change |
blocker |
blazor, template |
active |
ui/blazor.md |
| CS-UI-010 |
Send the revision the form loaded |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-011 |
Read a call's results from the call, not from shared state |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-012 |
Dispose subscriptions and JavaScript object references |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-013 |
Expose component events as EventCallback |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-014 |
Mark required parameters with [EditorRequired] |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-015 |
Keep Razor comments outside an open tag |
blocker |
blazor, template |
active |
ui/blazor.md |
| CS-UI-016 |
Delete or wire up a private handler that nothing calls |
major |
blazor, template, service |
active |
ui/blazor.md |
| CS-UI-017 |
Never present fallback data as live data |
blocker |
blazor, template |
active |
ui/blazor.md |
| CS-UI-018 |
Gate one act with one predicate at every entry point |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-019 |
Make a control do what its label says |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-020 |
Offer only assignable items in a picker |
major |
blazor, template, service |
active |
ui/blazor.md |
| CS-UI-021 |
Compose micro-frontends in process on InteractiveServer |
major |
blazor, template |
active |
ui/microfrontends.md |
| CS-UI-022 |
Depend only on the shell contracts, never on another micro-frontend |
blocker |
blazor, template |
active |
ui/microfrontends.md |
| CS-UI-023 |
Reach backends only through published contract packages |
major |
blazor, template |
active |
ui/microfrontends.md |
| CS-UI-024 |
Pin one UIKit and Shell package version across a shell and its micro-frontends |
major |
blazor, template |
active |
ui/microfrontends.md |
| CS-UI-025 |
Prefix each micro-frontend's routes and prove they are unique |
major |
blazor, template |
active |
ui/microfrontends.md |
| CS-UI-026 |
Show a stored value that the option list does not contain |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-027 |
Restore a remembered choice once its key is known, and forget one the server refuses |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-028 |
Back a circuit-scoped accessor with a plain AsyncLocal<T> value |
major |
blazor, template |
active |
ui/blazor.md |
| CS-UI-029 |
Never bind an event modifier to state that its own handler sets |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-UI-030 |
Give application components names that packages will not take |
minor |
blazor, template |
active |
ui/blazor.md |
| CS-VAL-001 |
Every validator has a dedicated unit test class |
major |
service, library, template |
active |
testing/validator-tests.md |
| CS-VAL-002 |
Test the valid input and every rule |
major |
service, library, template |
active |
testing/validator-tests.md |
| CS-VAL-003 |
Reject Guid.Empty explicitly on nullable identifiers |
major |
service, library |
active |
testing/validator-tests.md |
| CS-VAL-004 |
Build test inputs from a valid baseline |
minor |
service, library, template |
active |
testing/validator-tests.md |
| CS-VAL-005 |
Assert the specific failure |
minor |
service, library, template |
active |
testing/validator-tests.md |
| CS-VAL-006 |
Validate domain input with ValidateAndThrowAsync at the start of the operation |
major |
service, template |
active |
code/validation.md |
| CS-VAL-007 |
Do not call the synchronous ValidateAndThrow in asynchronous code |
minor |
service, library, template |
active |
code/validation.md |
| CS-VAL-008 |
Keep I/O and business decisions out of validators |
minor |
service, library, template |
active |
code/validation.md |
| CS-VAL-009 |
Validate options at start-up |
major |
service, library, template |
retired |
code/validation.md |
| CS-VAL-010 |
Apply the same rule on the client and the server |
minor |
service, blazor |
retired |
code/validation.md |
| CS-XML-001 |
Document every public and internal type and member, with its parameters and return value, test code included |
minor |
service, library, api-client, blazor, template |
active |
code/xml-documentation.md |
| CS-XML-002 |
Use <inheritdoc/> on implementations and overrides |
nit |
service, library, api-client, blazor, template |
active |
code/xml-documentation.md |
| CS-XML-003 |
Generate the documentation file and keep its warnings visible |
minor |
service, library, api-client, blazor, template |
active |
code/xml-documentation.md |