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

Warning when a registerFallbackValue is never used #146

Open
alestiago opened this issue Sep 6, 2022 · 0 comments
Open

Warning when a registerFallbackValue is never used #146

alestiago opened this issue Sep 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@alestiago
Copy link
Contributor

Description
As a user I would like to get a warning whenever a fallback value has been registered but has never been used.

void main() {
    setUpAll(() {
      registerFallbackValue(Foo()); // Should result in a warning since it is never used.
    });
}

Possible solutions

  • Runtime warning
  • Custom analyser lint rule

Describe alternatives you've considered
N/A

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants