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 S2275: InvalidCastExteption when analyzing single argument method #303

Merged
merged 1 commit into from
May 16, 2017

Conversation

valhristov
Copy link
Contributor

Fix #302

@@ -80,6 +80,7 @@ void System_Console_WriteLine(string[] args)
Console.WriteLine("0");
Console.WriteLine("{0}", 42);
Console.WriteLine("{"); // Compliant
Console.WriteLine(ulong.MaxValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add the test for all methods?

@valhristov valhristov merged commit fe5d78b into master May 16, 2017
@valhristov valhristov deleted the S2275-string-format branch May 16, 2017 11:38
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