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 that SA1119 is reported in interpolations #1287

Merged
merged 2 commits into from
Aug 27, 2015

Conversation

pdelvo
Copy link
Member

@pdelvo pdelvo commented Aug 27, 2015

Fixes #1284.

@sharwell
Copy link
Member

💡 This pull request always prevents parentheses from being removed from interpolated string inlets. It seems like we only want to special case ternary expressions here. I would add the following test case:

string s = $"The value is: {(x)}";

Which I would expect to be simplified to this:

string s = $"The value is: {x}";

@sharwell sharwell added this to the 1.0.0 Beta 9 milestone Aug 27, 2015
@sharwell sharwell self-assigned this Aug 27, 2015
@pdelvo
Copy link
Member Author

pdelvo commented Aug 27, 2015

Fixed

sharwell added a commit that referenced this pull request Aug 27, 2015
Fix that SA1119 is reported in interpolations
@sharwell sharwell merged commit 3e13f88 into DotNetAnalyzers:master Aug 27, 2015
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.

3 participants