This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
Releases: dart-lang/linter
Releases · dart-lang/linter
1.35.0
1.35.0
- add new lints:
implicit_reopen
unnecessary_breaks
type_literal_in_constant_pattern
- updates to existing lints to support patterns and class modifiers
- remove support for:
enable_null_safety
invariant_booleans
prefer_bool_in_asserts
prefer_equal_for_default_values
super_goes_last
- fix
unnecessary_parenthesis
false-positives with null-aware expressions - fix
void_checks
to allow assignments ofFuture<dynamic>?
to parameters
typedFutureOr<void>?
- fix
use_build_context_synchronously
in if conditions - fix a false positive for
avoid_private_typedef_functions
with generalized
type aliases - update
unnecessary_parenthesis
to detect some doubled parens - update
void_checks
to allow returningNever
as void - update
no_adjacent_strings_in_list
to support set literals and for- and
if-elements - update
avoid_types_as_parameter_names
to handle type variables - update
avoid_positional_boolean_parameters
to handle typedefs - update
avoid_redundant_argument_values
to check parameters of redirecting
constructors - improve performance for
prefer_const_literals_to_create_immutables
- update
use_build_context_synchronously
to check context properties - improve
unnecessary_parenthesis
support for property accesses and method
invocations
1.34.0
1.34.0
- update
only_throw_errors
to not report on values of typeNever
- update
prefer_mixin
to handle class mixins - update
unnecessary_null_checks
to ignoreFuture.value
and
Completer.complete
- fix
unnecessary_parenthesis
false positives on constant patterns - new lint:
invalid_case_patterns
- update
unnecessary_const
to handle case patterns - improve handling of null-aware cascades in
unnecessary_parenthesis
- update
unreachable_from_main
to report unreachable public static fields,
getters, setters, and methods, that are declared on public classes, mixins,
enums, and extensions
1.33.0
1.33.0
- fix
unnecessary_parenthesis
false-positive with null-aware expressions - fix
void_checks
to allow assignments ofFuture<dynamic>?
to parameters
typedFutureOr<void>?
- removed support for:
enable_null_safety
invariant_booleans
prefer_bool_in_asserts
prefer_equal_for_default_values
super_goes_last
- update
unnecessary_parenthesis
to detect some doubled parens - update
void_checks
to allow returningNever
as void - new lint:
unnecessary_breaks
- fix
use_build_context_synchronously
in if conditions - update
no_adjacent_strings_in_list
to support set literals and for- and
if-elements
1.31.0
1.30.0
1.29.0
1.29.0
- new lint:
dangling_library_doc_comments
- fix
no_leading_underscores_for_local_identifiers
to not report super formals as local variables - fix
unnecessary_overrides
false negatives - fix
cancel_subscriptions
for nullable fields - new lint:
collection_methods_unrelated_type
- update
library_names
to support unnamed libraries - fix
unnecessary_parenthesis
support for as-expressions - fix
use_build_context_synchronously
to check for context property accesses - fix false positive in
comment_references
- improved unrelated type checks to handle enums and cascades
- fix
unnecessary_brace_in_string_interps
forthis
expressions - update
use_build_context_synchronously
forBuildContext.mounted
- improve
flutter_style_todos
to handle more cases - fix
use_build_context_synchronously
to check forBuildContext
s in named expressions - fix
exhaustive_cases
to check parenthesized expressions - performance improvements for:
avoid_null_checks_in_equality_operators
join_return_with_statement
recursive_getters
unnecessary_lambdas
diagnostic_describe_all_properties
prefer_foreach
avoid_escaping_inner_quotes
cascade_invocations
tighten_type_of_initializing_formals
prefer_interpolation_to_compose_strings
prefer_constructors_over_static_methods
avoid_returning_null
parameter_assignments
prefer_constructors_over_static_methods
prefer_interpolation_to_compose_strings
avoid_returning_null
avoid_returning_this
flutter_style_todos
avoid_positional_boolean_parameters
prefer_const_constructors
- new lint:
implicit_call_tearoffs
- new lint:
unnecessary_library_directive
1.28.0
1.27.0
1.27.0
- fix
avoid_redundant_argument_values
when referencing required
parameters in legacy libraries - performance improvements for
use_late_for_private_fields_and_variables
- new lint:
use_string_in_part_of_directives
- fixed
use_super_parameters
false positive with repeated super
parameter references - updated
use_late_for_private_fields_and_variables
to handle enums - fixed
prefer_contains
false positive when start index is non-zero - improved
noop_primitive_operations
to catch.toString()
in string interpolations - updated
public_member_api_docs
to report diagnostics on extension
names (instead of bodies) - miscellaneous documentation improvements
- (internal):
DartTypeUtilities
refactoring
1.26.0
1.26.0
- new lint:
combinators_ordering
- fixed
use_colored_box
anduse_decorated_box
to not over-report
on containers without a child - fixed false positive for
unnecessary_parenthesis
on a map-or-set
literal at the start of an expression statement - fixed false positive for
prefer_final_locals
reporting on fields - fixed
unnecessary_overrides
to allow overrides on@Protected
members - fixed
avoid_multiple_declarations_per_line
false positive in
for
statements - fixed
prefer_final_locals
false positive on declaration lists
with at least one non-final variable - fixed
use_build_context_synchronously
to handleawait
s in
if
conditions