Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Releases: dart-lang/linter

1.35.0

04 Apr 17:24
@pq pq
b561905
Compare
Choose a tag to compare

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 of Future<dynamic>? to parameters
    typed FutureOr<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 returning Never 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

23 Feb 17:15
@pq pq
dd11f49
Compare
Choose a tag to compare

1.34.0

  • update only_throw_errors to not report on values of type Never
  • update prefer_mixin to handle class mixins
  • update unnecessary_null_checks to ignore Future.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

02 Feb 22:18
@pq pq
a2b19bb
Compare
Choose a tag to compare

1.33.0

  • fix unnecessary_parenthesis false-positive with null-aware expressions
  • fix void_checks to allow assignments of Future<dynamic>? to parameters
    typed FutureOr<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 returning Never 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

01 Dec 15:46
@pq pq
Compare
Choose a tag to compare

1.31.0

  • updated prefer_equal_for_default_values to not report for SDKs >=2.19,
    where this lint is now an analyzer diagnostic.
  • updated unrelated_type_equality_checks to support updated package:fixnum
    structure.

1.30.0

09 Nov 19:03
@pq pq
8bce8b8
Compare
Choose a tag to compare

1.30.0

  • new lint: enable_null_safety
  • new lint: library_annotations
  • miscellaneous documentation improvements

1.29.0

04 Nov 18:49
@pq pq
657fa6d
Compare
Choose a tag to compare

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 for this expressions
  • update use_build_context_synchronously for BuildContext.mounted
  • improve flutter_style_todos to handle more cases
  • fix use_build_context_synchronously to check for BuildContexts 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

01 Sep 20:42
@pq pq
f2c5548
Compare
Choose a tag to compare

1.28.0

  • update avoid_redundant_argument_values to work with enum declarations
  • performance improvements for prefer_contains
  • new lint: unreachable_from_main
  • (internal): analyzer API updates and DartTypeUtilities refactoring

1.27.0

08 Aug 17:20
@pq pq
075a3b6
Compare
Choose a tag to compare

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

11 Jul 16:09
@pq pq
b4afc10
Compare
Choose a tag to compare

1.26.0

  • new lint: combinators_ordering
  • fixed use_colored_box and use_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 handle awaits in
    if conditions

1.25.0

07 Jun 16:24
@pq pq
1ddc709
Compare
Choose a tag to compare

1.25.0

  • new lint: discarded_futures
  • improved message and highlight range for no_duplicate_case_values
  • performance improvements for lines_longer_than_80_chars,
    prefer_const_constructors_in_immutables, andprefer_initializing_formals