feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
This commit is contained in:
1 parent
29632ff0ce
commit
f5d8f6f11b
124 files changed
+1250
-8138
No files matched your search
@@ -7,13 +7,17 @@ description: Use when reviewing Entity Framework Core LINQ queries, models, migr
|
||||
|
||||
Use when reviewing Entity Framework Core queries, model changes, migrations, or persistence behavior.
|
||||
|
||||
Load and follow `rules-csharp-security` and `rules-csharp-architecture-and-apis` for the matching C# rules.
|
||||
|
||||
## Review
|
||||
|
||||
- Check whether LINQ translates as intended for the configured provider and whether filters are applied before materialization.
|
||||
- Look for N+1 access, unbounded result sets, unnecessary tracking, duplicate queries, and over-fetching. Verify eager or explicit loading matches the data needed.
|
||||
- Look for N+1 access, unbounded result sets, unnecessary tracking, duplicate queries, and over-fetching. Flag cartesian explosion from multiple collection includes where `AsSplitQuery` fits.
|
||||
- Flag `FromSqlRaw` or `ExecuteSqlRaw` built by string concatenation or interpolation; use the parameterized `FromSql` or `ExecuteSql` forms.
|
||||
- Flag `IgnoreQueryFilters` that bypasses tenant or soft-delete filters without an explicit, authorized reason.
|
||||
- Check `DbContext` lifetime: no singleton or static context, no sharing across threads or parallel tasks.
|
||||
- Review relationship configuration, delete behavior, keys, nullability, indexes, and concurrency tokens against the domain invariants.
|
||||
- Check migration ordering, generated SQL, data backfills, rollback limits, and compatibility while old and new application versions may coexist.
|
||||
- Inspect transaction scope, isolation, retry behavior, cancellation, and handling of concurrency conflicts where applicable.
|
||||
- Ensure sensitive or tenant-scoped rows cannot be read or changed outside the authorized scope.
|
||||
- Check migration ordering, generated SQL, data backfills, rollback limits, and compatibility while old and new application versions coexist.
|
||||
- Inspect transaction scope, isolation, retry behavior, cancellation, and concurrency conflict handling where applicable.
|
||||
|
||||
Report findings with the query or migration path, runtime or data impact, and relevant provider-aware verification. Avoid recommending indexes or caching without evidence of a query need.
|
||||
Report findings in the `review-pull-request` finding schema and severity scale. Avoid recommending indexes or caching without evidence of a query need.
|
||||
Reference in new issue
Block a user