release: 1.0.3 #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add new linter rules:
always_put_control_body_on_new_line — Along with curly_braces_in_flow_control_structures will help us to create flow breakers more organically (e.g. avoid having
if (..) return;
)avoid_slow_async_io — Instead of using certain async IO function, dart suggests to use their sync alternatives
directives_ordering — Sort imports
matching_super_parameters — If you inherit from a class, make sure the constructor params sequence match the parent's params
no_self_assignments — Avoid having
a = a;
prefer_asserts_in_initializer_lists — Put asserts on the initializer level, not in to the constructor body
unnecessary_await_in_return — No need to await before returning
unnecessary_breaks — No need for a break unless you want to end execution earlier.
unnecessary_lambdas — If a method's parameters match the parameters of a required callback, don't create a lambda but pass the method directly as a tear-off.
unnecessary_library_directive — If
library
directive doesn't provide a name, it's not neededunnecessary_null_aware_operator_on_extension_on_nullable — If an extension is declared on a nullable type, no need to do the check
unnecessary_null_checks — Removes null checks, e.g. if a function accepts a nullable variable there's no reason to pass it as
v!
unnecessary_parenthesis — Removes brackets
unnecessary_statements — Avoids having statements that return a result but aren't used.