dotnet / roslyn-analyzers

MIT License
1.55k stars 460 forks source link

Handle BinaryOperation-return in UseConcreteTypeAnalyzer #7319

Open CollinAlpert opened 1 month ago

CollinAlpert commented 1 month ago

Affected analyzer: UseConcreteTypeAnalyzer Affected diagnostic ID: CA1859

This PR prevents false positives of CA1859 when a method's return contains a binary operation.

Fixes #7317

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.48%. Comparing base (5336e0d) to head (16510b8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7319 +/- ## ======================================= Coverage 96.48% 96.48% ======================================= Files 1443 1443 Lines 345450 345438 -12 Branches 11364 11364 ======================================= - Hits 333323 333312 -11 + Misses 9250 9249 -1 Partials 2877 2877 ```