-
Notifications
You must be signed in to change notification settings - Fork 1.7k
use preferred quote-style when generating imports #49559
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
Agreed. As far as I can remember, there have been no complaints about the default. |
One possible alternative is to use the quoting of existing imports, if there are any, and only fall back on single quotes if there are no imports at all. |
Yes, that's another valid signal. I think that if there's a signal in the form of an enabled lint that that should take precedence over the signal from existing code, but the signal from existing code should take precedence over the default. |
Bug #49559 Change-Id: Ib77ea67bb1ea15bfabb1c717cfb5abf13fd6d3cb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259720 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
https://dart-review.googlesource.com/c/sdk/+/260520 "Generating imports" is finished, but the issue scope would be increased to also support "generating strings" |
https://dart-review.googlesource.com/c/sdk/+/260523 I am not sure where else "generating string" should be tackled. |
I'm not sure either. We can either look at every refactoring and correction producer, or wait for user feedback. |
Bug: #49559 Change-Id: Iec3eea9915e0f4093aad8caa3fc8635081f3f9db Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260523 Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
Bug: #49559 Change-Id: Ic9c272c78f15599c5f3c985466f815cec82ad62b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260520 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
I see that both CL's have been merged. Maybe I lost something here but I don't think there is anything that this issue is tracking still. Can this be closed, @pq? |
Yes, thanks! |
Import quote style should agree with enabled lints.
prefer_single_quotes
vs.prefer_double_quotes
I'm inclined to think the unspecified default should be single quotes (current behavior).
/fyi @lrhn
The text was updated successfully, but these errors were encountered: