Skip to content

Fix analyzer violations from Meziantou.Analyzer 3.0.299 - #149

Merged
flipbit merged 1 commit into
mainfrom
fix/ma0206-empty-interface
Oct 15, 2026
Merged

flipbit merged 1 commit into
mainfrom
fix/ma0206-empty-interface

Conversation

@flipbit

@flipbit flipbit commented Oct 15, 2026

Copy link
Copy Markdown
Owner

The Dependabot PRs #147 and #148 bump Meziantou.Analyzer from 3.0.173 to 3.0.299, which fails the build on two rules we enable in .editorconfig:

  • MA0206: ITokenDecorator is an empty interface. It now uses a semicolon body.
  • MA0098: 88 First() / Last() / ElementAt() calls in tests now use indexers. These were auto-fixed with dotnet format.

I checked it locally with both analyzer versions. The build is clean and all 1762 tests pass. Once this is merged, rebase #147 and #148.

Use a semicolon body for the empty ITokenDecorator marker interface and
replace First()/Last()/ElementAt() with indexers in tests, so the
analyzer bump in the open Dependabot PRs builds cleanly.
@flipbit
flipbit merged commit 0a3cbf5 into main Oct 15, 2026
4 checks passed
@flipbit
flipbit deleted the fix/ma0206-empty-interface branch October 15, 2026 07:38
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