-
-
Notifications
You must be signed in to change notification settings - Fork 974
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
Additional lints #1584
Additional lints #1584
Conversation
Epic! |
By the way, it'd be nice if the lints could be made compatible with the code-generator too. Some of them should be fine, but I'm sure some will fail |
Yes, I was thinking the same thing. I was playing with the code generator for the first time yesterday. |
I had to increase the timeout on the test. In CI it might be even slower. Is the slowness because of the custom_lint package, or because of how the lint rules are written do you think? There are probably some caching / other optimizations I should do with some of the lints, but I just wanted to know if it is partly the custom_lint package? |
analyzer & analyzer_plugin are slow in general. But it's worth investigating if you have the time Although if you can, I think it'd be better to look into fixing the issue where |
About riverpod_no_mutate_sync, a case I tought of is They probably should not be allowed either, using the same reasoning. |
What about |
…f.read on autoDispose lint, refactor async context detection.
I think this is getting too big for one PR. I've added items on the Linter issue for improving performance, and adding support for the codegen. |
I'll try to fix the build before merging though |
Codecov Report
@@ Coverage Diff @@
## master #1584 +/- ##
=======================================
Coverage 93.20% 93.20%
=======================================
Files 51 51
Lines 1929 1929
=======================================
Hits 1798 1798
Misses 131 131 |
@rrousselGit Ready for review. Compatibility with codegen, and figuring out how to speed up / optimize these lints will be next. Tests pass locally, I'll look at the CI issue tomorrow |
Awesome thanks! |
Working on some additional lints: