Skip to content

Drop the repo-wide analyzer-severity relaxation from .editorconfig (#353) - #400

Merged
ptr727 merged 1 commit into
developfrom
editorconfig-drop-analyzer-relaxation
Jul 23, 2026
Merged

Drop the repo-wide analyzer-severity relaxation from .editorconfig (#353)#400
ptr727 merged 1 commit into
developfrom
editorconfig-drop-analyzer-relaxation

Conversation

@ptr727

@ptr727 ptr727 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Resolves the hub side of #353. The root .editorconfig carried dotnet_analyzer_diagnostic.severity = suggestion, which demotes every analyzer to a non-failing suggestion fleet-wide — defeating the AnalysisLevel=latest-all + AnalysisMode=All the template sets, and exactly what CODESTYLE.md "Analyzer Diagnostics and Suppressions" (CODESTYLE.md:243) forbids. The line also contradicted its own adjacent comment ("never a brownfield batch").

Change

  • Remove that one blanket line. The specific dotnet_diagnostic.IDE0055.severity = none entry (formatting, enforced elsewhere) stays — it's a per-rule entry the surviving comment accurately governs.
  • The hub has no C# build, so this only corrects the canonical .editorconfig every C# repo carries. CRLF preserved; one-line diff.

Downstream (per your #353 probe, not this PR)

Removing the line surfaces the hidden findings when each repo re-vendors — essentially just xUnit1051. Per the probe: PlexCleaner / MediaTools / NxWitness are already clean (free), AudioCleaner (20) / LanguageTags (24) are small PRs, PhotoCleaner (362) is sequenced separately. Utilities was already fixed (ptr727/Utilities#418).

🤖 Generated with Claude Code

)

`dotnet_analyzer_diagnostic.severity = suggestion` in the root `.editorconfig` demoted every
analyzer to a non-failing suggestion fleet-wide, defeating the `AnalysisLevel=latest-all` +
`AnalysisMode=All` the template sets - and CODESTYLE.md's "Analyzer Diagnostics and
Suppressions" explicitly forbids relaxing `dotnet_analyzer_diagnostic.severity`. The line even
contradicted its own adjacent comment ("never a brownfield batch"). Remove it; the specific
`IDE0055` entry (formatting, enforced elsewhere) stays, which the comment now accurately governs.

The hub has no C# build, so this only corrects the canonical every C# repo carries. The
maintainer's fleet probe on #353 measured the impact: it hides essentially one rule
(`xUnit1051`), three repos are already clean, two are small fixes, and PhotoCleaner's larger
set is sequenced separately - the downstream re-vendor is per-repo follow-up, not this change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 23, 2026 04:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the repo-wide .NET analyzer severity demotion from the root .editorconfig so analyzer diagnostics are no longer blanket-relaxed to “suggestion”, aligning the template with the analyzer suppression rules described in CODESTYLE.md.

Changes:

  • Deleted dotnet_analyzer_diagnostic.severity = suggestion from the [*.cs] section of .editorconfig.
  • Kept the targeted dotnet_diagnostic.IDE0055.severity = none entry and the surrounding suppression guidance comment intact.

@ptr727
ptr727 merged commit 614a291 into develop Jul 23, 2026
7 checks passed
@ptr727
ptr727 deleted the editorconfig-drop-analyzer-relaxation branch July 23, 2026 04:15
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