-
Notifications
You must be signed in to change notification settings - Fork 4
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
Funcky.Xunit - Analyzer for Assert.Equal with FunctionalAssert.Ok/Some/Error/etc. in the actual
parameter
#749
Comments
This would be the first analyzer that analyzes It should of course come with an accompanying code fix. So in summary, this analyzer would suggest the following changes to users:
Instead of having a hardcoded list of FunctionalAssert methods to check, I suggest adding an attribute (naming idea off the top of my head If you want to implement this and need some guidance to get started, you can give me a shout on Discord :) |
@Mafii any updates? |
Sounds good! I don't know if I want to do this, or what the timeline is, but it would be a useful feature, so let's see if and when it happens :) |
We need to be very careful for which cases we emit a warning. There are two things to consider:
|
That's tricky! Both would be fine - adding specializations for FunctionalAssert (that's a lot of effort) or not emitting the analyzer warning. I think the second one is easier, as it can be applied partially instead of having to cover all cases immediately |
Rudimentary example without context:
Can be simplified to
The text was updated successfully, but these errors were encountered: