Repository navigation
Conversation
Contributor
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s). |
|
|
Author
|
recheck |
Contributor
|
@RahulXDTT Thanks for your submission. Like other language PRs, following needs to be done before merge.
Thanks. |
Contributor
|
license/claWaiting for status to be reported — Contributor License Agreement is not signed yet. @RahulXDTT |
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds first-class built-in review rules for C# and modern .NET (.NET Core / .NET 5+), including ASP.NET Core and EF Core-specific defect patterns.
internal/config/rules/rule_docs/csharp.mdwith high-confidence review guidance covering correctness, nullability, async/concurrency, resource lifetime, security, ASP.NET Core, EF Core, and data-access defects.**/*.cstocsharp.mdininternal/config/rules/system_rules.json.**/*Test.cs,**/*Tests.cs) by default, consistent with existing compiled-language exclusions.internal/config/rules/andinternal/config/allowlist/.en,ja,ko,ru,zh).Type of Change
How Has This Been Tested?
make testpasses locallyValidation performed:
go test -race -count=1 ./internal/config/rules/...— PASSgo test -v -race -count=1 ./internal/config/allowlist/...— PASSmake check— PASSmake test— PASSmake coverage— PASS (92.1% statement coverage, above the 90% threshold)make build— PASSgit diff --check— PASS./dist/opencodereview rules check src/Example.cs— PASS; resolves to the built-in**/*.cs/csharp.mdruleChecklist
go fmt,go vet)AI-assisted development
I used Antigravity CLI with Gemini 3.8 Flash and ChatGPT (GPT-5.6 Sol) to assist with repository analysis, implementation planning, and review. I manually reviewed the resulting changes and understand the code and documentation included in this PR.
Related Issues
Closes #1612