Skip to content

Complete CA1517 analyzer reference - #56962

Draft
BillWagner wants to merge 2 commits into
mainfrom
copilot/add-ca1517-documentation
Draft

BillWagner wants to merge 2 commits into
mainfrom
copilot/add-ca1517-documentation

Conversation

@BillWagner

@BillWagner BillWagner commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

The CA1517 reference needs clear severity, applicability, examples, fixes, and suppression guidance.

  • Rule details: Clarifies the .NET 11 Info-level IDE suggestion and C# and Visual Basic support.
  • Usage and fixes: Documents analyzer scope and shows Span<T> and Memory<T> parameters changed to their read-only counterparts. The code fix is available for C#.
  • Suppression: Explains when suppression is appropriate and retains pragma and .editorconfig examples.
  • Navigation: The quality-rules index and TOC already link to the page.
static int GetFirst(Span<int> values) => values[0];
// Use ReadOnlySpan<int> when the method only reads the data.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@BillWagner BillWagner changed the title [WIP] Add documentation for CA1517 analyzer reference Complete CA1517 analyzer reference Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing CA1517 analyzer reference documentation

3 participants