Skip to content

Skip XML comment langword diagnostics for attributed code tags#1214

Merged
meziantou merged 1 commit into
mainfrom
fix-ma0154-for-xml-attributes
Jul 4, 2026
Merged

Skip XML comment langword diagnostics for attributed code tags#1214
meziantou merged 1 commit into
mainfrom
fix-ma0154-for-xml-attributes

Conversation

@meziantou

Copy link
Copy Markdown
Owner

Summary

  • Ignore <c> and <code> XML comment elements when they already carry attributes, since they are not plain keyword markup.
  • Update the MA0154 documentation to clarify that the rule targets plain <c> and <code> usage.
  • Add a regression test covering attributed <c> content.

Testing

  • Added analyzer test coverage for an attributed XML comment example.
  • Documentation and analyzer changes were validated by the existing test suite expectations in the affected rule area.

@meziantou
meziantou enabled auto-merge (squash) July 4, 2026 18:12
@meziantou
meziantou merged commit eb752ac into main Jul 4, 2026
13 checks passed
@meziantou
meziantou deleted the fix-ma0154-for-xml-attributes branch July 4, 2026 18:12
This was referenced Jul 4, 2026
This was referenced Jul 14, 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