Skip to content

Fix MA0046 and S1133 analyzer errors on Windows TFMs#115

Merged
Chris-Wolfgang merged 2 commits intomainfrom
fix/analyzer-errors-ma0046-s1133
Mar 28, 2026
Merged

Fix MA0046 and S1133 analyzer errors on Windows TFMs#115
Chris-Wolfgang merged 2 commits intomainfrom
fix/analyzer-errors-ma0046-s1133

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

  • Suppress MA0046 on IProgressTimer.Elapsed — changing Action to EventHandler would break all downstream ETL libraries
  • Remove obsolete Report.CurrentCount property (replaced by CurrentItemCount)
  • Remove corresponding test for the removed property
  • Bump version to 0.12.0 (breaking change: CurrentCount removed)

Context

The new pr.yaml workflow (merged in #113) now builds all TFMs on Windows in Release mode, surfacing these pre-existing analyzer warnings as errors. This blocks PR #114 and any other open PR.

Test plan

  • dotnet build --configuration Release — 0 warnings, 0 errors across all TFMs
  • dotnet test --configuration Release — 132 tests pass

🤖 Generated with Claude Code

Chris-Wolfgang and others added 2 commits March 27, 2026 22:45
Suppress MA0046 on IProgressTimer.Elapsed (changing Action to EventHandler
would be a breaking change across all downstream ETL libraries). Remove
obsolete Report.CurrentCount property and its test. Bump version to 0.12.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The root Directory.Build.props enables TreatWarningsAsErrors in Release,
which the CI Windows build applies to the entire solution. The .editorconfig
suppressions for tests/ and examples/ are not reliably picked up on CI,
causing 441 analyzer errors. Nested Directory.Build.props files in tests/
and examples/ import the root props and override TreatWarningsAsErrors to
false, keeping it active only for src/ projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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