Conversation
There was a problem hiding this comment.
While I know it's a matter of personal style and the way that we have to do stuff with Roslyn doesn't help, I'd love to see some of the more complicated validations here extracted to meaningful methods. I think that block full of complex conditions gets quite overwhelming sometimes.
There was a problem hiding this comment.
I usually do that when the complexity gets high, but 16 lines on a method is not that bad. And this code is pretty much self explanatory, IMO.
There was a problem hiding this comment.
My comment was not much on the line count of the method, instead it's about the complexity of some calls. Anyway, it's more of a personal thing so it doesn't matter so much.
|
Overall it looks pretty good, and besides my inline comments, I missed tests with string interpolation. Are they supposed to emit diagnostics? How should this analyzer behave with them? There was code that seemed to ignore interpolated strings but, again, this is only an assumption since there was no test to check for this. |
45d4be3 to
fb7702a
Compare
|
@viniciushana String interpolation test added on line 110 of the test class. |
|
👍 |
Closes #116.