This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Releases: dart-archive/linter
Releases · dart-archive/linter
1.35.0
1.35.0
- add new lints:
implicit_reopenunnecessary_breakstype_literal_in_constant_pattern
- updates to existing lints to support patterns and class modifiers
- remove support for:
enable_null_safetyinvariant_booleansprefer_bool_in_assertsprefer_equal_for_default_valuessuper_goes_last
- fix
unnecessary_parenthesisfalse-positives with null-aware expressions - fix
void_checksto allow assignments ofFuture<dynamic>?to parameters
typedFutureOr<void>? - fix
use_build_context_synchronouslyin if conditions - fix a false positive for
avoid_private_typedef_functionswith generalized
type aliases - update
unnecessary_parenthesisto detect some doubled parens - update
void_checksto allow returningNeveras void - update
no_adjacent_strings_in_listto support set literals and for- and
if-elements - update
avoid_types_as_parameter_namesto handle type variables - update
avoid_positional_boolean_parametersto handle typedefs - update
avoid_redundant_argument_valuesto check parameters of redirecting
constructors - improve performance for
prefer_const_literals_to_create_immutables - update
use_build_context_synchronouslyto check context properties - improve
unnecessary_parenthesissupport for property accesses and method
invocations
1.34.0
1.34.0
- update
only_throw_errorsto not report on values of typeNever - update
prefer_mixinto handle class mixins - update
unnecessary_null_checksto ignoreFuture.valueand
Completer.complete - fix
unnecessary_parenthesisfalse positives on constant patterns - new lint:
invalid_case_patterns - update
unnecessary_constto handle case patterns - improve handling of null-aware cascades in
unnecessary_parenthesis - update
unreachable_from_mainto 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_parenthesisfalse-positive with null-aware expressions - fix
void_checksto allow assignments ofFuture<dynamic>?to parameters
typedFutureOr<void>? - removed support for:
enable_null_safetyinvariant_booleansprefer_bool_in_assertsprefer_equal_for_default_valuessuper_goes_last
- update
unnecessary_parenthesisto detect some doubled parens - update
void_checksto allow returningNeveras void - new lint:
unnecessary_breaks - fix
use_build_context_synchronouslyin if conditions - update
no_adjacent_strings_in_listto 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_identifiersto not report super formals as local variables - fix
unnecessary_overridesfalse negatives - fix
cancel_subscriptionsfor nullable fields - new lint:
collection_methods_unrelated_type - update
library_namesto support unnamed libraries - fix
unnecessary_parenthesissupport for as-expressions - fix
use_build_context_synchronouslyto 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_interpsforthisexpressions - update
use_build_context_synchronouslyforBuildContext.mounted - improve
flutter_style_todosto handle more cases - fix
use_build_context_synchronouslyto check forBuildContexts in named expressions - fix
exhaustive_casesto check parenthesized expressions - performance improvements for:
avoid_null_checks_in_equality_operatorsjoin_return_with_statementrecursive_gettersunnecessary_lambdasdiagnostic_describe_all_propertiesprefer_foreachavoid_escaping_inner_quotescascade_invocationstighten_type_of_initializing_formalsprefer_interpolation_to_compose_stringsprefer_constructors_over_static_methodsavoid_returning_nullparameter_assignmentsprefer_constructors_over_static_methodsprefer_interpolation_to_compose_stringsavoid_returning_nullavoid_returning_thisflutter_style_todosavoid_positional_boolean_parametersprefer_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_valueswhen 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_parametersfalse positive with repeated super
parameter references - updated
use_late_for_private_fields_and_variablesto handle enums - fixed
prefer_containsfalse positive when start index is non-zero - improved
noop_primitive_operationsto catch.toString()
in string interpolations - updated
public_member_api_docsto report diagnostics on extension
names (instead of bodies) - miscellaneous documentation improvements
- (internal):
DartTypeUtilitiesrefactoring
1.26.0
1.26.0
- new lint:
combinators_ordering - fixed
use_colored_boxanduse_decorated_boxto not over-report
on containers without a child - fixed false positive for
unnecessary_parenthesison a map-or-set
literal at the start of an expression statement - fixed false positive for
prefer_final_localsreporting on fields - fixed
unnecessary_overridesto allow overrides on@Protected
members - fixed
avoid_multiple_declarations_per_linefalse positive in
forstatements - fixed
prefer_final_localsfalse positive on declaration lists
with at least one non-final variable - fixed
use_build_context_synchronouslyto handleawaits in
ifconditions