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

Add diagnostic info message about unused conditional registrations #662

dotnetjunkie opened this Issue Feb 12, 2019 · 0 comments


None yet
1 participant
Copy link

dotnetjunkie commented Feb 12, 2019

Analyzer.Analyze returns, beside diagnostic warnings, diagnostic info messages as well.

It can be useful to add an additional info message that notes the case where a conditional registration is never used. Conditional registrations will be picked in order and can be selected using a predicate, but it can be easy to miss the fact that a registration is always skipped.

As this might be intentional behavior, or specific to a particular setup, it is unwise to implement this as a warning, as that would cause an exception when Verify() is called. An info message is, therefore, much more suited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.