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

Handle BinaryOperation-return in UseConcreteTypeAnalyzer #7319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CollinAlpert
Copy link
Contributor

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

@CollinAlpert CollinAlpert requested a review from a team as a code owner May 24, 2024 16:26
Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           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           

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.

CA1859: False positive for operators and multiple derived types
1 participant