Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress CA1862 for string.Contains on netfx #7083

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

CollinAlpert
Copy link
Contributor

.NET Framework does not have a string.Contains overload which takes a StringComparison parameter, so this PR removes the diagnostic for that scenario.

Fixes #7053

@CollinAlpert CollinAlpert requested a review from a team as a code owner December 9, 2023 14:25
Copy link

codecov bot commented Dec 9, 2023

Codecov Report

Merging #7083 (1e572fc) into main (727d85a) will increase coverage by 0.00%.
Report is 4 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7083   +/-   ##
=======================================
  Coverage   96.43%   96.43%           
=======================================
  Files        1412     1412           
  Lines      336968   337013   +45     
  Branches    11143    11143           
=======================================
+ Hits       324950   324997   +47     
+ Misses       9215     9213    -2     
  Partials     2803     2803           

@mavasani mavasani merged commit 4907f61 into dotnet:main Dec 11, 2023
11 checks passed
@CollinAlpert CollinAlpert deleted the issue-7053 branch December 11, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CA1862 false-positive on .NET Framework 4.8
2 participants