-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Use curly_braces_in_flow_control_structures for sample code
#104617
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
Conversation
guidezpl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff to review is guidezpl@fffe900, the rest is from updating packages.
|
The addition to |
Likely because of this: guidezpl@fffe900#r74497341 |
|
Looks like the only difference is that flutter_lints is enforcing the I actually prefer the stricter set of lints we have enabled in the repository over flutter_lints because I think it produces even more readable sample code (e.g. you have to type everything). I believe, every lint that's part of flutter_lints is also already enforced in the repository (with the exception of the curly lint mentioned, but that's hopefully about to change). So, code that's clean under the repository lints should also be clean under flutter_lints (but not necessarily the other way around). So, overall, I think switching the samples to |
|
Makes sense, I'll repurpose this to just fix the |
This reverts commit 14da3c6.
flutter_lints for sample codecurly_braces_in_flow_control_structures for sample code
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…er#104617) * use `flutter_lints` for sample code * update packages * Revert "update packages" This reverts commit 14da3c6. * revert
Part of #104498
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.