Skip to content

fix(tests): properly fix MA0074 instead of suppressing#115

Merged
MarcelRoozekrans merged 1 commit into
mainfrom
fix/ma0074-proper
Jun 15, 2026
Merged

fix(tests): properly fix MA0074 instead of suppressing#115
MarcelRoozekrans merged 1 commit into
mainfrom
fix/ma0074-proper

Conversation

@MarcelRoozekrans

Copy link
Copy Markdown
Owner

Replace the tests-wide MA0074 suppression added in #114 with the actual fix: pass StringComparison.Ordinal to the 24 FilePath.Contains(...) calls in GeneratorDriverTests. Ordinal is the right semantic for inspecting Roslyn generator output (ASCII file paths) and keeps the analyzer active everywhere else in tests.

Fix MA0074 properly in GeneratorDriverTests by passing
StringComparison.Ordinal instead of suppressing the rule. Tests
inspect Roslyn generator output (file paths) which is ASCII; ordinal
is correct semantically and lets the analyzer keep enforcing the rule
elsewhere.

Removes the tests-wide MA0074 suppression added in #114.
@MarcelRoozekrans MarcelRoozekrans merged commit dfee516 into main Jun 15, 2026
3 checks passed
@MarcelRoozekrans MarcelRoozekrans deleted the fix/ma0074-proper branch June 15, 2026 10:27
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