Skip to content

Refine culture-sensitive formatting detection - #1278

Merged
meziantou merged 1 commit into
mainfrom
plan-culturesensitive-detection
Aug 12, 2026
Merged

meziantou merged 1 commit into
mainfrom
plan-culturesensitive-detection

Conversation

@meziantou

@meziantou meziantou commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Distinguish opaque runtime types from non-sealed types in culture-sensitivity analysis.
  • Add configuration options to treat either category as culture-sensitive.
  • Update MA0011, MA0075, MA0076, and MA0185 documentation and generated rule tables.
  • Extend MA0185 support for the refined detection behavior.

Fix #1262

@meziantou
meziantou marked this pull request as ready for review August 12, 2026 20:02
@meziantou
meziantou merged commit 7869c2b into main Aug 12, 2026
11 checks passed
@meziantou
meziantou deleted the plan-culturesensitive-detection branch August 12, 2026 20:02
This was referenced Aug 12, 2026
This was referenced Sep 10, 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.

False negative/positive: Culture rules (MA0011, MA0075, MA0076, MA0185) ignore polymorphic types implementing IFormattable at runtime

1 participant