Skip to content

Add code example for CA1002 rule (#48762)#48763

Merged
gewarren merged 3 commits into
dotnet:mainfrom
kurnakovv:d-48762
Sep 30, 2025
Merged

Add code example for CA1002 rule (#48762)#48763
gewarren merged 3 commits into
dotnet:mainfrom
kurnakovv:d-48762

Conversation

@kurnakovv
Copy link
Copy Markdown
Contributor

@kurnakovv kurnakovv commented Sep 27, 2025

Fixes #48762

If it will be helpful, I will make more examples for other CA rules (in separate PR's) 😄


Internal previews

📄 File 🔗 Preview link
docs/fundamentals/code-analysis/quality-rules/ca1002.md CA1002: Do not expose generic lists

@kurnakovv kurnakovv requested review from a team and gewarren as code owners September 27, 2025 06:42
@dotnetrepoman dotnetrepoman Bot added this to the September 2025 milestone Sep 27, 2025
@dotnet-policy-service dotnet-policy-service Bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Sep 27, 2025
Copy link
Copy Markdown
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the example!

Comment thread docs/fundamentals/code-analysis/quality-rules/snippets/csharp/all-rules/ca1002.cs Outdated
Comment thread docs/fundamentals/code-analysis/quality-rules/ca1002.md
Comment thread docs/fundamentals/code-analysis/quality-rules/ca1002.md
@kurnakovv kurnakovv requested a review from gewarren September 30, 2025 14:15
Comment thread docs/fundamentals/code-analysis/quality-rules/snippets/csharp/all-rules/ca1002.cs Outdated
@gewarren gewarren enabled auto-merge (squash) September 30, 2025 15:17
@gewarren gewarren merged commit ad78fc3 into dotnet:main Sep 30, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code example for CA1002 rule

2 participants