Skip to content

[Sprint 19] clean up remaining repo-wide Release build analyzer warnings #280

Description

@mpaulosky

Summary

dotnet build MyBlog.slnx --configuration Release --no-restore still succeeds with 46 warnings after PR #279 cleaned the profile-email slice. This issue tracks the remaining repo-wide warning debt outside the files touched by PR #279.

Current state

Top warning categories

  • CA2007 — e.g. src/Web/Components/Theme/ThemeProvider.razor.cs, src/Web/Data/MongoDbBlogPostRepository.cs, src/Web/Infrastructure/Caching/BlogPostCacheService.cs
  • CA1307 — e.g. tests/Web.Tests.Bunit/Components/RazorSmokeTests.cs
  • CA1515 — e.g. src/Web/Data/BlogDbContext.cs, src/Web/Components/Theme/ThemeProvider.razor.cs
  • Smaller pockets remain for CA1014, CA1062, CA1812, CA1826, and CA1865

Why it matters

  • Warning debt obscures real regressions in local builds and CI
  • It slows the path back to zero-warning Release-build enforcement
  • New diagnostics are easier to miss when the baseline already contains noise

Acceptance Criteria

  • Re-run the Release build and capture the current warning baseline by ID and file
  • Reduce or eliminate the remaining warning set outside PR fix(profile): fall back to authenticated email claims on /profile #279's touched files
  • Fix the highest-volume categories first (CA2007, CA1307, CA1515)
  • Any warning that must remain is explicitly justified with a targeted suppression or a follow-up issue
  • The final issue update reports the new warning count and any intentional deferrals
  • Stretch goal: return dotnet build MyBlog.slnx --configuration Release --no-restore to zero warnings

Sprint

Sprint 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:needs-researchNeeds investigationsquad:aragornAssigned to Aragorn (Lead / Architect)type:choreMaintenance, refactoring, cleanup

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions