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

Fix S4056: Rule should not recommend to use obsolete methods #772

Merged
merged 6 commits into from
Sep 13, 2017

Conversation

michalb-sonar
Copy link
Contributor

Fix #708

Copy link
Contributor

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -74,6 +74,7 @@ private static bool HasOverloadWithStringComparison(ExpressionSyntax expression,
{
return semanticModel.GetMemberGroup(expression)
.OfType<IMethodSymbol>()
.Where(m => !IsObsolete(m))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart idea! I would have ignored only the method the guy was mentioning!

@michalb-sonar michalb-sonar merged commit d572ff3 into master Sep 13, 2017
@michalb-sonar michalb-sonar deleted the fix-4056 branch September 13, 2017 08:24
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.

2 participants