-
Notifications
You must be signed in to change notification settings - Fork 86
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
improvement in formatting #53
Comments
Would it work just to use the default Formatter that comes with Flutter? |
Yeah but I don't think we can force everybody to use the same formatter. Also people might have different settings like line length and such. this is why in the pull request right now everybody's formatting looks different which makes it hard to see the changes. The dart format command should always format the same, so if that gets run before each PR we should only see the actual changes, not any formatting changing. |
I see so I guess probably having a uniform format or code structure should just work for everyone then? |
Yeah I good start would be to write commas at the end of every line and attribute, this forces the formatter to put these on separate lines and help to make the formatting more uniform. |
So I guess it's just a matter of writing a config file that will be read by the formatter, then format the code accordingly? |
Yeah or just use the dart format command, this automatically formats the code according to dart guidelines, so it will be the same for everyone. |
If nobody has already started I would like to add this to the codebase. :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Maybe it would be a good idea to run dart format for the whole project before making every pull request, this way the formatting is the same across the app. Currently the problem is that every contributor has different formatters, line lengths etc., which makes it harder when reviewing pull requests to see what are the actual changes, and what is just the formatting changing.
The text was updated successfully, but these errors were encountered: