Skip to content

Add MA0203 to flag <returns> tags on void methods#1189

Merged
meziantou merged 2 commits into
mainfrom
ban-return-on-void
Jun 19, 2026
Merged

Add MA0203 to flag <returns> tags on void methods#1189
meziantou merged 2 commits into
mainfrom
ban-return-on-void

Conversation

@meziantou

Copy link
Copy Markdown
Owner

Summary

  • Add analyzer rule MA0203 to report XML documentation <returns> tags on void methods.
  • Document the rule in the README and add the rule metadata to the analyzer pack configurations.
  • Cover the new behavior with unit tests for normal, empty, and non-applicable cases.

Testing

  • Not run (not requested)
  • Added analyzer tests for void methods with <returns> and verified non-void methods and constructors are not flagged

@meziantou meziantou merged commit cedc2d0 into main Jun 19, 2026
13 checks passed
@meziantou meziantou deleted the ban-return-on-void branch June 19, 2026 15:55
This was referenced Jun 19, 2026
This was referenced Jun 27, 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