-
Notifications
You must be signed in to change notification settings - Fork 510
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
Improve codestyle of project #754
Comments
Lint rules i would like to see added to the basic flutter_lints:
|
The new check added in #803 only checks Dart formatting, we already have a lint analysis step. But that only analyzes the example app, not the entire plugin, since there used to be some issues with that. We should try to make it analyze the whole project again.
Those all seem reasonable, though I personally prefer double quotes. I guess there isn't a clear preference in the Dart community, since there is also a prefer_single_quotes rule? What I'm a bit worried about regarding adding special rules: it makes contributing harder. Most devs should be familiar with the standard flutter lints. But both of these aren't strong opionions of mine. |
always_declare_return_types - is something that usually gets fixed in code reviews - better to have a linter point it out. On the point of making contributing harder - with the solid integration of the linter into the IDEs, the IDE will point out the issues without any other action from the contributor. |
Sure, my point was that some new contributors might not know how to fix some of these more rarely used lints (shouldn't be an issue for these 4, but might be if we add others). But even then, someone else could just help out with the PR. So I agree it's actually not an issue. |
Final tailwork in #818, closing overarching issue as we have dart/swift: |
This community driven project doesn't have a unified code style. We, or at least I myself, have been very forgiven when reviewing pull requests. I didn't want to waste anyone time with having to make additional iterations on their code before being able to merge. This approach however doesn't scale and makes the project long term harder to maintain and read. To improve this, we should define some basic style guides for all the languages that this project supports.
Definition of done:
For each programming language we enforce code style with static code analysis in a CI env.
Work to be done:
For each supporting programming language
The text was updated successfully, but these errors were encountered: