Skip to content

chore(tests): suppress MA0074 in tests#114

Merged
MarcelRoozekrans merged 1 commit into
mainfrom
chore/suppress-ma0074-in-tests
Jun 15, 2026
Merged

chore(tests): suppress MA0074 in tests#114
MarcelRoozekrans merged 1 commit into
mainfrom
chore/suppress-ma0074-in-tests

Conversation

@MarcelRoozekrans

Copy link
Copy Markdown
Owner

meziantou.analyzer 3.0.104 promoted MA0074 (string.Contains without StringComparison) to error severity. Tests assert on known-ASCII generator output where culture-aware Contains is noise — adds a tests-only suppression in .editorconfig. Unblocks #113.

…gComparison)

meziantou.analyzer 3.0.104 promoted MA0074 to error severity by default.
Test code asserts on known-ASCII generator output where culture-aware
Contains is noise. Unblocks Renovate PR #113.
@MarcelRoozekrans MarcelRoozekrans merged commit d139c5d into main Jun 15, 2026
3 checks passed
@MarcelRoozekrans MarcelRoozekrans deleted the chore/suppress-ma0074-in-tests branch June 15, 2026 10:21
MarcelRoozekrans added a commit that referenced this pull request Jun 15, 2026
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.
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