Skip to content

Clarify some rule titles#1110

Merged
meziantou merged 2 commits intomainfrom
meziantou/rule-rename
Apr 29, 2026
Merged

Clarify some rule titles#1110
meziantou merged 2 commits intomainfrom
meziantou/rule-rename

Conversation

@meziantou
Copy link
Copy Markdown
Owner

Summary

MA0032 is broader than MA0040 because it still reports when no CancellationToken is available in scope. The old title did not make that distinction clear, which made the two rules easier to confuse when scanning the rule list.

This renames MA0032 to Use an overload with a CancellationToken argument, even when no token is available in scope and updates the generated rule documentation and packaged editorconfig entries to match.

Notes

  • The underlying analyzer behavior is unchanged.
  • This is a naming and documentation clarity update only.

Validation

  • Ran UseAnOverloadThatHasCancellationTokenAnalyzerTests
  • Ran UseAnOverloadThatHasCancellationTokenAnalyzerTests with /p:RoslynVersion=roslyn4.2

meziantou and others added 2 commits April 28, 2026 20:29
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meziantou meziantou changed the title Clarify the MA0032 rule title Clarify some rule titles Apr 29, 2026
@meziantou meziantou merged commit 532b9fd into main Apr 29, 2026
13 checks passed
@meziantou meziantou deleted the meziantou/rule-rename branch April 29, 2026 01:07
This was referenced Apr 29, 2026
This was referenced May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant