docs(rules): unify remote write approval and sharpen cross-cutting rules
The microsoft rule now covers every connected remote system: Azure DevOps, Teams, SharePoint and Microsoft 365, SQL Server, Confluence, Grafana, and other connectors. A direct request that names the action, target, and content counts as confirmation. Deletions, irreversible and bulk changes, and access changes always need confirmation. Database writes show the statement and expected row count first. Definition of Done now defers to this rule instead of contradicting it. The decision rule adds how to ask, what to do when no one can answer, and naming a concrete risk once before following a user decision. Refactoring guidance is language neutral, Definition of Done accepts documented shortcut: comments, and both point to the proportional verification rule that actually exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b8b4438275
commit
b74357b586
5 files changed
+47
-141
No files matched your search
@@ -29,7 +29,7 @@
|
||||
|
||||
## Code Quality
|
||||
|
||||
* Prefer modern, readable C# syntax.
|
||||
* Prefer modern, readable syntax of the language in use; language-specific rules decide which constructs.
|
||||
* Reduce unnecessary complexity.
|
||||
* Remove duplication where doing so improves clarity.
|
||||
* Prefer clear control flow over clever code.
|
||||
@@ -59,7 +59,7 @@
|
||||
* Do not trade significant readability for theoretical micro-optimizations.
|
||||
* Avoid introducing unnecessary allocations in hot paths.
|
||||
* Avoid unnecessary collection copies.
|
||||
* Avoid unnecessary LINQ in performance-critical code.
|
||||
* Avoid unnecessary allocation-heavy query pipelines (such as LINQ or streams) in performance-critical code.
|
||||
* Preserve or improve algorithmic complexity.
|
||||
* Measure performance-sensitive refactorings when relevant.
|
||||
* Do not assume a refactoring is faster without evidence.
|
||||
@@ -78,13 +78,13 @@
|
||||
## Dependencies
|
||||
|
||||
* Do not add new dependencies unless they provide a clear and necessary benefit.
|
||||
* Prefer existing project dependencies and the .NET BCL.
|
||||
* Prefer existing project dependencies and the language's standard library.
|
||||
* Do not replace stable dependencies without a concrete reason.
|
||||
* Avoid refactorings that increase long-term maintenance cost.
|
||||
|
||||
## Tests
|
||||
|
||||
* Decide whether tests are needed using `general.md`'s Verification rules; this section governs tests that are selected, not a mandatory test run.
|
||||
* Decide whether tests are needed using the proportional verification rule in the general rules; this section governs tests that are selected, not a mandatory test run.
|
||||
* Existing relevant tests must continue to pass.
|
||||
* Update tests when internal structure changes make it necessary.
|
||||
* Do not delete valid tests merely because they fail after a refactoring.
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
After a refactoring:
|
||||
|
||||
* Choose verification using `general.md`'s Verification rules, based on the affected behavior and callers.
|
||||
* Choose verification using the proportional verification rule in the general rules, based on the affected behavior and callers.
|
||||
* Build or run tests when they add needed confidence; a full solution build or test suite is not automatic.
|
||||
* Investigate new warnings from the selected checks.
|
||||
* Verify affected code paths.
|
||||
|
||||
Reference in new issue
Block a user