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

Why the lint is not working inside my test? #38

Open
Katekko opened this issue Aug 12, 2021 · 4 comments
Open

Why the lint is not working inside my test? #38

Katekko opened this issue Aug 12, 2021 · 4 comments

Comments

@Katekko
Copy link

Katekko commented Aug 12, 2021

You can see the lint works above the test method but inside isn't

image

@passsy
Copy link
Owner

passsy commented Aug 12, 2021

Which lint warning you do get outside the tests and which one do you expect inside the test?

@Katekko
Copy link
Author

Katekko commented Aug 12, 2021

Totally my bad, even outside the test the lint don't work. The warning that I get outside is unusable variable, but inside the function I'm expecting "prefer const instead final".
image

@passsy
Copy link
Owner

passsy commented Aug 12, 2021

Please provide a minimum reproducible example. I can't verify that AuthMock.authenticateSuccessResponse is const

@nilsreichardt
Copy link
Contributor

This is sometimes a problem with the Dart Analyzer. Restarting the Dart Analysis Server or just restarting VS Code fixes this problem for me.

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

No branches or pull requests

3 participants