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

Open
dotnetjunkie opened this issue Feb 12, 2019 · 0 comments
Open

Comments

@dotnetjunkie
Copy link
Collaborator

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
Projects
None yet
Development

No branches or pull requests

1 participant