-
Notifications
You must be signed in to change notification settings - Fork 5
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
Lint rules and analysis options updated #8
Comments
See also https://rydmike.com/blog >> 2021-01-10 blog post for reference |
Updating rules according to blog posts of previous comments. |
New lint rules v1 here. Thanks for blog posts for good hints. Needed some code changes when These and maybe other changes too coming on next beta version of packages (attributes, datatools, geocore and geodata) later on spring... # See background
# https://dash-overflow.net/articles/getting_started/
# https://rydmike.com/blog => My Flutter Linting Preferences (Jan 10, 2021)
# Some of comments originated from this blog.
## Include all lint rules
## (Source => https://dart-lang.github.io/linter/lints/options/options.html)
include: all_lint_rules.yaml
analyzer:
exclude:
# Ignore warnings of files generated by json_serializable, built_value etc.
- "**/*.g.dart"
# Ignore warnings of files generated by Freezed.
- "**/*.freezed.dart"
strong-mode:
# Explained best here => https://dash-overflow.net/articles/getting_started/
implicit-casts: false
# Explained best here => https://dash-overflow.net/articles/getting_started/
implicit-dynamic: false
errors:
# Otherwise we cause the import of all_lint_rules to warn, because of some
# rules conflicts. We explicitly enabled even conflicting rules and are
# fixing the conflicts in this file.
included_file_warning: ignore
# Treat missing required parameters as an error, not as a hint or a warning.
missing_required_param: error
# Treat missing returns as an error, not as a hint or a warning.
missing_return: error
linter:
rules: |
Latest lint rules for BETA release 0.6.0:
|
Implemented on BETA-version 0.6.0. |
Guidelines: Effective Dart
To be considered:
https://github.com/tenhobi/effective_dart
The text was updated successfully, but these errors were encountered: