Skip to content

Comments

Enable MA0184 by default with silent severity#988

Merged
meziantou merged 2 commits intomainfrom
copilot/update-ma0184-default-settings
Feb 1, 2026
Merged

Enable MA0184 by default with silent severity#988
meziantou merged 2 commits intomainfrom
copilot/update-ma0184-default-settings

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

MA0184 (Do not use interpolated string without parameters) is now enabled by default as a silent analyzer to help clean up unnecessary interpolated strings like $"text" without being intrusive.

Changes

  • Analyzer: Set DiagnosticSeverity.Hidden and isEnabledByDefault: true in DoNotUseInterpolatedStringWithoutParametersAnalyzer.cs
  • Configuration: Updated default.editorconfig to set dotnet_diagnostic.MA0184.severity = silent
  • Documentation: Auto-regenerated to reflect new defaults

This aligns MA0184 with other silent-by-default style rules (MA0101, MA0136) that provide code fix suggestions without generating visible warnings.

Original prompt

Can you update MA0184 to be enabled by default as silent?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Copilot AI changed the title [WIP] Update MA0184 to be enabled by default as silent Enable MA0184 by default with silent severity Feb 1, 2026
Copilot AI requested a review from meziantou February 1, 2026 22:13
@meziantou meziantou marked this pull request as ready for review February 1, 2026 22:15
@meziantou meziantou enabled auto-merge (squash) February 1, 2026 22:17
@meziantou meziantou merged commit d7aa554 into main Feb 1, 2026
13 checks passed
@meziantou meziantou deleted the copilot/update-ma0184-default-settings branch February 1, 2026 22:20
This was referenced Feb 2, 2026
This was referenced Feb 16, 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.

2 participants