-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Flutter and Angular Dart should adopt optional new and const #32596
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
Comments
A lint would be great! cc @a14n who likes lints. :-) |
We'd prefer to have a single collection of lints that best represents the style guide, and not to have to enable individual lints. As such we are not conforming to this new optional new/const until that is a possibility (and is vetted by the style guide team for both correctness and performance - we've had lints that literally caused IDE crashes due to leaks/memory usage). |
We are asking for a lint that individual teams / repos / apps / package can opt-in to enforcing at their own schedule. |
FWIW, Flutter has a pair of "recommended" analysis options files, one for people who want an easy-go-lucky style (the default for |
@JekCharlsonYu this looks unlikely to happen by Beta 4. @a14n are you taking on the lint? |
@dgrove there's a pending PR for that dart-archive/linter#936. But as the rules have evolved it needs perhaps some changes. On vacation I will not work on it before a week. |
@dgrove moving it to Dart2 Stable at least. |
Is there more work to do here? Angular has adopted this, and I don't think there's any more work in this repo. @mit-mit your thoughts? |
Flutter list moved to flutter/flutter#18604 |
@pq - sending your way, as this is blocked on linter. |
#57706 hinges on an analyzer fix. @bwilkerson, @scheglov : any thoughts? |
At least one of the analyzer issues is being fixed here: https://dart-review.googlesource.com/61220. I don't know whether there are other issues that need to be fixed. |
@pq - that analyzer issue https://dart-review.googlesource.com/61220 has landed. Is anything else needed to address #57706 ? |
The issue here is that we need to land a new analyzer package. |
Analyzer published; now fixed. |
I believe so! |
AngularDart examples: angulardart/angular@072a5d6
Flutter: Meta-issue: Update all code to use optional new/const flutter/flutter#18604
The text was updated successfully, but these errors were encountered: